"""Génère illustrations/07-festin.svg : leur amie (cheveux bruns tirés, montre connectée)
au resto-grotte mexicain, devant une montagne de féculents et de viande, qui mange et bave.
Le bras qui porte la fourchette est une chaîne épaule -> coude -> main (2 rotations)."""
import math, random, sys

out = sys.argv[1]
random.seed(5)
C = 3  # durée du cycle (s)

SKIN = "#F1CDB4"; SKIN_SH = "#DDB094"; HAIR = "#2E2019"; HAIR_HI = "#4E382A"

def rnd_rice(cx, cy, rx, ry, n, col):
    g = []
    for _ in range(n):
        a = random.uniform(0, 2 * math.pi); k = math.sqrt(random.random())
        x, y = cx + rx * k * math.cos(a), cy + ry * k * math.sin(a)
        g.append(f'<ellipse cx="{x:.1f}" cy="{y:.1f}" rx="1.8" ry=".9" transform="rotate({random.uniform(-60, 60):.0f} {x:.1f} {y:.1f})" fill="{col}"/>')
    return "".join(g)

def rock_wall():
    g = ['<rect width="400" height="340" fill="#7E6E64"/>']
    for _ in range(46):
        x, y = random.uniform(-20, 420), random.uniform(-10, 330)
        r = random.uniform(14, 42)
        col = random.choice(["#8E7E72", "#6E5F56", "#9A8A7E", "#655650", "#857468"])
        pts = []
        for k in range(9):
            a = k / 9 * 2 * math.pi
            rr = r * random.uniform(.7, 1.15)
            pts.append((x + rr * math.cos(a), y + rr * .75 * math.sin(a)))
        d = f"M{pts[0][0]:.1f} {pts[0][1]:.1f}" + "".join(
            f"Q{(pts[i][0] + pts[(i + 1) % 9][0]) / 2 + random.uniform(-6, 6):.1f} {(pts[i][1] + pts[(i + 1) % 9][1]) / 2 + random.uniform(-6, 6):.1f} {pts[(i + 1) % 9][0]:.1f} {pts[(i + 1) % 9][1]:.1f}"
            for i in range(9)) + "Z"
        g.append(f'<path d="{d}" fill="{col}" opacity=".8"/>')
    for _ in range(18):
        x, y = random.uniform(0, 400), random.uniform(0, 320)
        g.append(f'<path d="M{x:.1f} {y:.1f}q{random.uniform(-14, 14):.1f} {random.uniform(8, 20):.1f} {random.uniform(-6, 6):.1f} {random.uniform(20, 36):.1f}" fill="none" stroke="#4E423C" stroke-width="2" stroke-linecap="round" opacity=".6"/>')
    return "".join(g)

def papel_picado(y, colors):
    g = [f'<path d="M-10 {y}Q200 {y + 16} 410 {y}" fill="none" stroke="#3A2E28" stroke-width="1"/>']
    for i, x in enumerate(range(10, 400, 38)):
        col = colors[i % len(colors)]
        yy = y + 16 * (1 - ((x - 200) / 210) ** 2) * .9
        g.append(f'<g transform="translate({x} {yy:.1f})"><g class="fanion" style="animation-delay:{-i * .3:.1f}s">'
                 f'<path d="M-14 0H14V24L7 30L0 24L-7 30L-14 24Z" fill="{col}"/>'
                 f'<path d="M-6 8l3 4-3 4-3-4ZM6 8l3 4-3 4-3-4Z" fill="#FFF" opacity=".55"/><circle cy="19" r="2.2" fill="#FFF" opacity=".55"/></g></g>')
    return "".join(g)

def sarape():
    g = ['<path d="M-20 332H420V500H-20Z" fill="#E42C6A"/>']
    y = 340
    stripes = [("#F7931E", 3), ("#FCE04A", 2), ("#3CC0C8", 2.5), ("#8E44AD", 2), ("#F7931E", 1.5), ("#FFFFFF", 1)]
    while y < 500:
        for col, w in stripes:
            g.append(f'<path d="M-20 {y:.1f}H420" stroke="{col}" stroke-width="{w}" opacity=".85"/>')
            y += w + 2.2
        y += 22
    g.append('<path d="M-20 332H420" stroke="#B81E52" stroke-width="3"/>')
    return "".join(g)

