/* WSC Ferme — analyses (plan 2, lot E, maquette 18) : en-tête à segments, graphiques « une valeur par bande » avec
   leurs deux repères en tirets et les traits verticaux posés par la ferme, faits lus dans les chiffres, tableaux au
   poste et cartes au téléphone. Système visuel des maquettes : une seule couleur d'accent (orange), états à leur sens. */

.an { display: flex; flex-direction: column; gap: 16px; }
.an .an-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.an .an-tete-texte { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.an .an-tete-texte .titre { font-size: 28px; font-weight: 800; letter-spacing: -.4px; }
.an .an-tete-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.an .an-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.an .an-segment { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--gris-clair); flex-wrap: wrap; }
.an .an-segment a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: 13px;
	font-weight: 700; color: var(--gris); text-decoration: none; }
.an .an-segment a:hover { color: var(--encre); }
.an .an-segment a[aria-current="page"] { background: var(--blanc); color: var(--encre); box-shadow: 0 1px 2px rgba(31, 26, 21, .12); }
.an .an-segment .ic { width: 16px; height: 16px; }

.an .an-deux { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.an .an-pile { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.an .an-carte { padding: 0; min-width: 0; }
.an .an-c-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 18px 0; flex-wrap: wrap; }
.an .an-c-titre { font-size: 15px; font-weight: 800; margin: 0; }
.an .an-c-corps { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.an .an-panneaux { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.an .an-panneaux.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.an .an-panneau { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.an .an-panneau h3 { margin: 0; font-size: 14px; font-weight: 800; }
.an .an-graphe { width: 100%; min-height: 240px; }
.an .an-svg { display: block; max-width: 100%; font-family: inherit; font-variant-numeric: tabular-nums; }
.an .an-point { cursor: pointer; outline: none; }
.an .an-point:hover circle, .an .an-point:focus-visible circle { stroke-width: 3.5; }
.an .an-point:focus-visible rect, .an .an-point:hover rect { filter: brightness(.92); }
.an .an-point:focus-visible text { text-decoration: underline; }
.an .an-legende { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--gris); }
.an .an-legende span { display: inline-flex; align-items: center; gap: 6px; }
.an .an-legende i { display: inline-block; width: 18px; height: 0; border-top: 2px dashed; border-radius: 2px; }
.an .an-legende i.an-plein { border-top-style: solid; border-top-width: 3px; }
.an .an-legende i.an-hachure { width: 14px; height: 10px; border: 1.5px solid var(--orange); border-radius: 3px;
	background: repeating-linear-gradient(135deg, var(--orange-clair) 0 2px, var(--orange) 2px 4px); }
.an .an-pied { display: flex; gap: 8px; flex-wrap: wrap; }
.an .an-pied:empty { display: none; }

.an .an-faits { display: flex; flex-direction: column; }
.an .an-fait { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--trait); font-size: 14px; align-items: start; }
.an .an-fait:first-child { border-top: 0; padding-top: 0; }
.an .an-rond { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--orange-clair); color: var(--orange-fonce); }
.an .an-rond.ok { background: var(--ok-clair); color: var(--ok); }
.an .an-rond.ko { background: var(--ko-clair); color: var(--ko); }
.an .an-rond.neutre { background: var(--gris-clair); color: var(--gris); }
.an .an-rond .ic { width: 16px; height: 16px; }
.an .an-assistant { justify-content: space-between; width: 100%; border-color: var(--orange-trait); background: var(--orange-clair); color: var(--orange-nuit); }
.an .an-rangee { display: inline-flex; align-items: center; gap: 8px; }
.an .an-note { margin: 0; }

.an .an-cadre-table { overflow-x: auto; }
.an table.an-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.an table.an-t th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--gris);
	padding: 8px 10px; border-bottom: 1px solid var(--trait-fort); white-space: nowrap; }
.an table.an-t td { padding: 10px; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.an table.an-t tbody tr:last-child td { border-bottom: 0; }
.an table.an-t .d { text-align: right; white-space: nowrap; }
.an table.an-t td.fort { font-weight: 800; }
.an table.an-t td.ko { color: var(--ko); font-weight: 700; }
.an table.an-t tr.vive td { background: var(--orange-clair); }
.an table.an-t tr.an-cliquable { cursor: pointer; }
.an table.an-t tr.an-cliquable:hover td { background: var(--fond); }
.an table.an-t tr.vive.an-cliquable:hover td { background: #FFE9D5; }
.an .an-cartes-tel { display: none; }

.an .an-indicateurs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.an .an-indicateur { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--trait); border-radius: 12px; }
.an .an-indicateur strong { font-size: 24px; font-weight: 800; }
.an .an-indicateur.alerte { border-color: #F3C2BD; background: var(--ko-clair); }
.an .an-vide { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 8px; color: var(--gris); text-align: center; }
.an .an-vide .ic { width: 28px; height: 28px; color: var(--orange); }

/* fiche d'une bande (fenêtre) */
.an-modale .an-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.an-modale .an-fiche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0 0 10px; }
.an-modale .an-fiche div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--trait); }
.an-modale .an-fiche dt { color: var(--gris); font-size: 14px; }
.an-modale .an-fiche dd { margin: 0; font-weight: 800; text-align: right; }
.an-modale .an-source { display: flex; gap: 8px; align-items: flex-start; background: var(--fond); border-radius: 12px; padding: 10px 12px;
	font-size: 13px; color: var(--gris); margin: 6px 0 10px; }
.an-modale .an-preuves { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.an-modale .an-preuves .bouton { justify-content: space-between; text-decoration: none; }

@media (max-width: 1180px) {
	.an .an-panneaux { grid-template-columns: minmax(0, 1fr); }
	.an .an-deux { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
	.an .an-tete { align-items: stretch; }
	.an .an-tete-texte .titre { font-size: 23px; }
	.an .an-tete-actions { justify-content: space-between; }
	.an .an-segment { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.an .an-segment a { justify-content: center; min-height: 44px; }
	.an .an-segment a:first-child { grid-column: 1 / -1; }
	.an .an-panneaux.deux { grid-template-columns: minmax(0, 1fr); }
	.an .an-cadre-table { display: none; }
	.an .an-cartes-tel { display: flex; flex-direction: column; gap: 8px; }
	.an .an-carte-tel { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px 14px; border: 1px solid var(--trait);
		border-radius: 14px; background: var(--blanc); text-align: left; color: inherit; text-decoration: none; font: inherit; cursor: pointer; }
	.an .an-carte-tel.vive { background: var(--orange-clair); border-color: var(--orange-trait); }
	.an .an-carte-tel-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
	.an .an-carte-tel-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.an .an-carte-tel-chiffres span { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; min-width: 0; }
	.an .an-carte-tel-chiffres small { color: var(--gris); font-size: 12px; }
	.an .an-carte-tel-chiffres strong { font-size: 16px; font-weight: 800; }
	.an .an-indicateurs { grid-template-columns: minmax(0, 1fr); }
	.an-modale .an-fiche { grid-template-columns: minmax(0, 1fr); }
}
