/* Outils réseaux : polices, miniatures YouTube, comparateur de textes */
.area-courte { min-height: 96px; }
.file-name.police b { font: 500 18px/1.5 var(--body); }
.file-name.police small { display: block; }

.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.minis:empty { display: none; }
.mini { overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.mini img { display: block; width: 100%; height: auto; background: var(--soft); }
.mini-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; }
.mini-nom { min-width: 0; line-height: 1.3; }
.mini-nom b { display: block; font: 600 15px/1.3 var(--head); color: var(--ink); }
.mini-nom small { font-size: 13px; color: var(--muted); }

.diff { max-height: 560px; overflow: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); font: 400 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }
.diff-l { display: flex; min-height: 22px; }
.diff-s { flex: none; width: 28px; text-align: center; color: var(--muted); user-select: none; }
.diff-t { flex: 1; min-width: 0; padding-right: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-l.moins { background: #fdeaec; }
.diff-l.plus { background: #e6f6ec; }
.diff-l.moins .diff-s { color: #b3141f; }
.diff-l.plus .diff-s { color: #0b7a3b; }
.diff mark { border-radius: 4px; color: inherit; }
.diff-l.moins mark { background: #f8b4bb; }
.diff-l.plus mark { background: #a5e0b9; }

/* Saut de ligne Instagram : la même légende, tassée puis aérée */
.ig-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.ig { display: grid; gap: 8px; min-width: 0; }
.ig-titre { font: 600 15px/1.3 var(--head); color: var(--muted); }
.ig-apres .ig-titre { color: #0b7a3b; }
.ig-carte { padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ig-apres .ig-carte { box-shadow: 0 0 0 2px #45d394; }
.ig-haut { display: flex; align-items: center; gap: 8px; font: 600 14px/1 var(--body); color: var(--ink); }
.ig-av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(160deg, #ffd459, #de3190 60%, #6a39e6); }
.ig-img { height: 64px; margin: 10px 0; border-radius: 10px; background: linear-gradient(135deg, #f0f0f4, #dfe0e8); }
.ig-txt { font: 400 14px/1.45 var(--body); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Taux d'engagement : l'entonnoir */
.tool-box.calc > .ento { grid-column: 1 / -1; min-width: 0; }
.ento svg { display: block; width: 100%; height: auto; stroke: none; }
.ento .calc-note { margin-top: 10px; }
.ento-lien { fill: #ffd9dc; }
.ento-b0 { fill: #ff8a8f; }
.ento-b1 { fill: #f4525c; }
.ento-b2 { fill: var(--red-deep); }
.ento-nom { font: 500 14px var(--body); fill: var(--muted); }
.ento-val { font: 700 18px var(--head); fill: #fff; }
.ento-pastille { fill: #fff; stroke: rgba(213, 28, 42, .25); stroke-width: 1; }
.ento-pct { font: 700 15px var(--head); fill: var(--red-deep); }
.ento-mot { font: 500 13px var(--body); fill: var(--text); }

/* Boutons à choix unique */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 13px; background: var(--soft); }
.seg button { min-height: 36px; padding: 0 13px; border-radius: 10px; font: 500 14px/1.2 var(--body); color: var(--muted); transition: background .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgba(12, 12, 24, .2); }
.yt-outils { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Aperçu de miniature : une page de vidéos neutre, claire ou sombre */
.tool-box.yt { max-width: 1040px; }
.yt-trois { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.yt .lab output { font-weight: 500; color: var(--muted); }
.yt .lab output.trop { font-weight: 600; color: var(--red-deep); }
.yt-site { --yf: #fff; --yt: #0f0f0f; --ym: #606060; --yg: #e7e7e7; overflow: hidden; border-radius: 16px; background: var(--yf); box-shadow: 0 0 0 1px var(--line); font-family: Roboto, Arial, sans-serif; color: var(--yt); }
.yt-site[data-theme="sombre"] { --yf: #0f0f0f; --yt: #f1f1f1; --ym: #aaa; --yg: #2a2a2a; }
.yt-haut { display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.yt-menu { width: 20px; height: 14px; border-block: 2px solid var(--ym); opacity: .7; }
.yt-logo { width: 74px; height: 18px; border-radius: 9px; background: var(--yg); }
.yt-cherche { flex: 1; max-width: 420px; height: 34px; margin: 0 auto; border-radius: 17px; box-shadow: inset 0 0 0 1px var(--yg); }
.yt-av { display: grid; place-items: center; flex: none; width: 30px; height: 30px; overflow: hidden; border-radius: 50%; font-weight: 700; font-style: normal; color: #fff; }
.yt-av img { width: 100%; height: 100%; object-fit: cover; }
.yt-gris { background: var(--yg); }
.yt-bar { display: block; width: 92%; height: 12px; border-radius: 6px; background: var(--yg); }
.yt-bar.court { width: 58%; }
.yt-bar.fin { width: 44%; height: 10px; }
.yt-bar.gros { width: 80%; height: 18px; }
.yt-faux { display: grid; gap: 7px; padding-top: 3px; }
.yt-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; padding: 8px 16px 20px; }
.yt-c { min-width: 0; }
.yt-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--yg); }
.yt-img img { width: 100%; height: 100%; object-fit: cover; }
.yt-img em { position: absolute; right: 6px; bottom: 6px; padding: 2px 5px; border-radius: 5px; background: rgba(0, 0, 0, .8); font: 600 13px/1.3 Roboto, Arial, sans-serif; color: #fff; }
.yt-bas { display: flex; gap: 12px; margin-top: 12px; }
.yt-d { display: grid; gap: 4px; flex: 1; min-width: 0; align-content: start; }
.yt-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 600 16px/22px Roboto, Arial, sans-serif; color: var(--yt); overflow-wrap: anywhere; }
.yt-d small { overflow: hidden; font-size: 14px; line-height: 20px; color: var(--ym); white-space: nowrap; text-overflow: ellipsis; }
.yt-liste { display: grid; gap: 16px; padding: 8px 16px 20px; }
.yt-recherche { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 16px; }
.yt-recherche .yt-t { font-weight: 500; font-size: 18px; line-height: 26px; }
.yt-recherche .yt-d { gap: 8px; }
.yt-ch { display: flex; align-items: center; gap: 8px; min-width: 0; }
.yt-ch .yt-bar { width: 90px; }
.yt-regard { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; padding: 8px 16px 20px; }
.yt-film { display: grid; gap: 12px; align-content: start; }
.yt-lecteur { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.yt-lecteur::after { content: ""; position: absolute; left: 50%; top: 50%; border: 16px solid transparent; border-left: 26px solid rgba(255, 255, 255, .75); transform: translate(-25%, -50%); }
.yt-cote { display: grid; gap: 10px; align-content: start; }
.yt-suggestions { display: grid; grid-template-columns: 46% minmax(0, 1fr); gap: 8px; }
.yt-suggestions .yt-img { border-radius: 8px; }
.yt-suggestions .yt-t { font-size: 14px; line-height: 20px; }
.yt-suggestions .yt-d { gap: 2px; }
.yt-suggestions .yt-d small { font-size: 13px; line-height: 18px; }
.yt-suggestions .yt-img em { right: 4px; bottom: 4px; }
.yt-site[data-vue="telephone"] { padding: 18px 12px; background: var(--soft); }
.yt-tel { width: 100%; max-width: 344px; margin: 0 auto; padding: 10px; border-radius: 40px; background: #17171c; box-shadow: 0 24px 40px -24px rgba(12, 12, 24, .6); }
.yt-ecran { display: grid; gap: 18px; overflow: hidden; padding-bottom: 18px; border-radius: 30px; background: var(--yf); }
.yt-ecran .yt-haut { padding: 14px 14px 0; }
.yt-ecran .yt-cherche { visibility: hidden; }
.yt-telephone .yt-img { border-radius: 0; }
.yt-telephone .yt-bas { padding: 0 12px; }
.yt-telephone .yt-t { font-weight: 500; font-size: 15px; line-height: 20px; }
.yt-telephone .yt-d small { font-size: 13px; line-height: 18px; }

/* Bulle de commentaire : aperçu sur un damier, signe d'un fond transparent */
.tk-scene { display: grid; place-items: center; min-height: 190px; padding: 14px; overflow: hidden; border-radius: 16px; box-shadow: 0 0 0 1px var(--line);
  background: repeating-conic-gradient(#d9dae2 0 25%, #f3f3f7 0 50%) 0 0 / 22px 22px; }
.tk-bulle { display: block; max-width: 100%; height: auto; }
.tk-def { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text); }

@media (max-width: 760px) {
  .yt-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yt-regard { grid-template-columns: 1fr; }
  .yt-cherche { max-width: none; }
}
@media (max-width: 600px) {
  .minis { grid-template-columns: 1fr; }
  .ig-duo { gap: 8px; }
  .ig-carte { padding: 10px; }
  .ig-titre { font-size: 14px; }
  .ig-txt { font-size: 13px; }
  .yt-trois { grid-template-columns: 1fr 1fr; }
  .yt-grille { grid-template-columns: 1fr; padding-inline: 12px; }
  .yt-liste, .yt-regard { padding-inline: 12px; }
  .yt-recherche { grid-template-columns: 1fr; gap: 10px; }
  .yt-haut { padding-inline: 12px; }
}