def plate_and_pile():
    g = []
    g.append('<ellipse cx="200" cy="404" rx="150" ry="54" fill="#000" opacity=".18"/>')
    g.append('<ellipse cx="200" cy="396" rx="142" ry="52" fill="#FBFAF6"/>')
    g.append('<ellipse cx="200" cy="396" rx="142" ry="52" fill="none" stroke="#2950A8" stroke-width="7"/>')
    g.append('<ellipse cx="200" cy="396" rx="126" ry="44" fill="none" stroke="#2950A8" stroke-width="1.6" stroke-dasharray="10 5"/>')
    for k in range(14):
        a = k / 14 * 2 * math.pi
        x, y = 200 + 134 * math.cos(a), 396 + 48 * math.sin(a)
        g.append(f'<circle cx="{x:.1f}" cy="{y:.1f}" r="2.4" fill="#FFFFFF"/>')
    # --- la montagne (que des féculents et de la viande) ---
    g.append('<path d="M86 402Q96 352 140 330Q160 290 196 272Q232 284 254 318Q300 340 314 402Q200 424 86 402Z" fill="#E59A5A"/>')  # riz rouge mexicain
    g.append(rnd_rice(200, 372, 104, 30, 170, "#F6C79A"))
    g.append(rnd_rice(196, 320, 50, 30, 60, "#F6C79A"))
    # pâtes (spaghetti)
    sp = "".join(f'M{250 + random.uniform(-26, 26):.1f} {318 + random.uniform(-14, 14):.1f}q{random.uniform(-14, 14):.1f} {random.uniform(-10, 10):.1f} {random.uniform(-18, 18):.1f} {random.uniform(-6, 6):.1f}t{random.uniform(-16, 16):.1f} {random.uniform(-6, 6):.1f}' for _ in range(22))
    g.append(f'<path d="M224 334Q236 300 262 300Q286 312 290 342Q256 352 224 334Z" fill="#F2CB60"/><path d="{sp}" fill="none" stroke="#F7DA82" stroke-width="2" stroke-linecap="round"/>')
    # tortillas pliées
    for x, y, rot in ((112, 372, -24), (128, 356, -10)):
        g.append(f'<g transform="translate({x} {y}) rotate({rot})"><path d="M-22 6A22 22 0 0 1 22 6Z" fill="#F0D7A0"/><g fill="#C89A5A" opacity=".7"><circle cx="-8" cy="-2" r="1.6"/><circle cx="4" cy="-8" r="1.4"/><circle cx="10" cy="0" r="1.6"/></g></g>')
    # pommes de terre
    for x, y, r in ((286, 372, 13), (268, 386, 11), (150, 392, 10)):
        g.append(f'<circle cx="{x}" cy="{y}" r="{r}" fill="#E8C47E"/><circle cx="{x - 3}" cy="{y - 4}" r="{r * .35:.1f}" fill="#F6DCA4"/><circle cx="{x + 4}" cy="{y + 2}" r="1.2" fill="#B88A4A"/>')
    # frites qui dépassent
    for x, y, rot in ((168, 300, -30), (176, 296, -10), (186, 292, 14), (240, 296, 30), (232, 290, 6), (152, 320, -50), (276, 324, 55)):
        g.append(f'<rect x="{x - 3}" y="{y - 22}" width="6" height="26" rx="1.5" fill="#F5C83E" transform="rotate({rot} {x} {y})"/><rect x="{x - 3}" y="{y - 22}" width="2" height="26" fill="#FCE39A" transform="rotate({rot} {x} {y})"/>')
    # steak grillé
    g.append('<g transform="translate(150 344) rotate(-14)"><path d="M-34-8Q-30-22 0-20Q30-22 34-6Q32 12 0 14Q-32 14-34-8Z" fill="#7A3C22"/><path d="M-20-12L-8 8M-6-14L6 8M8-14L20 6" stroke="#4A2010" stroke-width="2.4" stroke-linecap="round"/><path d="M-30-6Q-26-16 0-16" fill="none" stroke="#A85C3A" stroke-width="1.6"/></g>')
    # chorizo / saucisses
    for x, y, rot in ((214, 352, 20), (248, 360, -10)):
        g.append(f'<g transform="translate({x} {y}) rotate({rot})"><rect x="-20" y="-6" width="40" height="12" rx="6" fill="#A8402E"/><path d="M-14-6V6M-4-6V6M6-6V6M16-6V6" stroke="#7A2A1E" stroke-width="1.2"/><path d="M-16-3H14" stroke="#D0705A" stroke-width="1.4" stroke-linecap="round"/></g>')
    # boulettes
    for x, y in ((182, 342), (196, 334), (190, 352)):
        g.append(f'<circle cx="{x}" cy="{y}" r="8" fill="#7E4A30"/><circle cx="{x - 2.5}" cy="{y - 3}" r="2.6" fill="#A86E4E"/>')
    # pain
    g.append('<g transform="translate(272 344) rotate(18)"><ellipse rx="20" ry="11" fill="#D99A4E"/><path d="M-10-6Q-6 0-10 6M0-8Q4 0 0 8M10-6Q14 0 10 6" fill="none" stroke="#F2C27E" stroke-width="2" stroke-linecap="round"/></g>')
    # pilons de poulet, dont un tout en haut du tas
    for x, y, rot, s in ((206, 290, -18, 1.25), (128, 330, -60, 1), (300, 352, 50, 1)):
        g.append(f'<g transform="translate({x} {y}) rotate({rot}) scale({s})"><ellipse cx="0" cy="6" rx="12" ry="15" fill="#C8783A"/><ellipse cx="-3" cy="2" rx="4" ry="7" fill="#E0A060"/>'
                 f'<rect x="-2.5" y="-22" width="5" height="16" rx="2" fill="#F4EDE0"/><circle cx="-3" cy="-23" r="3.4" fill="#F4EDE0"/><circle cx="3" cy="-23" r="3.4" fill="#F4EDE0"/></g>')
    # vapeur
    for x, d in ((176, 0), (204, -1), (234, -2)):
        g.append(f'<path d="M{x} 270q-6-10 0-20t0-20" fill="none" stroke="#FFFFFF" stroke-width="2.4" stroke-linecap="round" class="vapeur" style="animation-delay:{d}s"/>')
    return "".join(g)

