/* Générateur de balises meta et Open Graph (partage.js), Nemo Ciment.
   Propre à cet outil : s'ajoute à outils.css, dont il reprend .outil, .champ, .source, .verdicts. */

.outil form.form-balises { display: block; }
.groupe { margin: 6px 0 4px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.groupe h2 { font-size: 20px; margin: 0 0 16px; }
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grille .large { grid-column: 1 / -1; }
.champ select { width: 100%; box-sizing: border-box; font-size: 16px; padding-top: 12px; padding-bottom: 12px; min-height: 44px; }
.champ .case { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 15px; color: #d0d0d4; margin: 10px 0 0; text-transform: none; letter-spacing: 0; }
.controles h2, .apercus-partage h2, .code-genere h2 { margin-top: 38px; }

/* --- aperçus (reconstitutions approchées, sans logo) --- */
.apercus-partage .rangee { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.ap-nom { font-family: var(--font-display); font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.ap { border-radius: 12px; background: #fff; color: #1c1e21; border: 1px solid #dddfe2; overflow: hidden; font-family: Helvetica, Arial, sans-serif; text-align: left; }
.ap-img { position: relative; background: #e4e6eb; overflow: hidden; }
.ap-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-img.r191 { aspect-ratio: 1.91 / 1; }
.ap-img.r2 { aspect-ratio: 2 / 1; }
.ap-img.carre { aspect-ratio: 1 / 1; }
.ap-img.vide { display: grid; place-items: center; color: #65676b; font-size: 14px; }
.ap-texte { padding: 10px 12px 12px; }
.ap-dom { font-size: 12px; color: #65676b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-titre { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 3px 0 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.ap-desc { font-size: 14px; color: #65676b; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; overflow-wrap: anywhere; }
.ap-desc:empty { display: none; }
#ap-facebook .ap-texte { background: #f0f2f5; }
#ap-linkedin { border-radius: 8px; }
#ap-linkedin .ap-titre { font-size: 14px; }
#ap-x { border: 0; background: transparent; }
#ap-x .ap-img { border-radius: 16px; border: 1px solid #cfd9de; }
#ap-x .ap-badge { position: absolute; left: 12px; bottom: 12px; z-index: 1; background: rgba(0,0,0,.77); color: #fff; font-size: 13px; padding: 2px 6px; border-radius: 4px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ap-x.petite { display: flex; border: 1px solid #cfd9de; border-radius: 16px; background: #fff; }
#ap-x.petite .ap-img { flex: none; width: 34%; border: 0; border-radius: 0; border-right: 1px solid #cfd9de; }
#ap-x.petite .ap-texte { min-width: 0; align-self: center; }
#ap-x.petite .ap-titre { font-size: 15px; font-weight: 400; }
.ap-note { font-size: 13.5px; color: var(--muted-2); margin: 12px 0 0; }

/* --- code généré --- */
.code-genere .barre { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.code-genere pre { margin: 0; max-height: 460px; overflow: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #0d0d0f; color: #d6d6dc; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .grille { grid-template-columns: 1fr; }
}
