/* =========================================================
   Pages internes : hero de page, fiche produit, formulaires, recherche
   ========================================================= */

.page-hero { background: linear-gradient(180deg, #ebf2fe 0%, #f4f8ff 100%); padding-block: 64px 56px; }
.page-hero h1 { margin-top: 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; max-width: 820px; }
.page-hero__lead { margin-top: 18px; max-width: 680px; font-size: 17px; color: var(--text-secondary); line-height: 1.65; }

.prose p { font-size: 17px; line-height: 1.75; color: var(--text-secondary); }
.prose p + p { margin-top: 18px; }

.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.features-grid .feature { align-items: flex-start; text-align: left; padding: 26px; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); gap: 14px; }
.features-grid .feature__icon { width: 48px; height: 48px; border-radius: 13px; background: var(--tone-soft, #e8f0fe); }
.features-grid .feature__icon .icon { width: 26px; height: 26px; }
.features-grid .feature h3 { font-size: 17px; }
.features-grid .feature p { font-size: 14.5px; }
.features-grid--3 { --tone-soft: #e8f0fe; }

.eco-wide { padding: 40px; background: var(--background-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); }

/* Fiche produit */
.product-hero { background: linear-gradient(180deg, var(--tone-soft) 0%, #fff 100%); padding-block: 56px 72px; }
.product-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.breadcrumb { margin-bottom: 28px; font-size: 13.5px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--bisoft-blue); }
.product-hero h1 { margin-top: 20px; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; color: var(--tone); }
.product-hero__tagline { margin-top: 12px; font-size: 22px; font-weight: 600; line-height: 1.35; }
.product-hero__desc { margin: 16px 0 20px; max-width: 540px; color: var(--text-secondary); line-height: 1.7; }
.product-hero .hero__actions { margin-top: 28px; }
.product-hero__preview { padding: 18px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid var(--border-soft); }
.product-hero__preview .pv { padding: 10px; background: var(--tone-soft); border-radius: var(--radius-md); }
.product-hero__preview .pv--syncom, .product-hero__preview .pv--bixml { padding: 40px 10px; }

/* Secteurs */
.sector-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sector { display: flex; gap: 20px; padding: 28px; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.sector__icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--hue-soft); color: var(--hue); }
.sector__icon .icon { width: 28px; height: 28px; }
.sector h2 { font-size: 20px; }
.sector p { margin-top: 6px; color: var(--text-secondary); font-size: 15px; }
.sector__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px !important; }

/* Formulaires */
.form-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.form-card { padding: 36px; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.lead-form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; background: #fff;
    border: 1.5px solid #cfd9ee; border-radius: var(--radius-sm); font-size: 15px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--bisoft-blue); box-shadow: 0 0 0 3px rgba(26, 86, 232, .15); }
.field [aria-invalid="true"] { border-color: #d92d20; }
.field__error { font-size: 13px; color: #b42318; }
.form-note { font-size: 13px; color: var(--text-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 20px; }
.lead-form .alert { margin: 0; }
.alert--success { background: #e3f6ef; color: #0a6b52; border: 1px solid #b6e4d3; }
.alert--error { background: #fdecea; color: #b42318; border: 1px solid #f6c2bd; }
.contact-card { padding: 28px; background: var(--background-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); }
.contact-card h2 { font-size: 20px; margin-bottom: 16px; }
.contact-card li { display: flex; align-items: center; gap: 12px; padding-block: 8px; color: var(--text-secondary); }
.contact-card li .icon { color: var(--bisoft-blue); }
.contact-card .muted { margin-top: 12px; font-size: 14px; }

/* Recherche (sans JS) */
.inline-search { display: flex; gap: 12px; margin-bottom: 28px; }
.inline-search input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid #cfd9ee; border-radius: var(--radius-sm); font-size: 16px; }
.result-list li + li { margin-top: 10px; }
.result-list a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.result-list a:hover { border-color: var(--bisoft-blue); background: var(--background-soft); }
.result-list .chip { justify-self: start; }
.result-list small { color: var(--text-muted); }

@media (max-width: 1279px) {
    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .form-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .page-hero { padding-block: 40px 36px; }
    .features-grid { grid-template-columns: minmax(0, 1fr); }
    .sector-list { grid-template-columns: minmax(0, 1fr); }
    .sector { padding: 20px; }
    .form-card { padding: 22px; }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .eco-wide { padding: 20px 16px; }
    .inline-search { flex-direction: column; }
    .product-hero { padding-block: 32px 48px; }
    .product-hero .hero__actions .btn { width: 100%; }
}

/* Logo et photo propres à un logiciel (ex. Biroast) */
.product-hero__logo { display: block; width: auto; height: 54px; margin-bottom: 18px; }
.product-hero__side { display: grid; gap: 16px; min-width: 0; }
.product-hero__photo { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
@media (max-width: 767px) { .product-hero__logo { height: 44px; } .product-hero__photo { height: 150px; } }

/* Galerie de captures réelles */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.shot { margin: 0; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.shot figcaption { padding: 14px 18px; font-weight: 600; font-size: 15px; border-top: 1px solid var(--border-soft); }
@media (max-width: 1023px) { .shots { grid-template-columns: 1fr; } }
.product-hero__logo--plate { background: #173c35; padding: 12px 20px; border-radius: 14px; box-sizing: content-box; }

/* ---------- Plans tarifaires ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.billing-toggle { display: inline-flex; margin: 0 auto 28px; padding: 4px; background: #fff; border: 1px solid var(--border-soft); border-radius: 999px; box-shadow: var(--shadow-soft); }
.billing-toggle[hidden] { display: none; }
.billing-toggle__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 600; color: var(--text-secondary, #4a5675); cursor: pointer; }
.billing-toggle__btn[aria-pressed="true"] { background: var(--tone); color: #fff; }
.billing-toggle__btn:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }
.billing-toggle__hint { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--tone-soft); color: var(--tone-dark); }
.billing-toggle__btn[aria-pressed="true"] .billing-toggle__hint { background: rgba(255, 255, 255, .22); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; width: 100%; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan h3 { font-size: 22px; }
.plan__price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price strong { font-size: 36px; line-height: 1; letter-spacing: -.02em; color: var(--tone-dark); }
.plan__price span { font-size: 14px; font-weight: 600; }
.plan__price small { color: var(--text-muted, #6b7794); font-weight: 500; font-size: 13px; }
.plan__saving { margin: -6px 0 4px; font-size: 14px; color: var(--text-muted, #6b7794); }
.plan__list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan__list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.plan__list strong { text-align: right; }
.pricing[data-billing="monthly"] [data-period="yearly"], .pricing[data-billing="yearly"] [data-period="monthly"] { display: none; }

.compare__title { margin: 48px 0 18px; font-size: 22px; text-align: center; }
.compare { position: relative; width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.compare:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }
.compare__table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.compare__table th, .compare__table td { padding: 14px 18px; border-bottom: 1px solid var(--border-soft); text-align: center; }
.compare__table thead th { position: sticky; top: 0; background: var(--tone-soft); color: var(--tone-dark); font-size: 15px; }
.compare__table tbody th { text-align: left; font-weight: 500; }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__table tbody tr:hover { background: color-mix(in srgb, var(--tone-soft) 55%, #fff); }
.compare__yes { display: inline-block; vertical-align: middle; color: var(--tone); }
.compare__no { color: #b4bccd; }
.pricing__note { margin: 20px 0 0; font-size: 14px; color: var(--text-muted, #6b7794); text-align: center; }
@media (max-width: 1199px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .plans { grid-template-columns: 1fr; } .compare__table th, .compare__table td { padding: 12px 12px; } .compare__table tbody th { min-width: 220px; } }

/* ---------- Pages tarifs / FAQ / ressources / légal ---------- */
.resource-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.resource { display: flex; align-items: center; gap: 16px; padding: 22px; height: 100%; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.resource:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.resource:focus-visible { outline: 2px solid var(--bisoft-blue); outline-offset: 2px; }
.resource__txt { display: grid; gap: 4px; flex: 1; }
.resource__txt small { color: var(--text-secondary, #4a5675); font-size: 14px; }
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: 0 22px; }
.faq__item summary { padding: 18px 0; font-weight: 600; font-size: 17px; cursor: pointer; list-style-position: outside; }
.faq__item summary:focus-visible { outline: 2px solid var(--bisoft-blue); outline-offset: 4px; border-radius: 6px; }
.faq__item p { margin: 0 0 18px; color: var(--text-secondary, #4a5675); line-height: 1.65; }
.faq__more { margin-top: 28px; text-align: center; }
.legal h2 { margin: 32px 0 10px; font-size: 22px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.faq__more a, .legal a { color: var(--bisoft-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Captcha ---------- */
.captcha__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.captcha__challenge { min-width: 0; }
.captcha__img { display: block; width: 220px; max-width: 100%; height: auto; border: 1px solid var(--border-soft); border-radius: 10px; background: #eef3ff; }
.captcha__question { margin: 0; padding: 20px 18px; min-width: 220px; border: 1px dashed var(--bisoft-blue); border-radius: 10px; background: #eef3ff; font-weight: 600; }
.captcha__question[hidden], .captcha__img[hidden] { display: none; }
.captcha__row input { flex: 1 1 160px; min-width: 0; max-width: 220px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.captcha__actions { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; color: var(--text-muted, #6b7794); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--bisoft-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:focus-visible { outline: 2px solid var(--bisoft-blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tarifs par application ---------- */
.app-tabs { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-soft); }
.app-tabs ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.app-tabs a { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--border-soft); border-radius: 999px; background: #fff; text-decoration: none; color: inherit; font-weight: 600; white-space: nowrap; transition: border-color .15s, box-shadow .15s; }
.app-tabs a:hover { border-color: var(--tone); box-shadow: var(--shadow-soft); }
.app-tabs a:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }
.app-tabs__tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--tone-soft); color: var(--tone-dark); }
.app-tabs__tag--quote { background: #f0f2f7; color: #4a5675; }
.app-pricing { padding-block: 56px; }
.app-pricing:nth-of-type(even) { background: var(--background-soft); }
.app-pricing__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-soft); }
.app-pricing__head > div { flex: 1 1 260px; min-width: 0; }
.app-pricing__head h2 { font-size: 30px; color: var(--tone-dark); }
.app-pricing__head p { margin: 4px 0 0; color: var(--text-secondary, #4a5675); }
.quote-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px; background: #fff; border: 1px dashed var(--tone); border-radius: var(--radius-lg); }
.quote-card h3 { font-size: 20px; }
.quote-card p { margin: 6px 0 0; max-width: 60ch; color: var(--text-secondary, #4a5675); }

/* ---------- À propos ---------- */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-intro__main h2 { margin-bottom: 14px; }
.about-intro__main p { line-height: 1.75; color: var(--text-secondary, #4a5675); }
.about-intro__side { padding: 28px; background: var(--background-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); }
.about-intro__side h3 { font-size: 19px; line-height: 1.35; margin-bottom: 14px; }
.about-intro__side p { margin: 14px 0 0; color: var(--text-secondary, #4a5675); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border-soft); font-weight: 600; font-size: 14px; }
.about-mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.about-card { display: grid; gap: 12px; align-content: start; padding: 28px; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.about-card h2, .about-card h3 { font-size: 22px; }
.about-card p { margin: 0; line-height: 1.7; color: var(--text-secondary, #4a5675); }
.about-soft { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.about-soft a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.about-soft a:hover { border-color: var(--tone); transform: translateY(-2px); }
.about-soft a:focus-visible { outline: 2px solid var(--tone); outline-offset: 2px; }
.about-soft__txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.about-soft__txt strong { color: var(--tone-dark); font-size: 17px; }
.about-soft__txt small { color: var(--text-secondary, #4a5675); font-size: 14px; }
.values-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.about-card--value .tile { background: var(--bisoft-blue); }
@media (max-width: 1023px) { .about-intro { grid-template-columns: 1fr; gap: 32px; } .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .about-mv, .values-grid { grid-template-columns: 1fr; } .app-pricing { padding-block: 40px; } .app-pricing__head h2 { font-size: 26px; } }

/* Espace entre le libellé et le titre dans les bandeaux de page */
.page-hero .eyebrow { margin-bottom: 14px; }