# --- personnage ---
def body():
    return f'''
  <path d="M188 222H212V250H188Z" fill="{SKIN_SH}"/>
  <path d="M146 250Q200 232 254 250Q272 260 274 290L278 340H122L126 290Q128 260 146 250Z" fill="#F6E8E2"/>
  <g fill="#D9465E" opacity=".8">{"".join(f'<circle cx="{random.uniform(128, 272):.1f}" cy="{random.uniform(252, 338):.1f}" r="{random.uniform(1.2, 2.2):.1f}"/>' for _ in range(40))}</g>
  <g fill="#6A9A5A" opacity=".7">{"".join(f'<circle cx="{random.uniform(128, 272):.1f}" cy="{random.uniform(252, 338):.1f}" r="1"/>' for _ in range(22))}</g>
  <path d="M178 246L200 340H222L222 246Q200 256 178 246Z" fill="#FFFFFF"/>
  <g stroke="#1E1E24" stroke-width="4">{"".join(f'<path d="M{178 + (y - 248) * .22:.1f} {y}H222"/>' for y in range(252, 340, 9))}</g>
  <path d="M178 246L196 340M222 246L218 340" stroke="#E9D6CC" stroke-width="3"/>'''

def head():
    return f'''
  <!-- cheveux tirés en arrière (derrière) + petit chignon -->
  <ellipse cx="230" cy="150" rx="14" ry="12" fill="{HAIR}"/>
  <path d="M166 186C162 146 182 130 200 130C222 130 240 146 236 186Z" fill="{HAIR}"/>
  <!-- visage -->
  <ellipse cx="167" cy="190" rx="5" ry="8" fill="{SKIN_SH}"/><ellipse cx="233" cy="190" rx="5" ry="8" fill="{SKIN_SH}"/>
  <path d="M168 180C168 156 182 146 200 146C218 146 232 156 232 180C232 206 218 226 200 226C182 226 168 206 168 180Z" fill="{SKIN}"/>
  <!-- joues qui gonflent quand elle mâche -->
  <g class="joue" style="transform-origin:178px 204px"><circle cx="178" cy="204" r="9" fill="#F4B4A4" opacity=".55"/></g>
  <g class="joue" style="transform-origin:222px 204px"><circle cx="222" cy="204" r="9" fill="#F4B4A4" opacity=".55"/></g>
  <!-- cheveux du dessus, lissés, + serre-tête -->
  <path d="M166 184C162 150 180 134 200 134C220 134 238 150 234 184C232 166 222 154 212 152Q200 150 188 152C178 154 168 166 166 184Z" fill="{HAIR}"/>
  <path d="M176 150Q200 138 224 150" fill="none" stroke="{HAIR_HI}" stroke-width="1.4" stroke-linecap="round"/>
  <path d="M170 160Q200 132 230 160" fill="none" stroke="#1A1A1A" stroke-width="3.4" stroke-linecap="round"/>
  <path d="M168 172q-5 6-2 14M232 170q5 6 2 14" fill="none" stroke="{HAIR}" stroke-width="1.2" stroke-linecap="round"/>
  <!-- sourcils -->
  <path d="M178 168Q186 163 194 167M206 167Q214 163 222 168" fill="none" stroke="{HAIR}" stroke-width="2.4" stroke-linecap="round"/>
  <!-- yeux grands ouverts qui fixent l'assiette -->
  <g class="ouvert">
    <ellipse cx="186" cy="180" rx="7" ry="8" fill="#FFFFFF"/><ellipse cx="214" cy="180" rx="7" ry="8" fill="#FFFFFF"/>
    <circle cx="187" cy="184" r="4.6" fill="#4A2E1E"/><circle cx="213" cy="184" r="4.6" fill="#4A2E1E"/>
    <circle cx="188.6" cy="182" r="1.6" fill="#FFF"/><circle cx="214.6" cy="182" r="1.6" fill="#FFF"/>
    <path d="M190 176l.8 2.4 2.4.8-2.4.8-.8 2.4-.8-2.4-2.4-.8 2.4-.8Z" fill="#FFF" class="tw"/>
  </g>
  <!-- yeux fermés de bonheur -->
  <g class="ferme">
    <path d="M179 182Q186 176 193 182M207 182Q214 176 221 182" fill="none" stroke="{HAIR}" stroke-width="2" stroke-linecap="round"/>
  </g>
  <path d="M200 188Q197 196 199 198Q201 199 203 198" fill="none" stroke="{SKIN_SH}" stroke-width="1.4" stroke-linecap="round"/>
  <!-- bouche grande ouverte + bave -->
  <g class="ouvert">
    <path d="M186 206Q200 202 214 206Q216 222 200 224Q184 222 186 206Z" fill="#5A1E22"/>
    <path d="M188 207Q200 204 212 207V210Q200 208 188 210Z" fill="#FFFFFF"/>
    <ellipse cx="200" cy="219" rx="8" ry="4" fill="#E0707A"/>
    <path d="M211 214Q213 226 212 236" fill="none" stroke="#CFEFFF" stroke-width="2.4" stroke-linecap="round" opacity=".9" class="filet"/>
  </g>
  <!-- bouche qui mâche -->
  <g class="ferme">
    <path d="M189 212Q194 208 200 212Q206 216 211 212" fill="none" stroke="#9A4A4E" stroke-width="2.2" stroke-linecap="round" class="mache"/>
  </g>'''

