/* ================= NŒUDS DE PÊCHE ANIMÉS ================= */
.nd-scene{background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-card,12px); overflow:hidden;}
.nd-scene svg{display:block; width:100%; height:auto; max-height:52vh;}
.nd-fil, .nd-fil-contour, .nd-milieu, .nd-metal, .nd-metal-contour{fill:none; stroke-linecap:butt; stroke-linejoin:round;}
.nd-fil{stroke:#FF9F1C; stroke-width:4.4;}
.nd-fil.nd-b{stroke:#6EC8FF;}
.nd-fil-contour{stroke:var(--bg-alt); stroke-width:10;}
.nd-fil.nd-dbl{stroke-width:9.5;}
.nd-fil-contour.nd-dbl{stroke-width:15;}
.nd-milieu{stroke:#7a4300; stroke-width:1.6;}
.nd-milieu.nd-milieu-b{stroke:#6EC8FF; stroke-width:3.4;}
.nd-joint{fill:#FF9F1C;} .nd-joint.nd-b{fill:#6EC8FF;}
.nd-metal{stroke:#B9C0C6; stroke-width:3.6; stroke-linecap:round;}
.nd-metal-contour{stroke:var(--bg-alt); stroke-width:8; stroke-linecap:round;}
.nd-plein{fill:#B9C0C6;} .nd-plein-contour{fill:var(--bg-alt); stroke:var(--bg-alt); stroke-width:4;}
.nd-appat{fill:#D9A25F; stroke:#8a5a26; stroke-width:1.5;} .nd-appat-contour{fill:none;}
.nd-bobine{fill:#33383d; stroke:#B9C0C6; stroke-width:3;} .nd-bobine-contour{fill:none;}
.nd-leurre{fill:#2f5d6b; stroke:#8fb7c2; stroke-width:1.5;} .nd-leurre-contour{fill:none;}
.nd-oeil{fill:#f4f1e6;} .nd-oeil-contour{fill:none;}
.nd-pointe{fill:#FFD08A; stroke:#2a1600; stroke-width:1.2; stroke-linejoin:round;} .nd-pointe.nd-b{fill:#BDE6FF; stroke:#0d2a3a;}
.nd-g{transition:opacity .6s;}
.nd-cache{opacity:0;}
.nd-legende{display:flex; gap:10px; align-items:flex-start; min-height:3.2em; margin:10px 2px 6px; font-size:14px; line-height:1.4;}
.nd-num{flex:none; font-weight:700; color:var(--accent); min-width:2.2em;}
.nd-ctrl{display:flex; justify-content:center; gap:10px; margin:4px 0 12px;}
.nd-ctrl button{width:44px; height:44px; border-radius:50%; border:1px solid var(--border); background:var(--panel); color:var(--ink); font-size:20px; display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0;}
.nd-ctrl .nd-lecture{background:var(--accent); color:var(--on-accent); border-color:var(--accent); width:52px; height:52px; font-size:24px;}
.nd-ctrl .nd-vitesse{font-size:13px; font-weight:700;}
.nd-etapes{margin:0; padding-left:22px; font-size:13px; color:var(--ink-soft);}
.nd-etapes li{padding:5px 4px; cursor:pointer; border-radius:6px;}
.nd-etapes li.on{color:var(--ink); background:var(--accent-soft);}
@media (prefers-reduced-motion: reduce){ .nd-g{transition:none;} }
/* Liste et fiche dans l'appli */
.nd-liste{display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:8px;}
.nd-carte{display:flex; flex-direction:column; align-items:flex-start; gap:3px; text-align:left; padding:11px 12px; border-radius:var(--radius-card,12px); border:1px solid var(--border); background:var(--panel); color:var(--ink); cursor:pointer; font:inherit;}
.nd-carte b{font-size:14px;}
.nd-carte .nd-usage{font-size:12px; color:var(--ink-soft);}
.nd-niv{display:inline-flex; align-items:center; gap:3px; font-size:11px; color:var(--ink-soft);}
.nd-pt{display:inline-block; width:7px; height:7px; border-radius:50%; border:1px solid var(--accent);}
.nd-pt.on{background:var(--accent);}
.nd-fiche{display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px;}
.nd-fiche > span{display:inline-flex; align-items:center; gap:5px; font-size:12px; padding:4px 9px; border-radius:999px; border:1px solid var(--border);}
.nd-conseils{margin:6px 0 0; padding-left:20px; font-size:13px; color:var(--ink-soft); line-height:1.5;}
.nd-conseils li{margin-bottom:4px;}
/* Relief du fil : un reflet clair au centre */
.nd-fil{stroke:#E8870A;}
.nd-fil.nd-b{stroke:#2F9FE0;}
.nd-reflet{fill:none; stroke:#FFC46B; stroke-width:1.3; stroke-linecap:butt; opacity:.75;}
.nd-reflet.nd-b{stroke:#BFE7FF;}
.nd-reflet.nd-dbl{stroke-width:2.4; opacity:.55;}
.nd-joint{fill:#E8870A;} .nd-joint.nd-b{fill:#2F9FE0;}
.nd-fin{transition:opacity .8s;} .nd-final .nd-fin{opacity:0;}
.nd-flotteur{fill:#E04B3A; stroke:#f4f1e6; stroke-width:1.5;} .nd-flotteur-contour{fill:none;}
.nd-perle{fill:#f4f1e6;} .nd-perle-contour{fill:none;}
.nd-tube{fill:rgba(220,230,235,.28); stroke:#cfd8dc; stroke-width:1.4;} .nd-tube-contour{fill:none;}

/* Nœuds en 3D (three.js) : même cadre que les SVG, on fait tourner au doigt */
.nd-scene-3d{position:relative;}
.nd-3d{display:block; width:100%; aspect-ratio:1/0.62; max-height:52vh; touch-action:none; cursor:grab;}
.nd-3d:active{cursor:grabbing;}
.nd-3d-info{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--ink-soft); text-align:center; padding:12px;}
.nd-3d-recentrer{position:absolute; top:8px; right:8px; width:36px; height:36px; border-radius:50%; border:1px solid var(--border); background:var(--panel); color:var(--ink); display:flex; align-items:center; justify-content:center; font-size:18px; cursor:pointer; padding:0;}
.nd-3d-recentrer[hidden]{display:none;}
