@import url("tokens.css");

:root {
    --bb-offwhite: #f3f5f9;
    --bb-pink-soft: #fce6f0;
    --bb-pink-softer: #fdeef5;
    --bb-radius-btn: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bb-paper); color: var(--bb-text); font-family: var(--bb-font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: inherit; }
img, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--bb-magenta); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.bb-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--bb-ink); color: #fff; padding: .75rem 1rem; }
.bb-skip:focus { left: 1rem; top: 1rem; }
.bb-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bb-container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.bb-container--narrow { max-width: 860px; }
.bb-cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.bb-section { padding-block: clamp(3rem, 7vw, 5rem); }
.bb-section--offwhite { background: var(--bb-offwhite); }
.bb-section-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); text-align: center; font-weight: 700; }
.bb-section-title--left { text-align: left; }
.bb-section-intro { text-align: center; color: var(--bb-text-soft); max-width: 62ch; margin: .75rem auto 0; }
.bb-rule { display: block; width: 40px; height: 3px; background: var(--bb-magenta); margin-top: 1.25rem; }
.bb-overline { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #c9cede; margin-bottom: 1rem; }
.bb-kicker { font-size: .8125rem; font-weight: 600; color: var(--bb-magenta-light); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }

/* Boutons et liens */
.bb-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: var(--bb-radius-btn); border: 1px solid transparent; font: inherit; font-size: .9375rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.bb-btn--primary { background: var(--bb-magenta); color: #fff; }
.bb-btn--primary:hover { background: var(--bb-magenta-dark); color: #fff; }
.bb-btn--outline-light { color: #fff; border-color: #fff; }
.bb-btn--outline-light:hover { background: #fff; color: var(--bb-ink); }
.bb-btn--block { width: 100%; }
.bb-textlink { display: inline-flex; align-items: center; gap: .4rem; color: var(--bb-magenta-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.bb-textlink:hover { color: var(--bb-ink); }

/* En-tete */
/* En-tete blanc, logo principal (charte Paximedia, page 09 / Digital) */
.bb-header { position: sticky; top: 0; z-index: 50; background: #fff; color: var(--bb-navy); border-bottom: 1px solid var(--bb-line); }
.bb-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.bb-header__logo { display: block; padding-block: 8px; }
.bb-header__logo img { height: 48px; width: auto; display: block; }
.bb-header__mobile { display: none; align-items: center; gap: .5rem; }
.bb-header__contact, .bb-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--bb-navy); background: none; border: 1px solid var(--bb-line); border-radius: var(--bb-radius-btn); cursor: pointer; }
.bb-nav { display: flex; align-items: center; gap: 2rem; }
.bb-nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.bb-nav__item { position: relative; }
.bb-nav__trigger, .bb-nav__link { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .8rem; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--bb-navy); background: none; border: 0; cursor: pointer; text-decoration: none; border-radius: var(--bb-radius-btn); }
.bb-nav__trigger:hover, .bb-nav__link:hover, .bb-nav__trigger[aria-expanded="true"] { color: var(--bb-navy); background: var(--bb-offwhite); }
.bb-nav__link[aria-current="page"] { color: var(--bb-navy); box-shadow: inset 0 -2px 0 var(--bb-magenta); }
.bb-nav__trigger svg { transition: transform .15s; }
.bb-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.bb-nav__menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; margin: 0; padding: .5rem; list-style: none; background: #fff; color: var(--bb-ink); border-radius: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); display: none; }
.bb-nav__item:hover .bb-nav__menu, .bb-nav__item:focus-within .bb-nav__menu, .bb-nav__item.is-open .bb-nav__menu { display: block; }
.js .bb-nav__item:hover:not(.is-open) .bb-nav__menu { display: none; }
.js .bb-nav__item:focus-within:not(.is-open) .bb-nav__menu { display: none; }
.bb-nav__menu a { display: block; padding: .6rem .75rem; border-radius: 6px; text-decoration: none; font-size: .9375rem; }
.bb-nav__menu a:hover { background: var(--bb-pink-softer); color: var(--bb-magenta-dark); }
.bb-nav__menu-all { border-top: 1px solid var(--bb-line); margin-top: .35rem; padding-top: .35rem; }
.bb-nav__menu-all a { font-weight: 600; color: var(--bb-magenta-dark); }

@media (max-width: 1024px) {
    .bb-header__mobile { display: inline-flex; }
    .bb-nav { position: fixed; inset: 72px 0 auto 0; max-height: calc(100vh - 72px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.5rem; background: #fff; border-top: 1px solid var(--bb-line); box-shadow: 0 18px 30px rgba(0, 11, 61, .12); }
    .js .bb-nav { display: none; }
    .js .bb-nav.is-open { display: flex; }
    .bb-nav__list { flex-direction: column; align-items: stretch; }
    .bb-nav__trigger, .bb-nav__link { width: 100%; justify-content: space-between; padding: .9rem .25rem; font-size: 1.0625rem; }
    .bb-nav__menu { position: static; box-shadow: none; background: var(--bb-offwhite); color: var(--bb-navy); min-width: 0; }
    .bb-nav__menu a:hover { background: #fff; color: var(--bb-magenta-dark); }
    .bb-nav__menu-all { border-color: var(--bb-line); }
    .bb-nav__menu-all a { color: var(--bb-magenta-dark); }
    .bb-nav__item:hover .bb-nav__menu { display: none; }
    .bb-nav__item.is-open .bb-nav__menu { display: block; }
}

/* Premier ecran */
.bb-hero { position: relative; overflow: hidden; background: var(--bb-dark); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.bb-hero__arc { position: absolute; right: -60px; top: -40px; width: 70%; max-width: 820px; pointer-events: none; }
.bb-hero__arc path { stroke: var(--bb-magenta); stroke-width: 1.5; opacity: .55; }
.bb-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.bb-hero h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.bb-hero h1 em { font-style: normal; color: var(--bb-magenta-light); }
.bb-hero__punch { font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 600; margin: 1.25rem 0 .75rem; }
.bb-hero__lead { color: #c9cede; font-size: .9375rem; max-width: 56ch; margin-bottom: 1.75rem; }
.bb-hero__visual { aspect-ratio: 4 / 3; border: 1px dashed #2a3770; border-radius: 12px; display: grid; place-items: center; text-align: center; color: #98a2b3; font-size: .9375rem; background: radial-gradient(circle at 70% 30%, rgba(230, 0, 126, .12), transparent 60%); }
.bb-hero__visual small { font-size: .8125rem; }
@media (max-width: 860px) { .bb-hero__grid { grid-template-columns: 1fr; } .bb-hero__arc { width: 120%; opacity: .6; } }

/* Expertises */
.bb-expertises { background: var(--bb-offwhite); padding-block: clamp(3rem, 7vw, 5rem); }
.bb-expertises__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.5rem; }
.bb-expertise { display: flex; flex-direction: column; gap: .75rem; padding: 2rem; }
.bb-expertise--accent { background: var(--bb-pink-soft); }
.bb-expertise__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.bb-expertise__num { font-size: 1.75rem; font-weight: 300; color: #98a2b3; }
.bb-expertise__icon { color: var(--bb-magenta); }
.bb-expertise h3 { font-size: 1.3rem; font-weight: 700; }
.bb-expertise p { color: var(--bb-text-soft); font-size: .9375rem; margin: 0; }
.bb-expertise p.bb-expertise__brands { color: var(--bb-text); font-weight: 500; margin-top: auto; padding-top: .5rem; }
/* Quatre expertises : une ligne de quatre, deux par deux sur tablette */
.bb-expertises__grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bb-expertises__grid:has(> :nth-child(4):last-child) .bb-expertise { padding: 1.75rem 1.5rem; }
@media (max-width: 1200px) { .bb-expertises__grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .bb-expertises__grid, .bb-expertises__grid:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } }

/* Entree par besoin */
.bb-needs { padding-block: clamp(3rem, 7vw, 5rem); }
.bb-needs__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.bb-needs__intro h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; margin-bottom: .75rem; }
.bb-needs__intro p { color: var(--bb-text-soft); margin: 0; }
.bb-needs__list { list-style: none; margin: 0; padding: 0; }
.bb-need { display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--bb-line); text-decoration: none; }
.bb-needs__list li:first-child .bb-need { border-top: 1px solid var(--bb-line); }
.bb-need__num { font-size: 1.5rem; font-weight: 300; color: #98a2b3; }
.bb-need__text strong { display: block; font-size: 1.0625rem; font-weight: 600; }
.bb-need__text span { font-size: .875rem; color: var(--bb-text-soft); }
.bb-need__arrow { color: var(--bb-magenta); transition: transform .15s; }
.bb-need:hover strong { color: var(--bb-magenta-dark); }
.bb-need:hover .bb-need__arrow { transform: translateX(4px); }
@media (max-width: 860px) { .bb-needs__grid { grid-template-columns: 1fr; } }

/* Six marques */
.bb-brands { background: var(--bb-dark); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.bb-brands .bb-section-intro { color: #c9cede; }
.bb-brands__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.5rem; border-top: 1px solid #1c2960; }
.bb-brandcell { display: flex; flex-direction: column; gap: .4rem; padding: 1.75rem 1.5rem; text-decoration: none; border-bottom: 1px solid #1c2960; border-right: 1px solid #1c2960; }
.bb-brandcell:nth-child(3n) { border-right: 0; }
.bb-brandcell__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bb-brandcell__head strong { font-size: 1.5rem; font-weight: 700; }
.bb-brandcell__head svg { color: var(--bb-magenta-light); transition: transform .15s; }
.bb-brandcell__desc { color: #c9cede; font-size: .9375rem; }
.bb-brandcell__link { color: var(--bb-magenta-light); font-size: .8125rem; font-weight: 600; margin-top: .25rem; }
.bb-brandcell:hover { background: #061348; }
.bb-brandcell:hover .bb-brandcell__head svg { transform: translateX(4px); }
@media (max-width: 900px) {
    .bb-brands__grid { grid-template-columns: 1fr 1fr; }
    .bb-brandcell:nth-child(3n) { border-right: 1px solid #1c2960; }
    .bb-brandcell:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) { .bb-brands__grid { grid-template-columns: 1fr; } .bb-brandcell { border-right: 0 !important; } }

/* FAQ */
.bb-faq { background: var(--bb-offwhite); padding-block: clamp(3rem, 7vw, 5rem); }
.bb-faq__list { margin-top: 2rem; background: #fff; border: 1px solid var(--bb-line); border-radius: 6px; }
.bb-faq__item { border-top: 1px solid var(--bb-line); }
.bb-faq__item:first-child { border-top: 0; }
.bb-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; }
.bb-faq__item summary::-webkit-details-marker { display: none; }
.bb-faq__sign { position: relative; width: 16px; height: 16px; flex: none; }
.bb-faq__sign::before, .bb-faq__sign::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--bb-magenta); transition: transform .15s; }
.bb-faq__sign::after { transform: rotate(90deg); }
.bb-faq__item[open] .bb-faq__sign::after { transform: rotate(0deg); }
.bb-faq__item p { margin: 0 1.25rem 1.25rem; padding: 1rem 1.25rem; background: var(--bb-offwhite); color: var(--bb-text-soft); font-size: .9375rem; }

/* Contact */
.bb-contact { background: var(--bb-pink-softer); padding-block: clamp(3rem, 7vw, 5rem); }
.bb-contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); }
.bb-contact__intro h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; }
.bb-contact__intro .bb-rule { margin: 1.25rem 0 1.5rem; }
.bb-contact__intro p { color: var(--bb-text-soft); }
.bb-contact__direct a { color: var(--bb-magenta-dark); font-weight: 600; }
.bb-form { display: flex; flex-direction: column; gap: 1.25rem; }
.bb-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.bb-field { display: flex; flex-direction: column; gap: .35rem; }
.bb-field--full { grid-column: 1 / -1; }
.bb-field label { font-size: .8125rem; font-weight: 600; }
.bb-field input, .bb-field select, .bb-field textarea { font: inherit; font-size: .9375rem; padding: .7rem .8rem; border: 1px solid #d0d5dd; border-radius: var(--bb-radius-btn); background: #fff; color: var(--bb-text); width: 100%; }
.bb-field input:focus, .bb-field select:focus, .bb-field textarea:focus { outline: 2px solid var(--bb-magenta); outline-offset: 0; border-color: var(--bb-magenta); }
.bb-field [aria-invalid="true"] { border-color: #b3122f; }
.bb-field__error { margin: 0; font-size: .8125rem; color: #b3122f; }
.bb-form__notes { display: flex; justify-content: space-between; gap: 1rem; font-size: .8125rem; color: var(--bb-text-soft); }
.bb-form__notes p { margin: 0; }
.bb-form__notes a { color: var(--bb-magenta-dark); font-weight: 600; white-space: nowrap; }
.bb-alert { padding: .9rem 1rem; border-radius: var(--bb-radius-btn); font-weight: 500; }
.bb-alert--success { background: #e8f5ec; color: #1c5a31; border: 1px solid #b9e3c6; }
.bb-alert--error { background: #fdecef; color: #8a1230; border: 1px solid #f4c2cc; }
.bb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .bb-contact__grid, .bb-form__grid { grid-template-columns: 1fr; } .bb-form__notes { flex-direction: column; } }

/* Pages interieures */
.bb-page-hero { background: var(--bb-dark); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.bb-page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; max-width: 22ch; }
.bb-page-hero__intro { color: #c9cede; font-size: 1.0625rem; max-width: 62ch; margin: 1rem 0 0; }
.bb-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8125rem; color: #98a2b3; margin-bottom: 1.5rem; }
.bb-breadcrumb a { color: #c9cede; }
.bb-breadcrumb [aria-current] { color: #fff; }
.bb-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 2rem; }
.bb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.bb-split + .bb-cards { margin-top: 0; }
.bb-card { display: flex; flex-direction: column; gap: .6rem; background: #fff; border: 1px solid var(--bb-line); border-radius: 8px; padding: 1.75rem; scroll-margin-top: 96px; }
.bb-card h3 { font-size: 1.35rem; font-weight: 700; }
.bb-card__tagline { font-weight: 600; margin: 0; }
.bb-card p { color: var(--bb-text-soft); font-size: .9375rem; margin: 0; }
.bb-card .bb-textlink { margin-top: auto; padding-top: .5rem; }
.bb-prose h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; }
.bb-prose h2:first-child { margin-top: 0; }
.bb-prose p, .bb-prose li { color: var(--bb-text-soft); }
.bb-prose a { color: var(--bb-magenta-dark); font-weight: 600; }

/* Pied de page */
.bb-footer { background: #fff; border-top: 1px solid var(--bb-line); padding-block: 3rem 1.5rem; font-size: .9375rem; }
.bb-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.bb-footer__brand img { height: 38px; width: auto; margin-bottom: 1.25rem; }
.bb-footer__brand p { color: var(--bb-text-soft); margin: 0 0 .75rem; }
.bb-footer__brand .bb-footer__name { color: var(--bb-text); font-weight: 600; }
.bb-footer__brand a { color: var(--bb-text-soft); }
.bb-footer__col { display: flex; flex-direction: column; gap: .55rem; }
.bb-footer__col a { color: var(--bb-text-soft); text-decoration: none; }
.bb-footer__col a:hover, .bb-footer__brand a:hover { color: var(--bb-magenta-dark); }
.bb-footer__title { font-weight: 600; margin: 0 0 .25rem; }
.bb-footer__bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--bb-line); font-size: .8125rem; color: var(--bb-text-mute); }
@media (max-width: 860px) { .bb-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .bb-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Contenus enrichis (editeur du back-office) */
.bb-prose > * + * { margin-top: 1rem; }
.bb-prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: var(--bb-text); }
.bb-prose ul, .bb-prose ol { padding-left: 1.25rem; }
.bb-prose blockquote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--bb-magenta); font-style: italic; }
.bb-callout { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border-radius: 8px; background: var(--bb-pink-softer); border-left: 4px solid var(--bb-magenta); }
.bb-callout--info { background: #eef4fb; border-left-color: #2f6fbd; }
.bb-callout--attention { background: #fff6e5; border-left-color: #d08a00; }
.bb-callout__title { font-weight: 700; color: var(--bb-text); margin: 0 0 .35rem; }
.bb-callout p { margin: 0; }
.bb-callout > * + * { margin-top: .5rem; }
.bb-content-cta { margin-top: 1.75rem !important; }
.bb-content-cta .bb-btn { color: #fff; text-decoration: none; }
.bb-faq__answer { margin: 0 1.25rem 1.25rem; padding: 1rem 1.25rem; background: var(--bb-offwhite); color: var(--bb-text-soft); font-size: .9375rem; }
.bb-faq__answer p { margin: 0; }
.bb-faq__answer a { color: var(--bb-magenta-dark); font-weight: 600; }

/* ---------- Reseaux sociaux */
.bb-socials { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.bb-socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bb-line); color: var(--bb-text); }
.bb-socials a:hover { background: var(--bb-magenta); border-color: var(--bb-magenta); color: #fff; }
.bb-card .bb-socials { margin-top: .75rem; }

/* ---------- Realisations */
.bb-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.bb-case-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bb-line); border-radius: 8px; overflow: hidden; }
.bb-case-card__media { display: block; aspect-ratio: 16 / 10; background: var(--bb-pink-soft); }
.bb-case-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bb-case-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.5rem 1.5rem; }
.bb-case-card__client { margin: 0; font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--bb-magenta-dark); }
.bb-case-card h3 { font-size: 1.2rem; }
.bb-case-card h3 a { text-decoration: none; }
.bb-case-card h3 a:hover { color: var(--bb-magenta-dark); }
.bb-case-card p { margin: 0; font-size: .9375rem; color: var(--bb-text-soft); }
.bb-case-card__brands { color: var(--bb-text) !important; font-weight: 500; }
.bb-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3rem; list-style: none; margin: 2.5rem 0 0; padding: 0; }
.bb-logos img { height: 48px; width: auto; filter: grayscale(1); opacity: .75; }
.bb-logos img:hover { filter: none; opacity: 1; }
.bb-case__cover { margin-top: -2rem; }
.bb-case__cover img { width: 100%; height: auto; border-radius: 10px; display: block; }
.bb-case h2 { font-size: 1.5rem; font-weight: 700; margin: 2.25rem 0 .75rem; }
.bb-case h2:first-child { margin-top: 0; }
.bb-quote { margin: 2.5rem 0 0; padding: 1.5rem 1.75rem; border-left: 4px solid var(--bb-magenta); background: var(--bb-pink-softer); }
.bb-quote blockquote { margin: 0; }
.bb-quote p { font-size: 1.15rem; font-style: italic; margin: 0; }
.bb-quote figcaption { margin-top: .75rem; color: var(--bb-text-soft); font-size: .9375rem; }

/* ---------- Pages d'erreur */
.bb-errorlinks { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

/* Images dans les contenus */
.bb-prose img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---------- Bannieres */
.bb-hero, .bb-page-hero { position: relative; isolation: isolate; overflow: hidden; }
.bb-banner { position: absolute; inset: 0; z-index: -1; display: block; }
.bb-banner img { width: 100%; height: 100%; object-fit: cover; }
.bb-banner--overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 11, 61, .88) 0%, rgba(0, 11, 61, .6) 55%, rgba(0, 11, 61, .3) 100%); }
.bb-page-hero:has(> .bb-banner) { background: var(--bb-black, #000b3d); padding-block: clamp(4rem, 10vw, 7rem); }
.bb-page-hero:has(> .bb-banner) h1,
.bb-page-hero:has(> .bb-banner) p,
.bb-page-hero:has(> .bb-banner) a,
.bb-page-hero:has(> .bb-banner) li,
.bb-page-hero:has(> .bb-banner) span { color: #fff; }
.bb-page-hero:has(> .bb-banner) .bb-kicker { color: #ff5bac; }

/* ---------- Pictogrammes et visuels */
.bb-pole-icon { display: inline-block; object-fit: contain; }
.bb-card__visual { display: block; width: calc(100% + 3rem); max-width: none; margin: -1.5rem -1.5rem 1rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px 8px 0 0; }
.bb-card__logo { display: block; height: 40px; width: auto; margin-bottom: .75rem; }

/* ---------- Visuels dans les cadres du premier ecran (remplace l'image en fond) */
.bb-frame-picture { display: block; width: 100%; height: 100%; }
.bb-frame-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bb-hero__visual.has-image { border: 0; background: none; overflow: hidden; display: block; }
.bb-page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.bb-page-hero--visual .bb-page-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.bb-page-hero__visual { aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; }
@media (max-width: 860px) {
    .bb-page-hero--visual .bb-page-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .bb-hero__visual.has-mobile, .bb-page-hero__visual.has-mobile { aspect-ratio: 1 / 1; }
}

/* ---------- Bloc de contact : coordonnees structurees, numeros jamais coupes */
a[href^="tel:"], .bb-nowrap { white-space: nowrap; }
.bb-contact__intro { align-self: start; }
@media (min-width: 861px) { .bb-contact__intro { position: sticky; top: 100px; } }
.bb-contact__direct { margin-top: 1.75rem; margin-bottom: .75rem; font-weight: 600; color: var(--bb-text) !important; }
.bb-contact__ways { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.bb-contact__ways li { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: #fff; border: 1px solid #f3cfe0; border-radius: 8px; }
.bb-contact__way-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bb-pink-soft); color: var(--bb-magenta-dark); flex: none; }
.bb-contact__ways small { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--bb-text-mute); }
.bb-contact__ways a { font-weight: 600; color: var(--bb-magenta-dark); text-decoration: none; overflow-wrap: anywhere; }
.bb-contact__ways a:hover { text-decoration: underline; }
.bb-contact__ways a.bb-nowrap { overflow-wrap: normal; }

/* ---------- Bandeau de consentement aux cookies */
.bb-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; justify-content: center; padding: 1rem; pointer-events: none; }
.bb-consent[hidden] { display: none; }
.bb-consent__box { pointer-events: auto; width: 100%; max-width: 760px; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.5rem 1.75rem; background: #fff; color: var(--bb-text); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 11, 61, .3); border-top: 4px solid var(--bb-magenta); }
.bb-consent__title { font-size: 1.125rem; font-weight: 700; margin: 0 0 .5rem; }
.bb-consent__text { font-size: .9375rem; color: var(--bb-text-soft); margin: 0; }
.bb-consent__text a { color: var(--bb-magenta-dark); font-weight: 600; }
.bb-consent__panel { margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.bb-consent__cat { padding: .85rem 1rem; border: 1px solid var(--bb-line); border-radius: 8px; }
.bb-consent__cat label { display: flex; align-items: center; gap: .6rem; cursor: pointer; }
.bb-consent__cat label span { margin-left: auto; font-size: .75rem; color: var(--bb-text-mute); }
.bb-consent__cat input { width: 18px; height: 18px; accent-color: var(--bb-magenta); }
.bb-consent__cat p { margin: .35rem 0 0 1.75rem; font-size: .875rem; color: var(--bb-text-soft); }
.bb-consent__none { font-size: .875rem; color: var(--bb-text-soft); margin: 0; }
.bb-consent__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.bb-consent__btn { min-height: 44px; padding: 0 1.25rem; border-radius: var(--bb-radius-btn); border: 1.5px solid var(--bb-ink); background: #fff; color: var(--bb-ink); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.bb-consent__btn[hidden] { display: none; }
.bb-consent__btn--main { background: var(--bb-ink); color: #fff; }
.bb-consent__btn:hover { background: var(--bb-magenta); border-color: var(--bb-magenta); color: #fff; }
.bb-footer__consent { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; text-decoration: none; }
.bb-footer__consent:hover { color: var(--bb-magenta-dark); }
.bb-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.bb-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.bb-table th, .bb-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--bb-line); text-align: left; vertical-align: top; }
.bb-table th { font-weight: 600; background: var(--bb-offwhite); }
@media (max-width: 560px) { .bb-consent__actions { flex-direction: column-reverse; } .bb-consent__btn { width: 100%; } }

/* ---------- Logo Paximedia : mot-symbole allonge (ratio 4,9:1), jamais sous 160 px de large (charte, page 04) */
html { scroll-padding-top: 104px; }
.bb-header__inner { min-height: 84px; }
.bb-header__logo img { height: 42px; width: auto; }
@media (max-width: 1024px) {
    .bb-header__inner { min-height: 76px; }
    .bb-header__logo img { height: 34px; }
    .bb-nav { inset: 76px 0 auto 0 !important; max-height: calc(100vh - 76px) !important; }
}

/* Un element masque reste masque, quel que soit son style d'affichage */
[hidden] { display: none !important; }

/* Logos de marque : jamais deformes ni agrandis au-dela de leur taille reelle */
.bb-card__logo { max-width: 200px; width: auto; height: auto; max-height: 48px; object-fit: contain; }
/* Visuel de marque : photo, cadree proprement */
.bb-card__visual { object-fit: cover; object-position: center; }
