/* DA reprise 6 du 17/11/2026 : défauts du contrôle aveugle 5. Chargée après da27-affinage-9.css. */

/* ---------- Carte d'offre : le crédit photo s'arrête avant le bouton « Garder » (#489) ---------- */
html.da27 .ui-offer-card__media:has(> .sel-btn:not([hidden])) > .ui-offer-card__mention { padding-inline-end: 64px; }

/* ---------- Galeries : légende entière, jamais coupée par des points de suspension (#490) ---------- */
html.da27 #main-content .vz-galerie .vz-vignette__legende { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; text-overflow: clip; text-wrap: pretty; }

/* ---------- Vignettes et galeries : cadre 16:9 comme les photos, net en densité 2 et 3 (#491) ---------- */
html.da27 #main-content :is(.vz-vignettes, .vz-galerie):not(.da-mag__galerie *) .vz-vignette__cadre { aspect-ratio: 16 / 9; }

/* ---------- Graphiques : zones de toucher de 44 px au moins (#493) ---------- */
html.da27 .g362__svg circle.zone { r: 25px; }
html.da27 .g362__svg rect.zone:hover, html.da27 .g362__svg rect.zone:focus-visible { fill: color-mix(in srgb, var(--viz-1) 10%, transparent); }

/* ---------- Fiche d'acteur au contenu principal court (Bpifrance) : deux colonnes équilibrées, sans vide sous le premier bloc (#492) ---------- */
@media (min-width: 1024px) {
    html.da27 .act-fiche:has(> .acr-principal > :only-child) { display: block; columns: 2; column-gap: 24px; }
    html.da27 .act-fiche:has(> .acr-principal > :only-child) > :is(.acr-principal, .act-cote) { display: contents; }
    html.da27 .act-fiche:has(> .acr-principal > :only-child) .act-bloc { break-inside: avoid; margin: 0 0 24px; }
}

/* ---------- Fiche personnalité au téléphone : une ligne par mention, sans point orphelin en début de ligne (#493) ---------- */
@media (max-width: 639.98px) {
    html.da27 .pz-hero .act-meta { flex-direction: column; align-items: flex-start; }
    html.da27 .pz-hero .act-meta > * + *::before { content: none; margin: 0; }
    html.da27 .pz-hero .act-meta a { min-height: 44px; }
}

/* ---------- Pages précédente et suivante en fin de page : même écart au pied que les autres pages (#493) ---------- */
html.da27 body .dcr-voisines:last-child { margin-bottom: 0; }
