/* Graphe 3D « Votre agent IA » (template-parts/graphe-ia.php). */
.graphe-ia {
	margin: 0 auto;
	max-width: 1280px;
	font-family: Inter, system-ui, sans-serif;
	color: #0A0A0A;
}
.graphe-ia__scene {
	position: relative;
	height: 560px; /* hauteur réservée avant le script : aucun décalage de mise en page */
	touch-action: pan-y; /* le défilement vertical reste au navigateur */
	user-select: none;
	-webkit-user-select: none;
	cursor: grab;
}
.graphe-ia.is-dragging .graphe-ia__scene { cursor: grabbing; }
.graphe-ia--compact .graphe-ia__scene { height: 380px; }
@media (max-width: 640px) {
	.graphe-ia__scene { height: 500px; }
	.graphe-ia--compact .graphe-ia__scene { height: 330px; }
}
.graphe-ia__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* Sans script : simple liste de liens centrée. */
.graphe-ia__nodes {
	list-style: none;
	margin: 0;
	padding: 24px 16px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
}
.graphe-ia__node {
	display: block;
	color: #0A0A0A;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	touch-action: pan-y;
	-webkit-tap-highlight-color: transparent;
}

/* Avec script : chaque lien est posé sur son nœud projeté. */
.graphe-ia.is-ready .graphe-ia__nodes { padding: 0; display: block; }
.graphe-ia.is-ready .graphe-ia__node {
	position: absolute;
	left: 0;
	top: 0;
	width: 9.5em;
	margin-left: -4.75em;
	padding-top: 18px; /* zone cliquable qui couvre le point dessiné au-dessus */
	margin-top: -10px;
	text-align: center;
	font-size: 13px;
	will-change: transform;
}
.graphe-ia.is-ready .graphe-ia__node--centre {
	font-size: 15px;
	font-weight: 600;
	padding-top: 26px;
	margin-top: -14px;
}
.graphe-ia__label {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 4px;
	background: #FFFFFF;
}
.graphe-ia__node:hover .graphe-ia__label,
.graphe-ia__node.is-lit .graphe-ia__label { background: #FFFFFF; }
.graphe-ia__node:focus { outline: none; }
.graphe-ia__node:focus-visible .graphe-ia__label { outline: 2px solid #0A0A0A; outline-offset: 2px; }

.graphe-ia__phrase {
	margin: 8px auto 0;
	max-width: 36em;
	min-height: 3em;
	padding: 0 16px;
	text-align: center;
	font-size: 15px;
	line-height: 1.5;
	color: #404040;
}
.graphe-ia--compact .graphe-ia__phrase { font-size: 14px; }

@media (max-width: 640px) {
	.graphe-ia.is-ready .graphe-ia__node { font-size: 12px; width: 7.5em; margin-left: -3.75em; }
	.graphe-ia.is-ready .graphe-ia__node--centre { font-size: 14px; width: 10em; margin-left: -5em; }
}

/* Les libellés reçoivent un z-index (jusqu'à 999) du script : on les garde
   dans le graphe, sous le menu mobile ouvert (1er décembre 2026). */
.graphe-ia { isolation: isolate; }