def watch_arm():
    return f'''
  <!-- bras gauche posé sur la table, avec la montre -->
  <path d="M256 258Q284 290 272 326" fill="none" stroke="#F6E8E2" stroke-width="22" stroke-linecap="round"/>
  <g fill="#D9465E" opacity=".8"><circle cx="266" cy="276" r="1.6"/><circle cx="276" cy="298" r="1.8"/><circle cx="270" cy="314" r="1.4"/></g>
  <path d="M272 328Q258 338 238 340" fill="none" stroke="{SKIN}" stroke-width="15" stroke-linecap="round"/>
  <path d="M262 322L268 348" stroke="#1E1E24" stroke-width="9" stroke-linecap="round"/>
  <circle cx="265" cy="335" r="8.5" fill="#C8C8D0"/><circle cx="265" cy="335" r="6.6" fill="#15151C"/>
  <circle cx="265" cy="335" r="4.4" fill="none" stroke="#4BE08A" stroke-width="1.3" class="pulse"/>
  <path d="M262.4 335h1.4l.8-1.8 1.2 3.4.8-1.6h1.4" fill="none" stroke="#FFF" stroke-width=".7"/>
  <ellipse cx="233" cy="340" rx="10" ry="8" fill="{SKIN}"/>
  <path d="M226 336h12M226 341h12" stroke="{SKIN_SH}" stroke-width="1"/>
  <path d="M231 334V346" stroke="#E8C15A" stroke-width="1.6"/>'''

