/* Bloc commun « bac NUQUE Libi Lift » — includes/bloc-nuque.php
   Mobile d'abord (390 px). Charte VO Concept (crème, noir, or), allure de la
   vitrine de nuque.fr : surtitre espacé, titre serré, produit sur fond blanc. */

.bn { background: #fff; color: #171717; border-top: 1px solid #eadfd2; border-bottom: 1px solid #eadfd2; }
.bn, .bn * { box-sizing: border-box; }
.bn__in { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.bn p { margin: 0; }

.bn .bn__marque { font-size: 11px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #8a6a3a; }

/* ── Variante haut : produit + formulaire ─────────────────────────── */
.bn--haut { padding: 28px 0 32px; scroll-margin-top: 76px; }
.bn--haut .bn__in { display: grid; gap: 22px; }
.bn__produit { min-width: 0; }
.bn .bn__titre { margin: 8px 0 0; font-size: 27px; line-height: 1.14; letter-spacing: -.02em; font-weight: 800; color: #111; text-wrap: balance; }
.bn .bn__titre span { color: #9a7440; }
.bn__photo { display: block; margin: 10px -6px 0; }
.bn__photo img { display: block; width: 100%; height: auto; }

.bn .bn__preuves { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #eadfd2; border-bottom: 1px solid #eadfd2; }
.bn .bn__preuves--seules { margin-top: 18px; }
.bn .bn__preuves li { margin: 0; padding: 12px 8px 12px 0; font-size: 12px; line-height: 1.35; color: #5b5b5b; }
.bn .bn__preuves li + li { padding-left: 10px; border-left: 1px solid #eadfd2; }
.bn .bn__preuves b { display: block; margin-bottom: 3px; font-size: 15px; line-height: 1.2; font-weight: 800; color: #111; }
.bn .bn__preuves span { display: block; }

.bn .bn__prix { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; line-height: 1.45; color: #5b5b5b; }
.bn .bn__prix b { font-size: 26px; line-height: 1.1; font-weight: 800; color: #111; white-space: nowrap; }

/* Formulaire */
.bn__form { scroll-margin-top: 84px; min-width: 0; background: #f5eee7; border: 1px solid #e1d6c7; border-radius: 16px; padding: 20px 18px 18px; }
.bn .bn__form-titre { font-size: 20px; line-height: 1.2; font-weight: 800; color: #111; }
.bn .bn__form-intro { margin-top: 6px; font-size: 14px; line-height: 1.5; color: #555; }
.bn__piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bn__champs { display: grid; gap: 12px; margin-top: 16px; }
.bn__champ { min-width: 0; }
.bn__champ label, .bn__bacs legend { display: block; margin-bottom: 5px; padding: 0; font-size: 13px; line-height: 1.3; font-weight: 700; color: #111; }
.bn__champ input { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid #d4c5a3; border-radius: 10px; background: #fff; color: #111; font: inherit; font-size: 16px; line-height: 1.3; -webkit-appearance: none; appearance: none; }
.bn__champ input::placeholder { color: #a39a8c; }
.bn__champ input:focus, .bn__pastilles input:focus-visible + span { outline: 3px solid rgba(180, 142, 86, .55); outline-offset: 1px; border-color: #B48E56; }

.bn__bacs { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.bn__pastilles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.bn__pastilles label { position: relative; display: block; margin: 0; cursor: pointer; }
.bn__pastilles input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bn__pastilles span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1.5px solid #d4c5a3; border-radius: 10px; background: #fff; font-size: 16px; font-weight: 700; color: #111; white-space: nowrap; }
.bn__pastilles input:checked + span { background: #111; border-color: #111; color: #fff; }

.bn .bn__erreur { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #ffebee; border: 1px solid #c62828; color: #8e1c1c; font-size: 13.5px; line-height: 1.45; }
.bn .bn__merci { margin-top: 14px; padding: 14px; border-radius: 10px; background: #e7f5ec; border: 1px solid #2e7d32; color: #1b4d20; font-size: 15px; line-height: 1.5; }
.bn [hidden] { display: none !important; }

.bn .bn__bouton { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; margin-top: 16px; padding: 14px 20px; border: 1px solid #111; border-radius: 12px; background: #111; color: #fff; font: inherit; font-size: 16px; line-height: 1.2; font-weight: 800; text-align: left; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: background-color .2s ease, border-color .2s ease; }
.bn .bn__bouton:hover { background: #B48E56; border-color: #B48E56; color: #fff; }
.bn .bn__bouton:focus-visible { outline: 3px solid rgba(180, 142, 86, .7); outline-offset: 3px; }
.bn .bn__bouton[disabled] { opacity: .6; cursor: wait; }
.bn__fleche { flex: none; font-size: 19px; }

.bn .bn__mention { margin-top: 12px; font-size: 11.5px; line-height: 1.5; color: #6b6b6b; }
.bn .bn__mention a { color: inherit; text-decoration: underline; }
.bn .bn__lien { display: inline-block; margin-top: 14px; padding: 6px 0 3px; border-bottom: 1px solid #b9a27d; color: #111; font-size: 14px; line-height: 1.3; font-weight: 600; text-decoration: none; }
.bn .bn__lien:hover { color: #8a6a3a; border-bottom-color: #8a6a3a; }

/* Le bouton flottant « Appeler » du site passe devant le formulaire sur mobile :
   il s'efface tant que le formulaire est à l'écran, et pendant la saisie. */
body.bn-saisie .floating-cta, body.bn-a-l-ecran .floating-cta { display: none !important; }

.bn .bn__precision { margin-top: 12px; padding: 10px 12px; border-left: 3px solid #B48E56; background: #faf6f0; font-size: 13.5px; line-height: 1.5; color: #3d3d3d; }

/* ── Variante vue : le bac en salon, à mi-page ─────────────────────── */
.bn--vue { padding: 22px 0; background: #111; color: #fff; border-color: #111; }
.bn--vue .bn__in { display: grid; gap: 16px; }
.bn__vue-photo { display: block; border-radius: 14px; overflow: hidden; background: #2a2622; }
.bn__vue-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 58%; }
.bn__vue-texte { min-width: 0; }
.bn--vue .bn__marque { color: #cfae7a; }
.bn .bn__vue-titre { margin-top: 6px; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; font-weight: 800; color: #fff; text-wrap: balance; }
.bn .bn__vue-ligne { margin-top: 8px; font-size: 14px; line-height: 1.55; color: #d9d4cc; }
.bn .bn__vue-ligne b { color: #fff; white-space: nowrap; }
.bn--vue .bn__bouton { background: #B48E56; border-color: #B48E56; color: #fff; }
.bn--vue .bn__bouton:hover { background: #fff; border-color: #fff; color: #111; }
/* Posé dans une colonne de texte : il garde ses marges, sans déborder. */
article .bn--vue, .container .bn--vue { margin: 28px 0; border-radius: 16px; overflow: hidden; }

/* ── Variante rappel : bandeau compact ────────────────────────────── */
.bn--rappel { padding: 18px 0; background: #f5eee7; }
.bn--rappel .bn__in { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.bn__vignette { display: block; background: #fff; border-radius: 12px; overflow: hidden; }
.bn__vignette img { display: block; width: 100%; height: auto; }
.bn__rappel-texte { min-width: 0; }
.bn .bn__rappel-titre { margin: 4px 0 0; font-size: 17px; line-height: 1.25; font-weight: 800; color: #111; }
.bn .bn__rappel-ligne { margin-top: 5px; font-size: 13px; line-height: 1.45; color: #555; }
.bn .bn__rappel-ligne b { color: #111; white-space: nowrap; }
.bn__rappel-action { grid-column: 1 / -1; min-width: 0; }
.bn--rappel .bn__bouton { margin-top: 12px; }
.bn--rappel .bn__lien { margin-top: 10px; }

@media (min-width: 560px) {
  .bn__champs { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  .bn--vue { padding: 32px 0; }
  .bn--vue .bn__in { grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: center; }
  .bn__vue-photo img { aspect-ratio: 4 / 5; object-position: center 62%; }
  .bn .bn__vue-titre { font-size: 28px; }
  .bn .bn__vue-ligne { font-size: 15.5px; max-width: 46ch; }
  .bn--vue .bn__bouton { width: auto; display: inline-flex; margin-top: 20px; }
  .bn--rappel { padding: 22px 0; }
  .bn--rappel .bn__in { grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; }
  .bn__rappel-action { grid-column: auto; text-align: right; }
  .bn--rappel .bn__bouton { width: auto; margin-top: 0; white-space: nowrap; }
  .bn .bn__rappel-titre { font-size: 20px; }
}

@media (min-width: 900px) {
  .bn--haut { padding: 48px 0 52px; }
  .bn--haut .bn__in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
  .bn .bn__titre { font-size: 36px; }
  .bn__photo { margin: 14px 0 0; }
  .bn .bn__preuves li { padding: 16px 12px 16px 0; font-size: 13px; }
  .bn .bn__preuves li + li { padding-left: 16px; }
  .bn .bn__preuves b { font-size: 18px; }
  .bn .bn__prix b { font-size: 30px; }
  .bn__form { padding: 28px 28px 24px; }
  .bn .bn__form-titre { font-size: 23px; }
}
