/* Home « carnet d’auteur » : composants du thème Bigspring (cartes features, pilules, rangées image/texte). */
.bh-e6e3-home { overflow-x: clip; }
.bh-e6e3-bloc { padding: 70px 0; }
.bh-e6e3-fond { background: var(--c-fond-2); }
.bh-e6e3-cadre { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.bh-e6e3-cadre > * { min-width: 0; }
.bh-e6e3-titre { font-size: clamp(1.7rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 2rem; max-width: 30ch; }
.bh-e6e3-ico { flex: none; color: var(--c-primaire-fonce); }
.bh-e6e3-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; font-size: .92rem; margin: .8rem 0 0; }
.bh-e6e3-meta .bh-e6e3-ico + time, .bh-e6e3-meta time { margin-right: .5rem; }
.bh-e6e3-meta .bh-e6e3-ico:not(:first-child) { margin-left: .6rem; }
.bh-e6e3-carte { background: #fff; border: 1px solid var(--c-bord); border-radius: var(--r-carte); padding: 30px; min-width: 0; }
.bh-e6e3-carte-tete { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.2rem; color: var(--c-titre); margin: 0 0 .75rem; }
.bh-e6e3-petit { font-size: .9rem; }
.bh-e6e3-bloc img { max-height: 480px; }
.bh-e6e3-bloc h3 a, .bh-e6e3-bloc h2 a { color: var(--c-titre); }
.bh-e6e3-bloc h3 a:hover, .bh-e6e3-bloc h2 a:hover { color: var(--c-primaire-fonce); }
.bh-e6e3-suite { margin: 2rem 0 0; text-align: center; }

/* Hero : carte photo contenue, voile sombre, texte centré */
.bh-e6e3-hero { padding: 32px 0 0; }
.bh-e6e3-hero-carte { position: relative; display: grid; place-items: center; border-radius: 16px; overflow: hidden; background: var(--c-voile); }
.bh-e6e3-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none !important; object-fit: cover; }
.bh-e6e3-hero-carte::after { content: ""; position: absolute; inset: 0; background: rgba(10, 46, 46, .72); }
.bh-e6e3-hero-texte { position: relative; z-index: 1; width: min(720px, 100%); padding: 80px 24px; text-align: center; color: #fff; }
.bh-e6e3-hero-texte h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.15; margin: .5rem 0 1.2rem; }
.bh-e6e3-hero-texte p { color: #fff; font-size: 1.1rem; margin: 0 0 .6rem; }
.bh-e6e3-hero-texte .bh-e6e3-kicker { color: #9ff0ef; }
.bh-e6e3-hero-texte .btn { margin-top: 1.4rem; }
@media (max-width: 640px) { .bh-e6e3-hero-texte { padding: 48px 20px; } .bh-e6e3-hero-texte p { font-size: 1rem; } }

/* Article vedette : image / texte en 5/7 dès 768 px ; deux formes (image à gauche, à droite) */
.bh-e6e3-vedette-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.bh-e6e3-vedette-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-image); max-height: 420px; }
.bh-e6e3-vedette-typo { display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: var(--r-image); background: var(--c-fond-2); color: var(--c-primaire-fonce); font-size: 2.4rem; font-weight: 700; }
.bh-e6e3-vedette-titre { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; margin: .8rem 0; }
@media (min-width: 768px) {
  .bh-e6e3-vedette-grille { grid-template-columns: 5fr 7fr; gap: 48px; }
  [data-form="image-droite"] .bh-e6e3-vedette-grille { grid-template-columns: 7fr 5fr; }
  [data-form="image-droite"] .bh-e6e3-vedette-media { order: 2; }
}

/* Sélection : une grande carte + deux petites, ou trois colonnes */
.bh-e6e3-selection-grille { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.bh-e6e3-carte-article { background: #fff; border: 1px solid var(--c-bord); border-radius: var(--r-carte); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.bh-e6e3-carte-article img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.bh-e6e3-carte-corps { padding: 24px; }
.bh-e6e3-carte-corps h3 { font-size: 1.3rem; line-height: 1.3; margin: .7rem 0 .5rem; }
@media (min-width: 768px) {
  [data-form="trois-colonnes"] .bh-e6e3-selection-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-form="une-plus-deux"] .bh-e6e3-selection-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-form="une-plus-deux"] .bh-e6e3-carte-article:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; }
  [data-form="une-plus-deux"] .bh-e6e3-carte-article:first-child img { height: 100%; aspect-ratio: auto; min-height: 280px; }
  [data-form="une-plus-deux"] .bh-e6e3-carte-article:first-child .bh-e6e3-carte-corps { padding: 36px; align-self: center; }
  [data-form="une-plus-deux"] .bh-e6e3-carte-article:first-child h3 { font-size: 1.7rem; }
}