def fork_arm():
    chunk = ('<g class="bouchee"><path d="M38-7Q46-12 54-6Q56 4 46 6Q36 6 38-7Z" fill="#7A3C22"/>'
             '<path d="M40-4L50 2" stroke="#4A2010" stroke-width="1.6"/>'
             '<circle cx="50" cy="-9" r="2" fill="#F6C79A"/><circle cx="54" cy="-3" r="1.6" fill="#F6C79A"/>'
             '<rect x="44" y="-16" width="4" height="12" rx="1" fill="#F5C83E" transform="rotate(20 46 -10)"/></g>')
    fork = ('<g transform="rotate(27.9)">'
            '<path d="M-6 0H30" stroke="#C9CDD6" stroke-width="3.6" stroke-linecap="round"/>'
            '<path d="M30-4.5H36M30-1.5H38M30 1.5H38M30 4.5H36M30-4.5V4.5" stroke="#C9CDD6" stroke-width="1.6" stroke-linecap="round"/>'
            f'{chunk}</g>')
    return f'''
  <!-- bras droit : épaule -> coude -> main qui porte la fourchette -->
  <g class="bras" style="transform-origin:150px 250px">
    <path d="M150 250V308" stroke="#F6E8E2" stroke-width="22" stroke-linecap="round"/>
    <g fill="#D9465E" opacity=".8"><circle cx="146" cy="268" r="1.6"/><circle cx="154" cy="284" r="1.8"/><circle cx="147" cy="298" r="1.4"/></g>
    <g class="avantbras" style="transform-origin:150px 308px">
      <path d="M150 308H210" stroke="{SKIN}" stroke-width="15" stroke-linecap="round"/>
      <path d="M156 300V316" stroke="#F6E8E2" stroke-width="9" stroke-linecap="round"/>
      <g transform="translate(212 308)">{fork}
        <ellipse cx="0" cy="0" rx="9.5" ry="8.5" fill="{SKIN}"/>
        <path d="M-5-5Q2-7 6-3M-6 0Q2-2 7 1M-5 4Q2 3 6 5" fill="none" stroke="{SKIN_SH}" stroke-width="1" stroke-linecap="round"/>
      </g>
    </g>
  </g>'''

