export function LogYardIllustration({ className }: { className?: string }) {
    return (
        <svg
            viewBox="0 0 360 300"
            fill="none"
            className={className}
            aria-hidden="true"
        >
            {/* sol */}
            <ellipse
                cx="180"
                cy="258"
                rx="150"
                ry="14"
                fill="#140e0a"
                opacity="0.35"
            />

            {/* pile de grumes */}
            <g>
                <rect
                    x="55"
                    y="150"
                    width="250"
                    height="34"
                    rx="17"
                    fill="#e8dcc8"
                />
                <circle cx="72" cy="167" r="17" fill="#c9a876" />
                <circle cx="288" cy="167" r="17" fill="#c9a876" />

                <rect
                    x="70"
                    y="182"
                    width="220"
                    height="34"
                    rx="17"
                    fill="#d8c6a4"
                />
                <circle cx="87" cy="199" r="17" fill="#b4895a" />
                <circle cx="273" cy="199" r="17" fill="#b4895a" />

                <rect
                    x="55"
                    y="214"
                    width="250"
                    height="34"
                    rx="17"
                    fill="#e8dcc8"
                />
                <circle cx="72" cy="231" r="17" fill="#c9a876" />
                <circle cx="288" cy="231" r="17" fill="#c9a876" />
            </g>

            {/* lignes de coupe sur les bouts de grumes */}
            <circle
                cx="72"
                cy="167"
                r="10"
                fill="none"
                stroke="#8b5e34"
                strokeWidth="1.5"
                opacity="0.6"
            />
            <circle
                cx="288"
                cy="167"
                r="10"
                fill="none"
                stroke="#8b5e34"
                strokeWidth="1.5"
                opacity="0.6"
            />
            <circle
                cx="87"
                cy="199"
                r="10"
                fill="none"
                stroke="#6b4423"
                strokeWidth="1.5"
                opacity="0.6"
            />
            <circle
                cx="273"
                cy="199"
                r="10"
                fill="none"
                stroke="#6b4423"
                strokeWidth="1.5"
                opacity="0.6"
            />
            <circle
                cx="72"
                cy="231"
                r="10"
                fill="none"
                stroke="#8b5e34"
                strokeWidth="1.5"
                opacity="0.6"
            />
            <circle
                cx="288"
                cy="231"
                r="10"
                fill="none"
                stroke="#8b5e34"
                strokeWidth="1.5"
                opacity="0.6"
            />

            {/* grume isolée au sol, coupée */}
            <g>
                <rect
                    x="140"
                    y="236"
                    width="110"
                    height="24"
                    rx="12"
                    fill="#d8c6a4"
                />
                <circle cx="152" cy="248" r="12" fill="#b4895a" />
                <circle
                    cx="152"
                    cy="248"
                    r="7"
                    fill="none"
                    stroke="#6b4423"
                    strokeWidth="1.2"
                    opacity="0.6"
                />
            </g>

            {/* scie circulaire posée à côté */}
            <g transform="translate(252 206)">
                <circle cx="0" cy="0" r="22" fill="#2d2420" />
                <circle
                    cx="0"
                    cy="0"
                    r="22"
                    fill="none"
                    stroke="#c9a876"
                    strokeWidth="2"
                />
                <circle cx="0" cy="0" r="5" fill="#c9a876" />
                {Array.from({ length: 12 }).map((_, i) => {
                    const angle = (i * Math.PI) / 6;
                    const x1 = Math.cos(angle) * 18;
                    const y1 = Math.sin(angle) * 18;
                    const x2 = Math.cos(angle) * 24;
                    const y2 = Math.sin(angle) * 24;
                    return (
                        <line
                            key={i}
                            x1={x1}
                            y1={y1}
                            x2={x2}
                            y2={y2}
                            stroke="#c9a876"
                            strokeWidth="2.5"
                            strokeLinecap="round"
                        />
                    );
                })}
            </g>
        </svg>
    );
}
