/* Cycles Blain — 1.9.82 : refonte de l'univers Accessoires (configuration centrale).
   Bandeau photo en vraie image (object-fit: cover, jamais étirée, sujet à droite), voile clair sous le titre,
   vignettes photo des besoins (carrées), message « famille vide ». Charte v1.1 : tokens uniquement, Inter Tight + Inter.
   1.9.82b/c : formulaire Jean-Baptiste sur plusieurs lignes dans le message « famille vide » (téléphone).
   S'ajoute à pieces-1.9.81.css (mêmes boutons, même barre de recherche, même bloc Pierre-Louis). */

/* ---------- bandeau ---------- */
.cbp .cbr-hero { min-height: 0; height: 300px; background: var(--cb-gris, #E4E4E2); isolation: isolate; }
.cbp .cbr-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right center; }
.cbp .cbr-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cb-blanc, #FFFFFF) 88%, transparent) 0%, color-mix(in srgb, var(--cb-blanc, #FFFFFF) 72%, transparent) 34%, color-mix(in srgb, var(--cb-blanc, #FFFFFF) 0%, transparent) 62%); }
.cbp .cbr-hero .cbp-hero-in { height: 100%; justify-content: center; padding: 32px 40px; }

/* ---------- lignes de liens sous le bandeau ---------- */
.cbp .cbr-lignes { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* ---------- vignettes d'un besoin ---------- */
.cbp .cbr-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 28px 0 8px; }
.cbp .cbr-tuile { display: flex; flex-direction: column; gap: 10px; color: var(--cb-noir, #111111); text-decoration: none; }
.cbp .cbr-tuile-img { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--cb-rayon-bouton, 8px);
  background: var(--cb-fond-produit, #F3F3F1); transition: transform .2s ease, box-shadow .2s ease; }
.cbp .cbr-tuile-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .7s var(--cb-anim, ease); }
.cbp .cbr-tuile-nom { font-family: var(--cb-police-titre, "Inter Tight", system-ui, sans-serif); font-weight: 500; font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; }
.cbp .cbr-tuile:hover .cbr-tuile-img, .cbp .cbr-tuile:focus-visible .cbr-tuile-img { transform: translateY(-3px); box-shadow: var(--cb-ombre-flottant, 0 24px 48px rgba(17,17,17,.08)); }
.cbp .cbr-tuile:hover .cbr-tuile-img img { transform: scale(1.04); }
.cbp .cbr-tuile:hover .cbr-tuile-nom { color: var(--cb-noir, #111111); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- famille vide ---------- */
.cbp .cbr-vide { margin-top: 28px; padding: 28px 32px; border-radius: var(--cb-rayon-bouton, 8px); background: var(--cb-fond-2, #F5F5F3); scroll-margin-top: 120px; }
.cbp .cbr-vide-sur { margin: 0; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--cb-texte-3, #5C5C5C); }
.cbp .cbr-vide-titre { margin: 6px 0 0; font-family: var(--cb-police-titre, "Inter Tight", system-ui, sans-serif); font-weight: 500; font-size: 28px;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--cb-noir, #111111); text-transform: none; }
.cbp .cbr-vide-texte { margin: 6px 0 18px; font-size: 16px; line-height: 1.5; color: var(--cb-texte-2, #3A3A3A); }
.cbp .cbr-vide .cb-acc-jb { margin: 0; }

/* ---------- téléphone ---------- */
@media (max-width: 767px) {
  .cbp .cbr-hero { height: auto; background: var(--cb-fond-2, #F5F5F3); }
  .cbp .cbr-hero::before { display: none; }
  .cbp .cbr-hero-img { position: static; z-index: auto; display: block; height: 170px; object-position: 78% center; border-radius: var(--cb-rayon-photo, 4px) var(--cb-rayon-photo, 4px) 0 0; }
  .cbp .cbr-hero .cbp-hero-in { height: auto; padding: 18px 16px 18px; }
  .cbp .cbr-lignes { align-items: flex-start; }
  .cbp .cbr-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
  .cbp .cbr-tuile-nom { font-size: 16px; }
  .cbp .cbr-vide { padding: 20px 16px; }
  .cbp .cbr-vide-titre { font-size: 22px; }
  .cbp .cbr-vide .cb-acc-jb { padding: 16px; }
  .cbp .cbr-vide .cb-acc-jb-zone { flex: 1 1 100%; width: 100%; min-width: 0; }
  .cbp .cbr-vide .cb-acc-jb-form { display: flex; flex-wrap: wrap; gap: 8px; }
  .cbp .cbr-vide .cb-acc-jb-form input, .cbp .cbr-vide .cb-acc-jb-form button { flex: 1 1 100%; width: 100%; min-width: 0; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
  .cbp .cbr-tuile-img, .cbp .cbr-tuile-img img { transition: none; }
}

/* ---------- 1.9.83 : Pierre-Louis sur tous les rayons ---------- */
.cb-acc .cbr-conseil, .cb-acc .cbr-verif { display: inline-flex; align-self: flex-start; margin: 0 0 6px; padding: 3px 8px; border-radius: var(--cb-rayon-etiquette, 6px);
  font: 500 12px/1.3 var(--cb-police-texte, "Inter", system-ui, sans-serif); }
.cb-acc .cbr-conseil { background: var(--cb-noir, #111111); color: var(--cb-blanc, #FFFFFF); }
.cb-acc .cbr-verif { border: 1px solid var(--cb-filet, #DADAD7); background: var(--cb-fond-2, #F5F5F3); color: var(--cb-texte-2, #3A3A3A); }
.cbp .cbr-nsp { display: flex; flex-direction: column; gap: 4px; margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--cb-filet, #DADAD7);
  border-radius: var(--cb-rayon-bouton, 8px); background: var(--cb-blanc, #FFFFFF); }
.cbp .cbr-nsp-titre { font-family: var(--cb-police-titre, "Inter Tight", system-ui, sans-serif); font-weight: 500; font-size: 18px; color: var(--cb-noir, #111111); }
.cbp .cbr-nsp-texte { font-size: 15px; line-height: 1.5; color: var(--cb-texte-2, #3A3A3A); }
.cbp .cbr-nsp-liens { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: 15px; font-weight: 500; }
.cbp .cbr-nsp-liens a { color: var(--cb-noir, #111111); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 1.9.83b/c : retours du propriétaire (25/11/2026) : ancien en-tête masqué, cases sans picto centrées et plus basses ---------- */
/* ancien en-tête « texte de catégorie » (module boncategorytext, non modifié) : masqué sur les pages de la refonte seulement */
#text-category { display: none !important; }
/* cases réduites à un nom ou un logo (marques, tailles…) : contenu centré, nom qui ne déborde jamais */
.cbp .cbp-case.cbr-centre { align-items: center; justify-content: center; gap: 4px; text-align: center; min-height: 72px; padding: 12px 14px; }
.cbp .cbp-case.cbr-centre .cbp-case-txt { align-items: center; }
.cbp .cbp-case.cbr-centre .cbp-case-nom { font-size: 16px; }
.cbp .cbp-case.cbr-centre .cbp-gros { font-size: 22px; max-width: 100%; overflow-wrap: anywhere; }
.cbp .cbp-case .cbr-logo { display: block; width: auto; max-width: 100%; height: 30px; object-fit: contain; }
@media (max-width: 767px) {
  .cbp .cbp-case.cbr-centre { min-height: 64px; }
  .cbp .cbp-case.cbr-centre .cbp-gros { font-size: 19px; }
}

/* ---------- 1.9.83d : page plus compacte (demande du propriétaire : voir les premiers produits dès l'arrivée) ---------- */
.cbp .cbp-hero { margin-top: 0; }
.cbp .cbr-hero { height: 210px; }
.cbp .cbr-hero .cbp-hero-in { padding: 20px 36px; gap: 14px; }
.cb-acc.cbp .cbr-hero .cbp-titre { font-size: 40px; }
.cbp .cbr-hero .cbp-champ, .cbp .cbr-hero .cbp-bouton { height: 48px; }
.cbp .cbp-nav { margin-top: 8px; }
.cbp .cbp-retour { padding: 4px 0; }
.cbp .cbp-zone > .cbp-bloc:first-child { margin-top: 10px; }
.cbp .cbp-bloc { margin-top: 12px; padding: 16px 22px 18px; }
.cbp .cbp-reps { margin-bottom: 10px; }
.cbp .cbp-chip { height: 32px; }
.cbp .cbp-av { width: 36px; height: 36px; }
.cbp .cbp-titre-q { font-size: 22px; }
.cbp .cbp-aide { font-size: 14px; margin-top: 2px; }
.cbp .cbp-cases { margin-top: 12px; padding-left: 50px; gap: 10px; }
.cbp .cbp-case { min-height: 80px; padding: 12px; }
.cbp .cbp-case.cbr-centre { min-height: 52px; padding: 8px 12px; }
.cbp .cbp-passer { margin-top: 8px; padding-left: 50px; }
.cbp .cbr-nsp { margin-bottom: 12px; padding: 12px 14px; }
.cbp .cbp-compte { margin: 16px 0 12px; }
.cbp .cbr-tuiles { margin-top: 16px; }
.cbp .cbr-bas { display: flex; flex-direction: column; gap: 6px; margin: 28px 0 0; }
@media (max-width: 767px) {
  .cbp .cbr-hero { height: auto; }
  .cbp .cbr-hero-img { height: 130px; }
  .cbp .cbr-hero .cbp-hero-in { padding: 14px 14px 14px; gap: 10px; }
  .cb-acc.cbp .cbr-hero .cbp-titre { font-size: 28px; }
  .cbp .cbr-hero .cbp-bouton { height: 44px; }
  .cbp .cbp-bloc { padding: 14px 12px 16px; }
  .cbp .cbp-titre-q { font-size: 19px; }
  .cbp .cbp-cases, .cbp .cbp-passer { padding-left: 0; }
  .cbp .cbp-case { min-height: 72px; }
  .cbp .cbp-case.cbr-centre { min-height: 48px; }
}

/* ---------- 1.9.83e : photos des cartes ---------- */
/* La charte (cbvitrine) donne à l'IMAGE le même gris que son cadre, puis la fond (multiply) : gris × gris = carré plus foncé,
   visible dès qu'une photo est détourée (transparente). Sur les pages de la refonte, l'image n'a plus de fond propre :
   le cadre gris suffit. Les photos à fond gris posées sur une toile blanche sont repeintes par photos-1.9.83b.js. */
html:not(#cbz) body .cbp a.cb-acc-carte img, html:not(#cbz) body .cbp .cb-acc-carte .cb-acc-photo img { background: transparent; }

/* ---------- 1.9.84 : « Je ne sais pas » => formulaire Jean-Baptiste dans le bloc de Pierre-Louis ---------- */
.cbp .cbr-nsp { gap: 12px; }
.cbp .cbr-nsp-tete { display: flex; align-items: flex-start; gap: 12px; }
.cbp .cbr-nsp-jb { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--cb-rayon-rond, 999px);
  background: var(--cb-noir, #111111); color: var(--cb-blanc, #FFFFFF); font: 500 13px/1 var(--cb-police-titre, "Inter Tight", system-ui, sans-serif); }
.cbp .cbr-nsp-tete > div { display: flex; flex-direction: column; gap: 2px; }
.cbp .cbr-aide { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px; margin: 0; }
.cbp .cbr-aide[hidden] { display: none; }
.cbp .cbr-aide-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cbp .cbr-aide-photo { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 112px; margin: 0;
  padding: 10px; border: 1px dashed var(--cb-filet, #DADAD7); border-radius: var(--cb-rayon-bouton, 8px); background: var(--cb-fond-2, #F5F5F3);
  text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.cbp .cbr-aide-photo:hover, .cbp .cbr-aide-photo.survol { border-color: var(--cb-noir, #111111); background: var(--cb-blanc, #FFFFFF); }
.cbp .cbr-aide-photo input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cbp .cbr-aide-photo img { max-width: 100%; max-height: 64px; border-radius: var(--cb-rayon-photo, 4px); object-fit: contain; }
.cbp .cbr-aide-photo-txt { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--cb-noir, #111111); }
.cbp .cbr-aide-photo-txt strong { font-weight: 500; }
.cbp .cbr-aide-photo-txt small { font-size: 12px; color: var(--cb-texte-3, #5C5C5C); overflow-wrap: anywhere; }
.cbp .cbr-aide-champs { display: flex; flex-direction: column; gap: 8px; }
.cbp .cbr-aide-champs input, .cbp .cbr-aide-champs textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--cb-filet, #DADAD7);
  border-radius: var(--cb-rayon-bouton, 8px); background: var(--cb-blanc, #FFFFFF); font: 400 15px/1.4 var(--cb-police-texte, "Inter", system-ui, sans-serif); color: var(--cb-noir, #111111); }
.cbp .cbr-aide-champs textarea { resize: vertical; min-height: 56px; }
.cbp .cbr-aide-champs input:focus, .cbp .cbr-aide-champs textarea:focus { outline: none; border-color: var(--cb-noir, #111111); }
.cbp .cbr-aide-envoyer { align-self: flex-start; height: 44px; padding: 0 20px; border: 0; border-radius: var(--cb-rayon-bouton, 8px); background: var(--cb-noir, #111111);
  color: var(--cb-blanc, #FFFFFF); font: 500 15px/1 var(--cb-police-texte, "Inter", system-ui, sans-serif); cursor: pointer; }
.cbp .cbr-aide-envoyer[disabled] { opacity: .6; cursor: wait; }
.cbp .cbr-aide-err { grid-column: 1 / -1; margin: 0; font-size: 14px; font-weight: 500; color: var(--cb-tomette, #B5523B); }
.cbp .cbr-aide-ok { margin: 0; font-size: 16px; font-weight: 500; color: var(--cb-noir, #111111); }
.cbp .cbr-aide-ok span:first-child { color: var(--cb-tomette, #B5523B); }
.cbp .cbr-nsp-liens { font-size: 13px; font-weight: 400; color: var(--cb-texte-3, #5C5C5C); }
.cbp .cbr-nsp-liens a { font-weight: 400; }
@media (max-width: 767px) {
  .cbp .cbr-aide { grid-template-columns: 1fr; }
  .cbp .cbr-aide-photo { min-height: 72px; }
  .cbp .cbr-aide-envoyer { width: 100%; }
}