svg = f'''<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 500" width="400" height="500">
<title>Le festin (féculents et viande uniquement)</title>
<defs>
  <radialGradient id="lumiere" cx=".3" cy=".25" r=".7">
    <stop offset="0" stop-color="#FFD9A0" stop-opacity=".55"/><stop offset="1" stop-color="#FFD9A0" stop-opacity="0"/>
  </radialGradient>
  <filter id="lueur" x="-100%" y="-100%" width="300%" height="300%">
    <feGaussianBlur stdDeviation="1.4" result="b"/><feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge>
  </filter>
</defs>
<style>
  .bras{{animation:bras {C}s ease-in-out infinite}}
  @keyframes bras{{0%,100%{{transform:rotate(15deg)}}30%,38%{{transform:rotate(-20deg)}}62%{{transform:rotate(15deg)}}}}
  .avantbras{{animation:avantbras {C}s ease-in-out infinite}}
  @keyframes avantbras{{0%,100%{{transform:rotate(-40.6deg)}}30%,38%{{transform:rotate(-63.7deg)}}62%{{transform:rotate(-40.6deg)}}}}
  .bouchee{{animation:bouchee {C}s linear infinite}}
  @keyframes bouchee{{0%,32.9%{{opacity:1}}33%,61.9%{{opacity:0}}62%,100%{{opacity:1}}}}
  .ouvert{{animation:ouvert {C}s linear infinite}}
  @keyframes ouvert{{0%,33.9%{{opacity:1}}34%,73.9%{{opacity:0}}74%,100%{{opacity:1}}}}
  .ferme{{animation:ferme {C}s linear infinite}}
  @keyframes ferme{{0%,33.9%{{opacity:0}}34%,73.9%{{opacity:1}}74%,100%{{opacity:0}}}}
  .joue{{animation:joue {C}s ease-in-out infinite}}
  @keyframes joue{{0%,34%,74%,100%{{transform:scale(1)}}40%,52%,64%{{transform:scale(1.35)}}46%,58%,70%{{transform:scale(1.05)}}}}
  .mache{{animation:mache {C / 7.5:.2f}s ease-in-out infinite alternate}}
  @keyframes mache{{from{{transform:translateY(0)}}to{{transform:translateY(2px)}}}}
  .filet{{animation:filet {C}s ease-in infinite;transform-origin:211px 214px}}
  @keyframes filet{{0%{{transform:scaleY(.4)}}25%{{transform:scaleY(1.15)}}30%,100%{{transform:scaleY(.4)}}}}
  .goutte{{animation:goutte {C}s ease-in infinite}}
  @keyframes goutte{{0%,22%{{transform:translateY(0);opacity:0}}24%{{opacity:1}}33%{{transform:translateY(46px);opacity:1}}35%,100%{{transform:translateY(50px);opacity:0}}}}
  .goutte2{{animation:goutte2 {C}s ease-in infinite}}
  @keyframes goutte2{{0%,84%{{transform:translateY(0);opacity:0}}86%{{opacity:1}}95%{{transform:translateY(46px);opacity:1}}97%,100%{{transform:translateY(50px);opacity:0}}}}
  .vapeur{{animation:vapeur 3s ease-in-out infinite}}
  @keyframes vapeur{{0%{{transform:translateY(8px);opacity:0}}40%{{opacity:.7}}100%{{transform:translateY(-22px);opacity:0}}}}
  .fanion{{animation:fanion 2.4s ease-in-out infinite alternate;transform-origin:0 0}}
  @keyframes fanion{{from{{transform:rotate(-5deg)}}to{{transform:rotate(5deg)}}}}
  .tw{{animation:tw 1.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}}
  @keyframes tw{{0%,100%{{opacity:0;transform:scale(.4)}}50%{{opacity:1;transform:scale(1)}}}}
  .pulse{{animation:pulse .9s ease-out infinite;transform-origin:265px 335px}}
  @keyframes pulse{{from{{opacity:1}}to{{opacity:.2}}}}
  .tete{{animation:tete {C}s ease-in-out infinite;transform-origin:200px 236px}}
  @keyframes tete{{0%,100%{{transform:rotate(0)}}30%,38%{{transform:rotate(-2deg) translateY(-2px)}}55%{{transform:rotate(2deg)}}}}
</style>

{rock_wall()}
<rect width="400" height="340" fill="url(#lumiere)"/>
<!-- fanions de papel picado -->
{papel_picado(10, ["#E42C6A", "#F7931E", "#3CC0C8", "#8E44AD", "#FCE04A", "#2ECC71"])}

<!-- elle -->
{body()}
<g class="tete">{head()}</g>

<!-- la table (nappe sarape) et la montagne de bouffe -->
{sarape()}
{plate_and_pile()}

<!-- gouttes de bave qui tombent sur le tas -->
<g fill="#CFEFFF" filter="url(#lueur)">
  <g transform="translate(212 236)"><path d="M0-4Q3 0 3 3A3 3 0 0 1-3 3Q-3 0 0-4Z" class="goutte"/></g>
  <g transform="translate(212 236)"><path d="M0-4Q3 0 3 3A3 3 0 0 1-3 3Q-3 0 0-4Z" class="goutte2"/></g>
</g>

{watch_arm()}
{fork_arm()}

<!-- verre d'agua fresca -->
<g transform="translate(348 384)">
  <path d="M-16-40H16L12 10H-12Z" fill="#FFFFFF" opacity=".35"/>
  <path d="M-14.5-24H14.5L12 10H-12Z" fill="#F29A60" opacity=".85"/>
  <path d="M-16-40H16L12 10H-12Z" fill="none" stroke="#FFFFFF" stroke-width="1.6" opacity=".8"/>
  <path d="M-9-34V2" stroke="#FFFFFF" stroke-width="2" opacity=".6"/>
</g>
<!-- couverts posés -->
<path d="M30 470L86 440M36 480L92 450" stroke="#C9CDD6" stroke-width="3" stroke-linecap="round"/>
</svg>
'''
open(out, "w").write(svg)
print("ok", len(svg))
