/* VOLET « VISIBILITÉ GOOGLE & IA » (16/10/2026) — templates/visibilite/*. Préfixe vz-.
   Mobile d'abord : une colonne, tableaux défilant dans leur propre cadre, textes longs (requêtes,
   chemins) qui passent à la ligne au lieu d'élargir la page. */
.good-txt { color: var(--success); }

.vz-liste { display: grid; gap: 10px; margin-bottom: 18px; }
.vz-ligne { display: block; color: var(--fg); padding: 12px 14px; }
.vz-ligne:hover { border-color: var(--border-lit); }
.vz-ligne-off { opacity: .7; }
.vz-ligne-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vz-ligne-tete .spacer { flex: 1; }
.vz-ligne-chiffres { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.vz-ligne-chiffres b { color: var(--fg); font-size: 15px; }
.vz-ligne-chiffres em { font-style: normal; font-size: 12px; }

.vz-config h3 { margin-top: 18px; }
.vz-email { word-break: break-all; }
.vz-etapes { margin: 0 0 12px; padding-left: 20px; color: var(--muted); }
.vz-etapes li { margin: 4px 0; }
.vz-form { display: grid; gap: 6px; max-width: 760px; }
.vz-form label { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.vz-form input, .vz-form textarea { width: 100%; box-sizing: border-box; }
.vz-form textarea { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.vz-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vz-fichier { cursor: pointer; }

.vz-page .toolbar { flex-wrap: wrap; gap: 8px; }
.vz-periodes, .vz-tete-section { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 14px; }
.vz-periodes .spacer, .vz-tete-section .spacer { flex: 1; }
.vz-tete-section h2 { margin: 0; }
.vz-periode { padding: 4px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; color: var(--muted); }
.vz-periode.actif { color: var(--accent); border-color: rgba(53, 208, 242, .45); background: var(--accent-soft); }

.vz-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (min-width: 900px) { .vz-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vz-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.vz-kpi-lib { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.vz-kpi strong { font-size: 24px; font-weight: 700; }
.vz-delta { font-size: 12px; font-weight: 600; white-space: nowrap; }
.vz-mieux { color: var(--success); }
.vz-moins { color: var(--danger); }
.vz-egal { color: var(--muted); }

.vz-courbe { position: relative; display: grid; grid-template-columns: 38px 1fr 46px; gap: 6px; height: 220px; padding-bottom: 18px; }
.vz-courbe svg { width: 100%; height: 200px; overflow: visible; border-bottom: 1px solid var(--border); }
.vz-barre { fill: var(--accent); opacity: .75; }
.vz-barre:hover { opacity: 1; }
.vz-ligne-imp { fill: none; stroke: var(--accent-2); stroke-width: 2; }
.vz-axe { display: flex; flex-direction: column; justify-content: space-between; height: 200px; font-size: 10.5px; color: var(--muted); }
.vz-axe-g { text-align: right; }
.vz-dates { position: absolute; left: 44px; right: 52px; bottom: 0; height: 16px; font-size: 10.5px; color: var(--muted); }
.vz-dates span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.vz-legende { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.vz-l-barre, .vz-l-ligne { display: inline-block; width: 14px; height: 8px; border-radius: 2px; background: var(--accent); margin-left: 8px; }
.vz-l-ligne { height: 2px; background: var(--accent-2); }
.vz-marque { margin: 10px 0 0; }

.vz-mots { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 8px; }
.vz-mot { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; background: var(--bg-2); }
.vz-mot p { margin: 6px 0 0; overflow-wrap: anywhere; }
.vz-mot-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vz-mot-tete strong { overflow-wrap: anywhere; }
.vz-mot-corps { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.vz-pos { font-size: 22px; font-weight: 700; min-width: 3ch; }
.vz-spark { width: 100%; max-width: 160px; height: 24px; flex: 1; }
.vz-spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.6; }

.vz-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vz-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.vz-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.vz-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.vz-table .num { text-align: right; white-space: nowrap; }
.vz-cellule-texte { min-width: 160px; overflow-wrap: anywhere; }
.vz-chemin { overflow-wrap: anywhere; }

.vz-deux { display: grid; gap: 14px; }
.vz-deux > * { min-width: 0; } /* sinon la carte prend la largeur de son tableau au lieu de le faire défiler */
@media (min-width: 1100px) { .vz-deux { grid-template-columns: 1fr 1fr; } }

.vz-robots { display: grid; gap: 4px; margin-bottom: 12px; }
.vz-robot { display: grid; grid-template-columns: minmax(0, 1fr) 90px; grid-template-areas: "nom nombre" "courbe courbe" "evol err"; gap: 2px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); }
.vz-robot-nom { grid-area: nom; overflow-wrap: anywhere; }
.vz-robot .vz-spark { grid-area: courbe; max-width: none; }
.vz-robot .num { grid-area: nombre; text-align: right; font-weight: 700; }
.vz-robot > span:nth-last-child(2) { grid-area: evol; }
.vz-robot > span:last-child { grid-area: err; text-align: right; }
@media (min-width: 760px) {
  .vz-robot { grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 2fr) 90px 80px 70px; grid-template-areas: "nom courbe nombre evol err"; }
  .vz-robot > span:nth-last-child(2) { text-align: right; }
}

.vz-cron { margin: 0 0 12px; padding: 10px 12px; border: 1px dashed var(--border-lit); border-radius: 6px; }
.vz-cron p { margin: 0 0 6px; }
.vz-cron-form .btn { margin-top: 4px; }