/* Journal : lignes datées, vignette facultative */
.bh-e6e3-journal-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-bord); }
.bh-e6e3-ligne { display: grid; grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--c-bord); }
.bh-e6e3-ligne-date { font-weight: 700; color: var(--c-primaire-fonce); font-size: .92rem; padding-top: .2rem; }
.bh-e6e3-ligne-rub { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-texte); }
.bh-e6e3-ligne h3 { font-size: 1.2rem; line-height: 1.35; margin: .2rem 0 .35rem; }
.bh-e6e3-ligne p { margin: 0; }
.bh-e6e3-ligne-vignette { width: 120px; height: 80px; object-fit: cover; border-radius: var(--r-image); }
@media (max-width: 767px) {
  .bh-e6e3-ligne { grid-template-columns: minmax(0, 1fr) 88px; gap: 6px 16px; }
  .bh-e6e3-ligne-date { grid-column: 1 / -1; }
  .bh-e6e3-ligne-vignette { width: 88px; height: 64px; }
}

/* Auteur : bandeau compact */
.bh-e6e3-auteur-bandeau { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--c-bord); border-radius: var(--r-carte); padding: 30px; }
.bh-e6e3-auteur-portrait { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.bh-e6e3-auteur-nom { font-size: 1.5rem; margin: 0 0 .4rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.bh-e6e3-auteur-nom span { font-size: 1rem; font-weight: 400; color: var(--c-texte); }
.bh-e6e3-auteur-texte p:last-child { margin: 0; max-width: 65ch; }
.bh-e6e3-auteur-liens { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) { .bh-e6e3-auteur-bandeau { grid-template-columns: auto minmax(0, 1fr); } .bh-e6e3-auteur-liens { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 520px) { .bh-e6e3-auteur-bandeau { grid-template-columns: minmax(0, 1fr); } }

/* Parcours : cartes features (grille) ou liste de portes */
.bh-e6e3-parcours-grille { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.bh-e6e3-parcours-grille > li { min-width: 0; }
.bh-e6e3-porte { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; height: 100%; padding: 28px; background: #fff; border: 1px solid var(--c-bord); border-radius: var(--r-carte); color: var(--c-texte); transition: box-shadow .15s, border-color .15s; }
.bh-e6e3-porte:hover { border-color: var(--c-primaire); box-shadow: var(--o-survol); }
.bh-e6e3-porte-ico { grid-row: 1 / span 3; color: var(--c-primaire-fonce); }
.bh-e6e3-porte-nom { font-size: 1.25rem; font-weight: 700; color: var(--c-titre); }
.bh-e6e3-porte-n { font-weight: 700; color: var(--c-primaire-fonce); font-size: .92rem; }
@media (min-width: 768px) {
  [data-form="grille"] .bh-e6e3-parcours-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-form="grille"] .bh-e6e3-large-m { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  [data-form="grille"] .bh-e6e3-parcours-grille { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  [data-form="grille"] .bh-e6e3-parcours-grille > li { grid-column: span 2; }
  [data-form="grille"] .bh-e6e3-parcours-grille > li.bh-e6e3-large-2 { grid-column: span 3; }
  [data-form="grille"] .bh-e6e3-parcours-grille > li.bh-e6e3-large-1 { grid-column: 1 / -1; }
  [data-form="grille"] .bh-e6e3-porte { grid-template-columns: minmax(0, 1fr); }
  [data-form="grille"] .bh-e6e3-porte-ico { grid-row: auto; }
}
[data-form="liste"] .bh-e6e3-parcours-grille { gap: 0; border-top: 1px solid var(--c-bord); }
[data-form="liste"] .bh-e6e3-porte { border: 0; border-bottom: 1px solid var(--c-bord); border-radius: 0; background: transparent; grid-template-columns: auto minmax(0, 1fr) auto; padding: 20px 8px; }
[data-form="liste"] .bh-e6e3-porte-ico { grid-row: 1 / span 2; }
[data-form="liste"] .bh-e6e3-porte-n { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

/* Carnet pratique : étapes illustrées (photo à côté) ou colonnes (photo en bandeau) */
.bh-e6e3-carnet-grille { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.bh-e6e3-carnet-visuel { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-image); max-height: 420px; }
.bh-e6e3-carnet-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bh-e6e3-carnet-liste li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: var(--r-carte); background: #fff; border: 1px solid var(--c-bord); }
.bh-e6e3-carnet-liste li.kv-actif, .bh-e6e3-carnet-liste li[aria-current] { border-color: var(--c-primaire); }
.bh-e6e3-carnet-liste h3 { font-size: 1.1rem; margin: .3rem 0 .2rem; }
.bh-e6e3-carnet-liste p { margin: 0; }
.bh-e6e3-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-primaire-fonce); color: #fff; font-weight: 700; }
@media (min-width: 900px) {
  [data-form="etapes"] .bh-e6e3-carnet-grille { grid-template-columns: 5fr 7fr; align-items: start; }
  [data-form="etapes"] .bh-e6e3-carnet-visuel { position: sticky; top: calc(var(--header-h) + 24px); }
  [data-form="colonnes"] .bh-e6e3-carnet-visuel { aspect-ratio: 16 / 6; max-height: 320px; }
  [data-form="colonnes"] .bh-e6e3-carnet-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  [data-form="colonnes"] .bh-e6e3-carnet-liste li { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 640px) and (max-width: 899px) { [data-form="colonnes"] .bh-e6e3-carnet-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Outils : calculateur + outillage */
.bh-e6e3-outils-grille { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .bh-e6e3-outils-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-form="calcul-droite"] .bh-e6e3-calc { order: 2; }
}
.bh-e6e3-calc label { display: grid; gap: 4px; font-weight: 700; color: var(--c-titre); margin: 0 0 12px; font-size: .95rem; }
.bh-e6e3-calc input { min-height: 44px; border: 1px solid var(--c-bord); border-radius: 8px; padding: 0 12px; font: inherit; color: var(--c-titre); background: #fff; }
.bh-e6e3-resultats { margin-top: 18px; padding: 18px; border-radius: var(--r-carte); background: var(--c-fond-2); }
.bh-e6e3-resultats p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 4px 0; font-weight: 700; color: var(--c-titre); }
.bh-e6e3-resultats output { color: var(--c-primaire-fonce); font-size: 1.4rem; }
.bh-e6e3-materiel { position: relative; }
.bh-e6e3-lottie { width: 56px; height: 56px; flex: none; }
.bh-e6e3-materiel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; clear: right; }
.bh-e6e3-materiel li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
.bh-e6e3-materiel li strong { display: block; color: var(--c-titre); }

/* Quiz */
.bh-e6e3-quiz .bh-e6e3-titre { margin-inline: auto; text-align: center; }
.bh-e6e3-quiz .bh-e6e3-kicker { text-align: center; }
.bh-e6e3-quiz-carte { max-width: 760px; margin-inline: auto; }
.bh-e6e3-quiz-carte [data-question-texte] { font-size: 1.2rem; font-weight: 700; color: var(--c-titre); }
.bh-e6e3-quiz-carte button { min-height: 44px; border-radius: 30px; }

/* FAQ : accordéon ou deux colonnes */
.bh-e6e3-faq-liste { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { [data-form="deux-colonnes"] .bh-e6e3-faq-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
[data-form="accordeon"] .bh-e6e3-faq-liste { max-width: 820px; }
.bh-e6e3-question { background: #fff; border: 1px solid var(--c-bord); border-radius: var(--r-carte); }
.bh-e6e3-question summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 44px; padding: 18px 20px; cursor: pointer; font-weight: 700; color: var(--c-titre); list-style: none; }
.bh-e6e3-question summary::-webkit-details-marker { display: none; }
.bh-e6e3-question[open] .bh-e6e3-chevron { transform: rotate(180deg); }
.bh-e6e3-question p { margin: 0; padding: 0 20px 20px 54px; }

/* Intention */
.bh-e6e3-intention-corps { max-width: 760px; margin-inline: auto; text-align: center; }
.bh-e6e3-intention-corps .bh-e6e3-titre { margin-inline: auto; }
.bh-e6e3-intention-corps p { max-width: 65ch; margin-inline: auto; }
.bh-e6e3-intention-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--c-bord); margin-bottom: 1rem; }
.bh-e6e3-signature { font-weight: 700; color: var(--c-titre); margin: 1.4rem auto !important; }
[data-usine-bloc="intention"] .bh-e6e3-signature { text-align: center; max-width: 65ch; }

/* Checklist piste */
.bh-e6e3-checklist-grille { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.bh-e6e3-checklist-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-image); max-height: 460px; }
@media (min-width: 900px) {
  .bh-e6e3-checklist-grille { grid-template-columns: 5fr 7fr; }
  [data-form="photo-droite"] .bh-e6e3-checklist-photo { order: 2; }
  [data-form="photo-droite"] .bh-e6e3-checklist-grille { grid-template-columns: 7fr 5fr; }
}
.bh-e6e3-checklist .bh-e6e3-titre { margin-bottom: .6rem; }
.bh-e6e3-compteur { font-weight: 700; color: var(--c-primaire-fonce); }
.bh-e6e3-checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bh-e6e3-checklist label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 44px; padding: 8px 0; cursor: pointer; }
.bh-e6e3-checklist input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--c-primaire-fonce); border-radius: 50%; }
.bh-e6e3-checklist label strong { display: block; color: var(--c-titre); }
.bh-e6e3-checklist input:checked + span strong { text-decoration: line-through; text-decoration-color: var(--c-primaire); }

/* Plan-projet : frise */
.bh-e6e3-frise { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
[data-usine-bloc="plan-projet"] .bh-e6e3-frise[data-frise] { padding: 0 0 0 2.25rem; position: relative; }
[data-usine-bloc="plan-projet"] .bh-e6e3-frise[data-frise]::before, [data-usine-bloc="plan-projet"] .bh-e6e3-frise[data-frise]::after { left: .6rem; top: 1.6rem; z-index: 0; }
[data-usine-bloc="plan-projet"] .bh-e6e3-frise[data-frise]::before { bottom: 1.6rem; }
[data-usine-bloc="plan-projet"] [data-jalon]::before { top: 1.45rem; left: -1.95rem; background: #fff; border: 2px solid var(--c-primaire); }
[data-usine-bloc="plan-projet"] [data-jalon].kv-atteint::before { background: var(--c-primaire); border-color: var(--c-primaire); }
@media (max-width: 639px) { [data-usine-bloc="plan-projet"] .bh-e6e3-frise[data-frise] { padding-left: 0; } }
.bh-e6e3-frise li { background: #fff; border: 1px solid var(--c-bord); border-radius: var(--r-carte); padding: 22px 26px; }
.bh-e6e3-frise h3 { font-size: 1.2rem; margin: .3rem 0; }
.bh-e6e3-frise p { margin: 0; }
.bh-e6e3-echeance { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--c-primaire-fonce); }

/* Repères */
.bh-e6e3-reperes-grille { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .bh-e6e3-reperes-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.bh-e6e3-reperes-grille li { display: grid; gap: 6px; justify-items: start; background: #fff; border: 1px solid var(--c-bord); border-radius: var(--r-carte); padding: 26px; min-width: 0; }
.bh-e6e3-chiffre { font-size: 2.4rem; font-weight: 700; line-height: 1.1; color: var(--c-titre); }
.bh-e6e3-reperes-grille li > span:last-child { font-size: 1rem; }

@media (prefers-reduced-motion: reduce) { .bh-e6e3-porte, .bh-e6e3-question .bh-e6e3-chevron { transition: none; } }
[data-form="accordeon"] .bh-e6e3-faq-liste { margin-inline: auto; }
.bh-e6e3-faq .bh-e6e3-titre, .bh-e6e3-faq .bh-e6e3-kicker { text-align: center; margin-inline: auto; }
.bh-e6e3-intention-corps p + p { margin-top: 1rem; }

/* Largeur de lecture : aucune boîte de texte sous 300 px (1440 et 390) */
.bh-e6e3-porte { padding: 20px; }
.bh-e6e3-carte-corps { padding: 18px; }
@media (max-width: 640px) {
  .bh-e6e3-carte, .bh-e6e3-auteur-bandeau { padding: 16px; }
  .bh-e6e3-porte, [data-form="liste"] .bh-e6e3-porte { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .bh-e6e3-porte-ico, [data-form="liste"] .bh-e6e3-porte-ico { grid-row: auto; }
  [data-form="liste"] .bh-e6e3-porte-n { grid-column: auto; grid-row: auto; }
  .bh-e6e3-materiel li { display: block; }
  .bh-e6e3-materiel li > svg { float: left; margin: 3px 10px 0 0; }
  .bh-e6e3-materiel li > div { display: block; }
  .bh-e6e3-carnet-liste li { display: block; padding: 14px; }
  .bh-e6e3-num { float: left; margin: 0 12px 4px 0; }
  .bh-e6e3-checklist label { display: block; }
  .bh-e6e3-checklist input { float: left; margin: 3px 12px 0 0; }
  .bh-e6e3-checklist label > span { display: block; }
  .bh-e6e3-ligne { grid-template-columns: minmax(0, 1fr); }
  .bh-e6e3-ligne-vignette { display: none; }
  .bh-e6e3-question summary { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .bh-e6e3-question summary > svg:first-child { display: none; }
  .bh-e6e3-question p { padding: 0 16px 16px; }
  .bh-e6e3-frise li { padding: 16px; }
  .bh-e6e3-lottie { width: 48px; height: 48px; }
}
@media (max-width: 640px) {
  .bh-e6e3-materiel li > svg { float: none; display: block; margin: 0 0 6px; }
  .bh-e6e3-materiel li > div > span { display: block; }
  .bh-e6e3-question summary { display: block; position: relative; padding: 14px 12px; }
  .bh-e6e3-question summary > span { display: block; padding-right: 28px; }
  .bh-e6e3-question summary .bh-e6e3-chevron { position: absolute; right: 10px; top: 16px; }
}

/* Outils : Lottie engrenage en tête de carte, cartes de même hauteur sans vide */
[data-usine-bloc="outils"] .bh-e6e3-materiel { display: flex; flex-direction: column; }
[data-usine-bloc="outils"] .bh-e6e3-carte-tete { display: flex; align-items: center; gap: 12px; justify-content: flex-start; text-align: left; }
[data-usine-bloc="outils"] .bh-e6e3-carte-tete .bh-e6e3-lottie { width: 40px; height: 40px; max-width: 40px; margin: 0; flex: none; }
[data-usine-bloc="outils"] .bh-e6e3-materiel ul { flex: 1; align-content: space-evenly; clear: none; }
/* Carnet pratique : étapes lisibles même inactives, photo toujours visible */
[data-usine-bloc="carnet-pratique"] [data-etape] { opacity: 1; transform: none; }
[data-usine-bloc="carnet-pratique"] .bh-e6e3-carnet-liste p { color: #555; }
[data-usine-bloc="carnet-pratique"] .bh-e6e3-carnet-visuel { display: block; opacity: 1; aspect-ratio: 16 / 7; max-height: 420px; }
/* Checklist : photo sur toute la hauteur de sa colonne */
[data-usine-bloc="checklist"] .bh-e6e3-checklist-grille { align-items: stretch; }
/* Colonne photo = titre + compteur + photo, la photo prend toute la hauteur restante de la rangée (plus de vide) */
[data-usine-bloc="checklist"] .bh-e6e3-checklist-cote { display: flex; flex-direction: column; min-width: 0; }
[data-usine-bloc="checklist"] .bh-e6e3-checklist-cote .bh-e6e3-compteur { margin-bottom: 16px; }
[data-usine-bloc="checklist"] .bh-e6e3-checklist-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 360px; object-fit: cover; align-self: stretch; }
[data-usine-bloc="checklist"] .bh-e6e3-carte { min-width: 0; }
@media (min-width: 900px) {
  [data-usine-bloc="checklist"] .bh-e6e3-checklist-grille { grid-template-columns: 5fr 7fr; align-items: stretch; }
  [data-usine-bloc="checklist"][data-form="photo-droite"] .bh-e6e3-checklist-grille { grid-template-columns: 7fr 5fr; }
  [data-usine-bloc="checklist"][data-form="photo-droite"] .bh-e6e3-checklist-cote { order: 2; }
  [data-usine-bloc="checklist"] .bh-e6e3-checklist-photo { flex: 1 1 0; min-height: 0; height: auto; max-height: 480px; aspect-ratio: auto; }
}
@media (max-width: 899px) { [data-usine-bloc="checklist"] .bh-e6e3-checklist-photo { height: auto; aspect-ratio: 4 / 3; max-height: 360px; } }

/* Avant-footer commun (chaîne usine) : cadre 1100 px, fond clair, bouton pilule du thème */
[data-avant-footer] { width: min(1100px, calc(100% - 40px)) !important; max-width: none !important; margin-inline: auto !important; background: #edf6f5 !important; color: #222 !important; }
[data-avant-footer] h2, [data-avant-footer] p, [data-avant-footer] .eyebrow { color: #222 !important; }
[data-avant-footer] .af-button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 17px 28px !important; border-radius: 999px !important; background: #077d7c !important; color: #fff !important; border: 0 !important; font-weight: 700; }
[data-avant-footer] .af-button svg { color: #fff; }

/* Sélection du carnet : les trois vignettes toujours rendues (aucune apparition différée) */
[data-usine-bloc="selection-carnet"] .bh-e6e3-carte-article { opacity: 1; transform: none; }
[data-usine-bloc="selection-carnet"] .bh-e6e3-selection-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; max-height: 480px; object-fit: cover; opacity: 1; background: var(--c-doux, #f2f2f2); }
@media (min-width: 768px) {
  [data-usine-bloc="selection-carnet"][data-form="une-plus-deux"] .bh-e6e3-carte-article:first-child .bh-e6e3-selection-img { height: 100%; aspect-ratio: auto; min-height: 280px; max-height: 420px; }
}
[data-usine-bloc="selection-carnet"] .bh-e6e3-carte-typo { border-top: 4px solid var(--c-primaire-fonce); }

/* Checklist : photo sous le compteur, la colonne descend jusqu’au bas de la carte */
[data-usine-bloc="checklist"] .bh-e6e3-checklist-figure { margin: 0; min-width: 0; border-radius: var(--r-image); overflow: hidden; }
[data-usine-bloc="checklist"] .bh-e6e3-checklist-figure .bh-e6e3-checklist-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 360px; object-fit: cover; opacity: 1; border-radius: 0; }
@media (min-width: 900px) {
  [data-usine-bloc="checklist"] .bh-e6e3-checklist-figure { flex: 1 1 auto; position: relative; min-height: 260px; max-height: 480px; }
  [data-usine-bloc="checklist"] .bh-e6e3-checklist-figure .bh-e6e3-checklist-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-height: 480px; aspect-ratio: auto; }
}
