/* ---- Fiche pièce : onglets « Ma pièce » / « Exemple » ---- */
.ex-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 16px; background: #e8eef7; border-radius: 12px; }
.ex-tab { border: none; background: transparent; border-radius: 9px; padding: 8px 18px; font: inherit; font-weight: 700; font-size: .9rem; color: var(--ink-soft); cursor: pointer; }
.ex-tab:hover { color: var(--blue-700); }
.ex-tab[aria-selected="true"] { background: #fff; color: var(--blue-700); box-shadow: 0 1px 3px rgba(13, 34, 71, .15); }
.ex-tab:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.ex-panel[hidden] { display: none !important; }

/* ---- Contenu de l'exemple ---- */
.ex-note { color: var(--ink-soft); font-size: .82rem; margin: -4px 0 12px; }
.ex-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ex-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ex-pair[hidden], .ex-fig[hidden] { display: none; }
.ex-fig { margin: 0; min-width: 0; }
.ex-zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f3f4f6; cursor: zoom-in; }
.ex-zoom:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.ex-zoom img { display: block; width: 100%; height: auto; transition: transform .2s; }
.ex-zoom:hover img { transform: scale(1.02); }
.ex-fig figcaption { font-size: .8rem; line-height: 1.4; color: var(--ink-soft); margin-top: 6px; }
.ex-avant figcaption::before, .ex-apres figcaption::before { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; vertical-align: 1px; }
.ex-avant figcaption::before { content: "AVANT"; background: #eef1f6; color: var(--ink-soft); }
.ex-apres figcaption::before { content: "APRÈS"; background: var(--green-050); color: var(--green-600); }
.ex-sample { margin-top: 14px; border: 1px dashed var(--blue-400); border-radius: 12px; background: #fbfdff; padding: 14px 16px; }
.ex-sample-h { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-700); margin-bottom: 8px; }
.ex-sample p { font-size: .9rem; line-height: 1.55; margin-top: 6px; }
.ex-sample p:first-of-type { margin-top: 0; }
@media (max-width: 560px) {
  .ex-pair { grid-template-columns: 1fr; }
  .ex-tabs { display: flex; }
  .ex-tab { flex: 1; }
}

/* ---- Visionneuse plein écran ---- */
.ex-lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(6, 15, 33, .88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.ex-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.ex-lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.ex-lightbox figcaption { color: #dbe6f5; font-size: .88rem; margin-top: 10px; text-align: center; max-width: 900px; }
.ex-lb-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.2rem; cursor: pointer; }
.ex-lb-close:hover { background: rgba(255, 255, 255, .28); }
body.ex-lb-open { overflow: hidden; }

/* ---- Cartes d'action photos / insertion ---- */
.cta-card .ex-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; align-self: center; }
.check-list.ex-steps { gap: 6px; margin-top: -6px; }
.check-list.ex-steps li { align-items: center; flex-wrap: wrap; gap: 8px; }
.check-list.ex-steps li::before { content: none; }
.check-list.ex-steps a { font-weight: 700; color: var(--blue-700); }
.card.ex-flash { box-shadow: 0 0 0 3px var(--blue-400), var(--shadow); transition: box-shadow .3s; }
