-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetiersdelaDiplomatie.html
More file actions
1194 lines (1030 loc) · 522 KB
/
MetiersdelaDiplomatie.html
File metadata and controls
1194 lines (1030 loc) · 522 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>MetiersdelaDiplomatieV3</title>
<style title="Twine CSS">@keyframes appear{0%{opacity:0}to{opacity:1}}@keyframes fade-in-out{0%,to{opacity:0}50%{opacity:1}}@keyframes rumble{25%{top:-0.1em}75%{top:.1em}0%,to{top:0px}}@keyframes shudder{25%{left:.1em}75%{left:-0.1em}0%,to{left:0px}}@keyframes buoy{25%{top:.25em}75%{top:-0.25em}0%,to{top:0px}}@keyframes sway{25%{left:.25em}75%{left:-0.25em}0%,to{left:0px}}@keyframes pulse{0%{transform:scale(0, 0)}20%{transform:scale(1.2, 1.2)}40%{transform:scale(0.9, 0.9)}60%{transform:scale(1.05, 1.05)}80%{transform:scale(0.925, 0.925)}to{transform:scale(1, 1)}}@keyframes zoom-in{0%{transform:scale(0, 0)}to{transform:scale(1, 1)}}@keyframes shudder-in{0%,to{transform:translateX(0em)}5%,25%,45%{transform:translateX(-1em)}15%,35%,55%{transform:translateX(1em)}65%{transform:translateX(-0.6em)}75%{transform:translateX(0.6em)}85%{transform:translateX(-0.2em)}95%{transform:translateX(0.2em)}}@keyframes rumble-in{0%,to{transform:translateY(0em)}5%,25%,45%{transform:translateY(-1em)}15%,35%,55%{transform:translateY(1em)}65%{transform:translateY(-0.6em)}75%{transform:translateY(0.6em)}85%{transform:translateY(-0.2em)}95%{transform:translateY(0.2em)}}@keyframes fidget{0%,8.1%,82.1%,31.1%,38.1%,44.1%,40.1%,47.1%,74.1%,16.1%,27.1%,72.1%,24.1%,95.1%,6.1%,36.1%,20.1%,4.1%,91.1%,14.1%,87.1%,to{left:0px;top:0px}8%,82%,31%,38%,44%{left:-1px}40%,47%,74%,16%,27%{left:1px}72%,24%,95%,6%,36%{top:-1px}20%,4%,91%,14%,87%{top:1px}}@keyframes slide-right{0%{transform:translateX(-100vw)}}@keyframes slide-left{0%{transform:translateX(100vw)}}@keyframes slide-up{0%{transform:translateY(100vh)}}@keyframes slide-down{0%{transform:translateY(-100vh)}}@keyframes fade-right{0%{opacity:0;transform:translateX(-1em)}to{opacity:1}}@keyframes fade-left{0%{opacity:0;transform:translateX(1em)}to{opacity:1}}@keyframes fade-up{0%{opacity:0;transform:translateY(1em)}to{opacity:1}}@keyframes fade-down{0%{opacity:0;transform:translateY(-1em)}to{opacity:1}}@keyframes flicker{0%,29%,31%,63%,65%,77%,79%,86%,88%,91%,93%{opacity:0}30%{opacity:.2}64%{opacity:.4}78%{opacity:.6}87%{opacity:.8}92%,to{opacity:1}}@keyframes blur{0%{filter:blur(2rem);opacity:0}25%{opacity:1}to{filter:blur(0rem);opacity:1}}.dom-debug-mode tw-story,.dom-debug-mode tw-passage,.dom-debug-mode tw-sidebar,.dom-debug-mode tw-include,.dom-debug-mode tw-hook,.dom-debug-mode tw-expression,.dom-debug-mode tw-link,.dom-debug-mode tw-dialog,.dom-debug-mode tw-columns,.dom-debug-mode tw-column,.dom-debug-mode tw-align{outline:1px solid #f5a3da;min-height:32px;display:block !important}.dom-debug-mode tw-story::before,.dom-debug-mode tw-passage::before,.dom-debug-mode tw-sidebar::before,.dom-debug-mode tw-include::before,.dom-debug-mode tw-hook::before,.dom-debug-mode tw-expression::before,.dom-debug-mode tw-link::before,.dom-debug-mode tw-dialog::before,.dom-debug-mode tw-columns::before,.dom-debug-mode tw-column::before,.dom-debug-mode tw-align::before{position:absolute;top:0;left:0;height:16px;background-color:#f5a3da;color:#000;font-size:16px;font-weight:normal;font-style:normal;font-family:monospace;display:inline-block;line-height:100%;white-space:pre;z-index:999997}.dom-debug-mode tw-story:hover,.dom-debug-mode tw-passage:hover,.dom-debug-mode tw-sidebar:hover,.dom-debug-mode tw-include:hover,.dom-debug-mode tw-hook:hover,.dom-debug-mode tw-expression:hover,.dom-debug-mode tw-link:hover,.dom-debug-mode tw-dialog:hover,.dom-debug-mode tw-columns:hover,.dom-debug-mode tw-column:hover,.dom-debug-mode tw-align:hover{outline:1px solid #fc9}.dom-debug-mode tw-story:hover::before,.dom-debug-mode tw-passage:hover::before,.dom-debug-mode tw-sidebar:hover::before,.dom-debug-mode tw-include:hover::before,.dom-debug-mode tw-hook:hover::before,.dom-debug-mode tw-expression:hover::before,.dom-debug-mode tw-link:hover::before,.dom-debug-mode tw-dialog:hover::before,.dom-debug-mode tw-columns:hover::before,.dom-debug-mode tw-column:hover::before,.dom-debug-mode tw-align:hover::before{background-color:#fc9;transition:background-color 1s}.dom-debug-mode tw-passage,.dom-debug-mode tw-include,.dom-debug-mode tw-hook,.dom-debug-mode tw-expression,.dom-debug-mode tw-link,.dom-debug-mode tw-dialog,.dom-debug-mode tw-columns,.dom-debug-mode tw-column,.dom-debug-mode tw-align{padding:1em;margin:0}.dom-debug-mode tw-story::before{content:'<tw-story tags="' attr(tags) '">'}.dom-debug-mode tw-passage::before{top:-16px;content:'<tw-passage tags="' attr(tags) '">'}.dom-debug-mode tw-sidebar::before{top:-16px;content:"<tw-sidebar>"}.dom-debug-mode tw-hook::before{content:'<tw-hook name="' attr(name) '">'}.dom-debug-mode tw-expression::before{content:'<tw-expression name="' attr(name) '">'}.dom-debug-mode tw-link::before{content:'<tw-link name="' attr(name) '">'}.dom-debug-mode tw-dialog::before{content:"<tw-dialog>"}.dom-debug-mode tw-columns::before{content:"<tw-columns>"}.dom-debug-mode tw-column::before{content:"<tw-column>"}.dom-debug-mode tw-align::before{content:"<tw-align>"}.dom-debug-mode tw-include::before{content:'<tw-include type="' attr(type) '" name="' attr(name) '">'}tw-open-button[goto]{display:none}.debug-mode tw-open-button[replay],.debug-mode tw-open-button[goto]{display:inline}.debug-mode tw-expression{display:inline-block !important}.debug-mode tw-expression[type=variable]::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:"$" attr(name)}.debug-mode tw-expression[type=tempVariable]::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:"_" attr(name)}.debug-mode tw-expression[return=boolean]{background-color:rgba(179,179,179,.2)}.debug-mode tw-expression[return=array]{background-color:rgba(255,102,102,.2)}.debug-mode tw-expression[return=dataset]{background-color:rgba(255,128,0,.2)}.debug-mode tw-expression[return=number]{background-color:rgba(255,179,102,.2)}.debug-mode tw-expression[return=datamap]{background-color:rgba(255,255,102,.2)}.debug-mode tw-expression[return=changer]{background-color:rgba(179,255,102,.2)}.debug-mode tw-expression[return=lambda]{background-color:rgba(102,255,102,.2)}.debug-mode tw-expression[return=hookname]{background-color:rgba(102,255,204,.2)}.debug-mode tw-expression[return=string]{background-color:rgba(102,255,255,.2)}.debug-mode tw-expression[return=datatype]{background-color:rgba(102,153,255,.2)}.debug-mode tw-expression[return=gradient],.debug-mode tw-expression[return=colour]{background-color:rgba(204,102,255,.2)}.debug-mode tw-expression[return=instant],.debug-mode tw-expression[return=macro]{background-color:rgba(240,117,199,.2)}.debug-mode tw-expression[return=command]{background-color:rgba(153,153,255,.2)}.debug-mode tw-expression.false{background-color:rgba(255,0,0,.2) !important}.debug-mode tw-expression[type=macro]::before{content:"(" attr(name) ":)";padding:0 .5rem;font-size:1rem;vertical-align:middle;line-height:normal;background-color:inherit;border:1px solid rgba(255,255,255,.5)}.debug-mode tw-expression[title]:not([title=""]){cursor:help}.debug-mode tw-hook{background-color:rgba(0,85,255,.1) !important}.debug-mode tw-hook::before{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:"["}.debug-mode tw-hook::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:"]"}.debug-mode tw-hook[name]::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:"]<" attr(name) "|"}.debug-mode tw-pseudo-hook{background-color:rgba(255,170,0,.1) !important}.debug-mode tw-collapsed::before{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:"{"}.debug-mode tw-collapsed::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:"}"}.debug-mode tw-verbatim::before,.debug-mode tw-verbatim::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:"`"}.debug-mode tw-align[style*="text-align: center"]{background:linear-gradient(to right, hsla(14, 100%, 87%, 0) 0%, hsla(14, 100%, 87%, 0.25) 50%, hsla(14, 100%, 87%, 0) 100%)}.debug-mode tw-align[style*="text-align: left"]{background:linear-gradient(to right, hsla(14, 100%, 87%, 0.25) 0%, hsla(14, 100%, 87%, 0) 100%)}.debug-mode tw-align[style*="text-align: right"]{background:linear-gradient(to right, hsla(14, 100%, 87%, 0) 0%, hsla(14, 100%, 87%, 0.25) 100%)}.debug-mode tw-column{background-color:rgba(189,228,255,.2)}.debug-mode tw-enchantment{animation:enchantment .5s infinite;border:1px solid}.debug-mode tw-link::after,.debug-mode tw-broken-link::after{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:attr(passage-name)}.debug-mode tw-include{background-color:rgba(204,128,51,.1)}.debug-mode tw-include::before{font-size:.8rem;padding-left:.2rem;padding-right:.2rem;vertical-align:top;content:attr(type) ' "' attr(name) '"'}.debug-dialogs tw-backdrop:not(.eval-replay):not(.harlowe-crash){pointer-events:none;opacity:.1}tw-eval-replay tw-eval-code,tw-eval-replay tw-eval-explanation{max-height:20vh;overflow:auto;margin:10px auto}tw-eval-replay tw-eval-code{display:block;font-family:monospace;padding-bottom:1ex;border-bottom:2px solid gray}tw-eval-replay tw-eval-explanation{display:block;text-align:center}tw-eval-replay tw-eval-explanation>code{white-space:pre-wrap}tw-eval-replay tw-eval-explanation>code.from-block{width:40%;display:inline-block;text-align:left;max-height:4em;overflow-wrap:anywhere;overflow-y:scroll}tw-eval-replay tw-eval-explanation>code.from-block~.to-desc{width:calc(40% - 2em);margin-left:2em;display:inline-block}tw-eval-replay tw-eval-explanation>code.from-block+span::after{content:"..."}tw-eval-replay tw-eval-explanation>code.from-inline{text-align:right}tw-eval-replay tw-eval-explanation>:nth-child(2){white-space:pre}tw-eval-replay tw-eval-explanation>.to-desc{text-align:left}tw-eval-replay tw-eval-explanation>table{width:100%;margin-top:1em}tw-eval-replay tw-eval-explanation>table td{white-space:pre-wrap !important;word-wrap:anywhere}tw-eval-replay tw-eval-reason{text-align:center;font-size:80%;font-style:italic;display:block}tw-eval-replay tw-eval-it{text-align:center;font-size:80%;display:block}tw-eval-replay tw-dialog-links{display:-ms-flexbox;display:flex;-ms-flex-pack:distribute;justify-content:space-around}@keyframes enchantment{0%,to{border-color:#ffb366}50%{border-color:#6fc}}tw-debugger{position:fixed;box-sizing:border-box;bottom:0;right:0;z-index:999999;min-width:14em;min-height:1em;padding:0em .5em .5em 1em;font-size:1.25em;font-family:sans-serif;color:#262626;background-color:#fff;border-left:solid #262626 2px;border-top:solid #262626 2px;border-top-left-radius:.5em;opacity:1}tw-debugger.fade-panel:not(:hover){opacity:.33}tw-debugger.theme-dark{color:#d9d9d9;background-color:#000}tw-debugger.theme-dark{border-color:#d9d9d9 rgba(0,0,0,0) rgba(0,0,0,0) #d9d9d9}tw-debugger select{margin-right:1em;width:12em}tw-debugger button,tw-debugger tw-link{border-radius:3px;border:solid #999 1px;margin:auto 4px;color:#262626;background-color:#fff;cursor:pointer}tw-debugger button.enabled,tw-debugger tw-link.enabled{color:#000;background-color:#d9d9d9;box-shadow:inset #999 3px 5px .5em}tw-debugger.theme-dark button,tw-debugger.theme-dark tw-link{color:#d9d9d9;background-color:#000;border-color:#666}tw-debugger.theme-dark button.enabled,tw-debugger.theme-dark tw-link.enabled{color:#e6e6e6;background-color:#424242;box-shadow:inset #666 3px 5px .5em}tw-debugger button{font-size:1em;overflow-x:hidden;text-overflow:ellipsis;white-space:pre}tw-debugger tw-link{font-size:1.25em;border-radius:16px;border-style:solid;border-width:2px;text-align:center;padding:0px 8px;display:block}tw-debugger tw-link:hover{border-color:#262626;color:#262626}tw-debugger.theme-dark tw-link:hover{border-color:#d9d9d9;color:#d9d9d9}tw-debugger tw-dialog{background-color:#fff;color:#000;font-size:1.25em}tw-debugger.theme-dark tw-dialog{background-color:#000;color:#e6e6e6}tw-debugger .panel{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute;bottom:100%;left:-2px;right:0;padding:1em;overflow-y:scroll;overflow-x:hidden;border:inherit;box-sizing:content-box;background-color:#fff;border-bottom:solid #999 2px;border-top-left-radius:.5em;border-bottom-left-radius:.5em;font-size:.8em}tw-debugger .panel:empty,tw-debugger .panel[hidden]{display:none}tw-debugger.theme-dark .panel{background-color:#000;border-bottom-color:#666}tw-debugger .panel-source .panel-row-buttons{width:2rem}tw-debugger .panel-source .source-tags{width:20%;font-style:italic}tw-debugger .panel-row-source td{font-family:monospace;font-size:1rem;white-space:pre-wrap;overflow-wrap:anywhere;max-height:8rem;padding:1rem}tw-debugger .panel-rows{width:100%;overflow-x:scroll}tw-debugger .panel-rows>*{display:table-row}tw-debugger .panel-rows>div:nth-of-type(2n){background-color:#e6e6e6}tw-debugger .panel-tools .panel-rows>*,tw-debugger .panel-options .panel-rows>*{margin-top:.4rem;display:block}tw-debugger.theme-dark .panel-rows>div:nth-of-type(2n){background-color:#212121}tw-debugger .panel-row-buttons{text-align:right}tw-debugger .panel-variables .panel-rows:empty::before{content:"~ No variables ~";font-style:italic;color:#575757;text-align:center}tw-debugger .panel-enchantments .panel-rows:empty::before{content:"~ No enchantments ~";font-style:italic;color:#575757;text-align:center}tw-debugger .panel-errors .panel-rows:empty::before{content:"~ No errors... for now. ~";font-style:italic;color:#575757;text-align:center}tw-debugger .panel-errors .panel-rows:empty+.panel-errors-bottom{display:none}tw-debugger.theme-dark .panel-variables .panel-rows:empty::before,tw-debugger.theme-dark .panel-enchantments .panel-rows:empty::before,tw-debugger.theme-dark .panel-errors .panel-rows:empty::before{color:#a8a8a8}tw-debugger .panel-rows:empty+.panel-variables-bottom{display:none}tw-debugger th[data-col]{text-decoration:underline;cursor:pointer}tw-debugger th[data-col][data-order=asc]::after{content:"↓"}tw-debugger th[data-col][data-order=desc]::after{content:"↑"}tw-debugger .panel-storylets:not(.panel-exclusive) .storylet-exclusive,tw-debugger .panel-storylets:not(.panel-urgent) .storylet-urgent{display:none}tw-debugger .storylet-exclusive,tw-debugger .storylet-urgent,tw-debugger .storylet-open{text-align:center}tw-debugger .panel-variables-bottom{padding-top:5px}tw-debugger .enchantment-row{min-height:1.5em}tw-debugger .variable-path{opacity:.4}tw-debugger .temporary-variable-scope,tw-debugger .enchantment-local{font-family:sans-serif;font-weight:normal;opacity:.8;font-size:.75em}tw-debugger .temporary-variable-scope:not(:empty)::before,tw-debugger .enchantment-local:not(:empty)::before{content:" in "}tw-debugger .variable-name,tw-debugger .enchantment-name{font-family:monospace;font-weight:bold}tw-debugger .variable-type{color:#575757;font-weight:normal;text-overflow:ellipsis;overflow:hidden;max-width:10em}tw-debugger.theme-dark .variable-type{color:#a8a8a8}tw-debugger .error-row{display:table-row;background-color:rgba(230,101,204,.3)}tw-debugger .error-row:nth-of-type(2n){background-color:rgba(237,145,219,.3)}tw-debugger .error-row>*{display:table-cell;padding:.25em .5em}tw-debugger .error-row .error-message[title]:not([title=""]){cursor:help}tw-debugger .error-row .error-passage{color:#575757}tw-debugger.theme-dark .error-row .error-passage{color:#a8a8a8}tw-debugger .storylet-row{background-color:rgba(193,240,225,.3)}tw-debugger .storylet-row:nth-child(2n){background-color:rgba(152,231,204,.3)}tw-debugger .storylet-row.storylet-closed{font-style:italic;background-color:#fff}tw-debugger .storylet-row.storylet-closed:nth-child(2n){background-color:#e6e6e6}tw-debugger .storylet-row.storylet-closed>:not(.storylet-lambda){opacity:.6}.storylet-error tw-debugger .storylet-row{background-color:rgba(230,101,204,.3)}.storylet-error tw-debugger .storylet-row:nth-child(2n){background-color:rgba(237,145,219,.3)}tw-debugger .storylet-row .storylet-name,tw-debugger .storylet-row .storylet-value{display:inline-block;width:50%}tw-debugger .storylet-row .storylet-lambda{font-family:monospace;font-size:1rem;white-space:pre-wrap;overflow-wrap:anywhere}tw-debugger.theme-dark .storylet-row.storylet-closed{background-color:#000}tw-debugger.theme-dark .storylet-row.storylet-closed:nth-child(2n){background-color:#212121}tw-debugger .tabs{padding-bottom:.5em}tw-debugger .tab{border-radius:0px 0px .5em .5em;border-top:none;top:-2px}tw-debugger .resizer-h{position:absolute;height:14em;border-left:2px solid #999;border-right:2px solid #999;top:10px;left:4px;width:8px;cursor:ew-resize}tw-debugger.theme-dark .resizer-h{border-color:rgba(0,0,0,0) #666}tw-debugger .resizer-v{position:absolute;height:8px;border-top:2px solid #999;border-bottom:2px solid #999;margin-bottom:4px;top:4px;left:10px;width:95%;cursor:ns-resize;box-sizing:border-box}tw-debugger.theme-dark .resizer-v{border-color:#666 rgba(0,0,0,0)}tw-debugger mark{color:inherit;background-color:rgba(101,230,230,.3) !important}tw-dialog{z-index:999997;border:#fff solid 2px;padding:2em;color:#fff;background-color:#000;display:block}@media(min-width: 576px){tw-dialog{max-width:50vw}}tw-dialog input[type=text]{font-size:inherit;width:100%;border:solid #fff !important}tw-dialog-links{text-align:right;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}tw-backdrop{z-index:999996;position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.8);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}tw-backdrop~tw-backdrop{display:none}tw-link,.enchantment-link{cursor:pointer;color:#4169e1;font-weight:bold;text-decoration:none;transition:color .2s ease-in-out}tw-passage [style^=color] tw-link:not(:hover),tw-passage [style*=" color"] tw-link:not(:hover),tw-passage [style^=color][hover=true] tw-link:hover,tw-passage [style*=" color"][hover=true] tw-link:hover,tw-passage [style^=color] .enchantment-link:not(:hover),tw-passage [style*=" color"] .enchantment-link:not(:hover),tw-passage [style^=color][hover=true] .enchantment-link:hover,tw-passage [style*=" color"][hover=true] .enchantment-link:hover{color:inherit}tw-link:hover,.enchantment-link:hover{color:#00bfff}tw-link:active,.enchantment-link:active{color:#dd4b39}.visited{color:#6941e1}tw-passage [style^=color] .visited:not(:hover),tw-passage [style*=" color"] .visited:not(:hover),tw-passage [style^=color][hover=true] .visited:hover,tw-passage [style*=" color"][hover=true] .visited:hover{color:inherit}.visited:hover{color:#e3e}tw-broken-link{color:#933;border-bottom:2px solid #933;cursor:not-allowed}tw-passage [style^=color] tw-broken-link:not(:hover),tw-passage [style*=" color"] tw-broken-link:not(:hover),tw-passage [style^=color][hover=true] tw-broken-link:hover,tw-passage [style*=" color"][hover=true] tw-broken-link:hover{color:inherit}tw-link.enchantment-mouseover,.link.enchantment-mouseover,tw-expression.enchantment-mouseover>tw-link{color:inherit;font-weight:inherit;transition:none;cursor:inherit;border-bottom:2px dashed #999}tw-link.enchantment-mouseover:hover,tw-link.enchantment-mouseover:active,.link.enchantment-mouseover:hover,.link.enchantment-mouseover:active,tw-expression.enchantment-mouseover>tw-link:hover,tw-expression.enchantment-mouseover>tw-link:active{color:inherit}tw-link.enchantment-mouseover.enchantment-button,.link.enchantment-mouseover.enchantment-button,tw-expression.enchantment-mouseover>tw-link.enchantment-button{border-style:dashed}tw-link.enchantment-mouseout,.link.enchantment-mouseout,tw-expression.enchantment-mouseout>tw-link{color:inherit;font-weight:inherit;transition:none;cursor:inherit;border:rgba(64,149,191,.6) 1px solid;border-radius:.2em}tw-link.enchantment-mouseout:hover,tw-link.enchantment-mouseout:active,.link.enchantment-mouseout:hover,.link.enchantment-mouseout:active,tw-expression.enchantment-mouseout>tw-link:hover,tw-expression.enchantment-mouseout>tw-link:active{color:inherit}tw-link.enchantment-mouseout:hover,.link.enchantment-mouseout:hover,tw-expression.enchantment-mouseout>tw-link:hover{background-color:rgba(175,197,207,.75);border:rgba(0,0,0,0) 1px solid}tw-link.enchantment-dblclick,.link.enchantment-dblclick,tw-expression.enchantment-dblclick>tw-link{color:inherit;font-weight:inherit;transition:none;cursor:inherit;cursor:pointer;border:2px solid #999;border-radius:0}tw-link.enchantment-dblclick:hover,tw-link.enchantment-dblclick:active,.link.enchantment-dblclick:hover,.link.enchantment-dblclick:active,tw-expression.enchantment-dblclick>tw-link:hover,tw-expression.enchantment-dblclick>tw-link:active{color:inherit}tw-link.enchantment-dblclick:active,.link.enchantment-dblclick:active,tw-expression.enchantment-dblclick>tw-link:active{background-color:#999}tw-link.enchantment-button,.link.enchantment-button,.enchantment-button:not(.link) tw-link,.enchantment-button:not(.link) .link{border-radius:16px;border-style:solid;border-width:2px;text-align:center;padding:0px 8px;display:block}.enchantment-button{display:block}.enchantment-clickblock{cursor:pointer;width:100%;height:100%;display:block}.enchantment-clickblock>:not(tw-enchantment)::after{content:"";width:100%;height:100%;top:0;left:0;display:block;box-sizing:border-box;position:absolute;pointer-events:none;color:rgba(65,105,225,.5);transition:color .2s ease-in-out}.enchantment-clickblock>:not(tw-enchantment):hover::after{color:rgba(0,191,255,.5)}.enchantment-clickblock>:not(tw-enchantment):active::after{color:rgba(222,78,59,.5)}.enchantment-clickblock>:not(tw-enchantment)::after{box-shadow:inset 0 0 0 .5vmax}.enchantment-clickblock>tw-passage::after,.enchantment-clickblock>tw-sidebar::after{box-shadow:0 0 0 .5vmax}.enchantment-mouseoverblock>:not(tw-enchantment)::after{content:"";width:100%;height:100%;top:0;left:0;display:block;box-sizing:border-box;position:absolute;pointer-events:none;border:2px dashed #999}.enchantment-mouseoutblock>:not(tw-enchantment)::after{content:"";width:100%;height:100%;top:0;left:0;display:block;box-sizing:border-box;position:absolute;pointer-events:none;border:rgba(64,149,191,.6) 2px solid}.enchantment-mouseoutblock:hover>:not(tw-enchantment)::after{content:"";width:100%;height:100%;top:0;left:0;display:block;box-sizing:border-box;position:absolute;pointer-events:none;background-color:rgba(175,197,207,.75);border:rgba(0,0,0,0) 2px solid;border-radius:.2em}.enchantment-dblclickblock>:not(tw-enchantment)::after{content:"";width:100%;height:100%;top:0;left:0;display:block;box-sizing:border-box;position:absolute;pointer-events:none;cursor:pointer;border:2px solid #999}tw-dialog-links{padding-top:1.5em}tw-dialog-links tw-link{border-radius:16px;border-style:solid;border-width:2px;text-align:center;padding:0px 8px;display:block;display:inline-block}html{margin:0;height:100%;overflow-x:hidden}*,:before,:after{position:relative;box-sizing:inherit}body{margin:0;height:100%}tw-storydata{display:none}tw-story{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font:100% Georgia,serif;box-sizing:border-box;width:100%;min-height:100%;font-size:1.5em;line-height:1.5em;padding:5% 5%;overflow:hidden;background-color:#000;color:#fff}tw-story [style*=content-box] *{box-sizing:border-box}@media(min-width: 576px){tw-story{padding:5% 20%}}tw-story tw-consecutive-br{display:block;height:1.6ex;visibility:hidden}tw-story select{background-color:rgba(0,0,0,0);font:inherit;border-style:solid;padding:2px}tw-story select:not([disabled]){color:inherit}tw-story textarea{resize:none;background-color:rgba(0,0,0,0);font:inherit;color:inherit;border-style:none;padding:2px}tw-story input[type=text]{background-color:rgba(0,0,0,0);font:inherit;color:inherit;border-style:none}tw-story input[type=checkbox]{transform:scale(1.5);margin:0 .5em .5em .5em;vertical-align:middle}tw-story tw-noscript{animation:appear .8s}tw-passage{display:block}tw-sidebar{text-align:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}@media(min-width: 576px){tw-sidebar{left:-5em;width:3em;position:absolute;-ms-flex-direction:column;flex-direction:column}tw-enchantment[style*=width]>tw-sidebar{width:inherit}}tw-icon{display:inline-block;margin:.5em 0;font-size:66px;font-family:"Verdana",sans-serif}tw-icon[alt]{opacity:.2;cursor:pointer}tw-icon[alt]:hover{opacity:.4}tw-icon[data-label]::after{font-weight:bold;content:attr(data-label);font-size:20px;bottom:-20px;left:-50%;white-space:nowrap}tw-meter{display:block}tw-hook:empty,tw-expression:empty{display:none}tw-error{display:inline-block;border-radius:.2em;padding:.2em;font-size:1rem;cursor:help;white-space:pre-wrap}tw-error.error{background-color:rgba(223,58,190,.6);color:#fff}tw-error.warning{background-color:rgba(223,140,58,.6);color:#fff;display:none}.debug-mode tw-error.warning{display:inline}tw-error-explanation{display:block;font-size:.8rem;line-height:1rem}tw-open-button,tw-folddown{cursor:pointer;line-height:0em;border-radius:4px;border:1px solid rgba(255,255,255,.5);font-size:.8rem;margin:0 .2rem;padding:3px;white-space:pre}tw-folddown::after{content:"▶"}tw-folddown.open::after{content:"▼"}tw-open-button[replay]{display:none}tw-error tw-open-button,tw-eval-replay tw-open-button{display:inline !important}tw-open-button::after{content:attr(label)}tw-notifier{border-radius:.2em;padding:.2em;font-size:1rem;background-color:rgba(223,182,58,.4);display:none}.debug-mode tw-notifier{display:inline}tw-notifier::before{content:attr(message)}tw-colour{border:1px solid #000;display:inline-block;width:1em;height:1em}tw-enchantment:empty{display:none}h1{font-size:3em}h2{font-size:2.25em}h3{font-size:1.75em}h1,h2,h3,h4,h5,h6{line-height:1em;margin:.3em 0 .6em 0}pre{font-size:1rem;line-height:initial}small{font-size:70%}big{font-size:120%}mark{color:rgba(0,0,0,.6);background-color:#ff9}ins{color:rgba(0,0,0,.6);background-color:rgba(255,242,204,.5);border-radius:.5em;box-shadow:0em 0em .2em #ffe699;text-decoration:none}center{text-align:center;margin:0 auto;width:60%}blink{text-decoration:none;animation:fade-in-out 1s steps(1, end) infinite alternate}tw-align{display:block}tw-columns{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}.transition-in{animation:appear 0ms step-start}.transition-out{animation:appear 0ms step-end}[data-t8n^=dissolve].transition-in,[data-t8n=fade].transition-in{animation:appear .8s}[data-t8n^=dissolve].transition-out,[data-t8n=fade].transition-out{animation:appear .8s reverse}[data-t8n^=shudder].transition-in{display:inline-block !important;animation:shudder-in .8s}[data-t8n^=shudder].transition-out{display:inline-block !important;animation:shudder-in .8s reverse}[data-t8n^=rumble].transition-in{display:inline-block !important;animation:rumble-in .8s}[data-t8n^=rumble].transition-out{display:inline-block !important;animation:rumble-in .8s reverse}[data-t8n^=pulse].transition-in{animation:pulse .8s;display:inline-block !important}[data-t8n^=pulse].transition-out{animation:pulse .8s reverse;display:inline-block !important}[data-t8n^=zoom].transition-in{animation:zoom-in .8s;display:inline-block !important}[data-t8n^=zoom].transition-out{animation:zoom-in .8s reverse;display:inline-block !important}[data-t8n^=blur].transition-in{animation:blur .8s;display:inline-block !important}[data-t8n^=blur].transition-out{animation:blur .8s reverse;display:inline-block !important}[data-t8n^=slideleft].transition-in{animation:slide-left .8s;display:inline-block !important}[data-t8n^=slideleft].transition-out{animation:slide-right .8s reverse;display:inline-block !important}[data-t8n^=slideright].transition-in{animation:slide-right .8s;display:inline-block !important}[data-t8n^=slideright].transition-out{animation:slide-left .8s reverse;display:inline-block !important}[data-t8n^=slideup].transition-in{animation:slide-up .8s;display:inline-block !important}[data-t8n^=slideup].transition-out{animation:slide-down .8s reverse;display:inline-block !important}[data-t8n^=slidedown].transition-in{animation:slide-down .8s;display:inline-block !important}[data-t8n^=slidedown].transition-out{animation:slide-up .8s reverse;display:inline-block !important}[data-t8n^=fadeleft].transition-in{animation:fade-left .8s;display:inline-block !important}[data-t8n^=fadeleft].transition-out{animation:fade-right .8s reverse;display:inline-block !important}[data-t8n^=faderight].transition-in{animation:fade-right .8s;display:inline-block !important}[data-t8n^=faderight].transition-out{animation:fade-left .8s reverse;display:inline-block !important}[data-t8n^=fadeup].transition-in{animation:fade-up .8s;display:inline-block !important}[data-t8n^=fadeup].transition-out{animation:fade-down .8s reverse;display:inline-block !important}[data-t8n^=fadedown].transition-in{animation:fade-down .8s;display:inline-block !important}[data-t8n^=fadedown].transition-out{animation:fade-up .8s reverse;display:inline-block !important}[data-t8n^=flicker].transition-in{animation:flicker .8s}[data-t8n^=flicker].transition-out{animation:flicker .8s reverse}
</style>
</head>
<body>
<tw-story><noscript><tw-noscript>JavaScript needs to be enabled to play MetiersdelaDiplomatieV3.</tw-noscript></noscript></tw-story>
<tw-storydata name="MetiersdelaDiplomatieV3" startnode="1" creator="Twine" creator-version="2.10.0" format="Harlowe" format-version="3.3.9" ifid="e90ea0fb-08a4-4dac-8fa9-4739878c911a" options="" tags="" zoom="1" hidden><style role="stylesheet" id="twine-user-stylesheet" type="text/twine-css">/* Diplomatie Interactive Decision Tree - Stylesheet */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');
@font-face{font-family:'Marianne';font-style:normal;font-weight:200;src:local('Marianne Light'),local(Marianne-Light),url(//www.diplomatie.gouv.fr/plugins/fdiplo_themes/fonts/marianne/Marianne-Light.woff2) format("woff2"),url(//www.diplomatie.gouv.fr/plugins/fdiplo_themes/fonts/marianne/Marianne-Light.woff) format("woff")}
@font-face{font-family:'Marianne';font-style:normal;font-weight:400;src:local(Marianne),local(Marianne-Regular),url(//www.diplomatie.gouv.fr/plugins/fdiplo_themes/fonts/marianne/Marianne-Regular.woff2) format("woff2"),url(//www.diplomatie.gouv.fr/plugins/fdiplo_themes/fonts/marianne/Marianne-Regular.woff) format("woff")}
@font-face{font-family:'Marianne';font-style:normal;font-weight:700;src:local('Marianne Bold'),local(Marianne-Bold),url(//www.diplomatie.gouv.fr/plugins/fdiplo_themes/fonts/marianne/Marianne-Bold.woff2) format("woff2"),url(//www.diplomatie.gouv.fr/plugins/fdiplo_themes/fonts/marianne/Marianne-Bold.woff) format("woff")}
@font-face{font-family:'Marianne';font-style:normal;font-weight:800;src:local('Marianne ExtraBold'),local(Marianne-ExtraBold),url(//www.diplomatie.gouv.fr/plugins/fdiplo_themes/fonts/marianne/Marianne-ExtraBold.woff2) format("woff2"),url(//www.diplomatie.gouv.fr/plugins/fdiplo_themes/fonts/marianne/Marianne-ExtraBold.woff) format("woff")}
/* Main body styling */
body {
background-color: var(--bleuc);
color: var(--bleuf);
}
/* Story container */
tw-story {
background-color: var(--blanc);
font-family: 'Marianne', Arial, sans-serif;
color: var(--bleuf);
max-width: 800px;
margin: 0 auto;
padding: 2em;
}
/*
Création de variables de couleurs
*/
:root {
--base: #273475; /* Couleur du texte */
--bleuf: #000091; /* Bleu France */
--bleuc: #C9DCF3; /* Bleu Clair */
--rouge: #E1000F; /* Rouge Marianne */
--blanc: #ffffff; /* Couleur des ombres */
--noir: #000000; /* Couleur des liens */
}
/* Headings */
h1 {
color: var(--bleuf);
font-weight: bold;
text-align: center;
font-size: 2em;
margin-bottom: 1em;
}
/* Main navigation paths layout */
.main-paths {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
margin: 2em 0;
}
/* Path buttons styling */
.path {
margin: 1.5em 0.5em;
justify-content: center;
display: inline-flex;
align-items: center;
}
.path tw-link {
color: var(--bleuf);
font-weight: bold;
font-size: 1.5em;
border: 3px solid var(--bleuf);
padding: 0.5em 1em;
cursor: pointer;
}
.oui tw-link:hover {
transform: scale(1.05);
background-color: var(--bleuf);
transition: transform 0.2s ease;
}
.non tw-link:hover {
transform: scale(1.05);
background-color: var(--rouge);
transition: transform 0.2s ease;
}
/* Option boxes */
.option-box {
content: center;
display: flex;
align-items: center;
justify-content: center;
}
.option-box tw-link{
background-color: #FFFFFF;
border: 2pt solid #FDC608;
margin-top: 0.8em;
padding: 0.8em;
display: flex;
justify-content: center;
gap: 0.5em;
display: inline-flex;
align-items: center;
text-align: center;
cursor: pointer;
font-weight: bold;
color: #273475;
transition: all 0.2s ease;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
box-shadow: 10px 10px 0px #FDC608;
}
.option-box tw-link:hover {
transform: scale(1.02);
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
/* Links styling */
tw-link {
color: var(--bleuf);
font-weight: bold;
text-decoration: underline;
transition: color 0.2s ease;
}
tw-link:hover {
color: var(--bleuc);
}
tw-link.visited:hover {
color: var(--noir);
}
/* Back navigation */
.back-link {
text-align: center;
justify-content: center;
content: center;
align-items: center;
display: flex;
}
.back-link tw-link {
padding: 0.5em 1em;
margin: 1em;
margin-top: 2em;
background-color: var(--bleuf);
color: var(--blanc);
border-radius: 4px;
text-decoration: none;
transition: background-color 0.2s ease;
display: inline-block;
}
.back-link tw-link:hover {
background-color: var(--bleuc);
text-decoration: none;
}
/* Media queries for responsive design */
@media screen and (max-width: 768px) {
.main-paths {
flex-direction: column;
align-items: center;
}
.path-oui, .path-peut-etre, .path-non {
margin-bottom: 1em;
}
h1 {
font-size: 1.8em;
}
}
/* Final call to action styling */
.cta {
color: var(--bleuf);
font-size: 2em;
margin-top: 1em;
justify-content: center;
text-align: center;
content: center;
display: flex;
align-items: center;
line-height: 1.3;
border: 2pt solid var(--blanc);
}
.cta a{
border: 2pt solid var(--blanc);
padding: 0.5em;
border-radius: 4px;
}
.cta a:hover{
color: var(--bleuf);
background-color: var(--bleuc);
border: 2pt solid var(--bleuf);
transition: all 0.5s ease;
transform: scale(1.02);
}
.cta a:visited {
color: var(--bleuf);
}
/* Additional CSS for the footer - add this to your CSS file */
/* Footer styling - enhanced */
#footer {
margin-top: 0.5em;
padding-top: 0.1em;
text-align: center;
font-size: 1em;
color: #273475;
}
#footer hr {
width: 60%;
margin: 0 auto 1em auto;
border: none;
border-top: 1px solid #8ba2c5;
}
/* Social links with improved styling */
.social-links {
display: flex;
justify-content: center;
gap: 0.5em;
margin: 0.5em 0;
}
.social-links a {
color: #273475;
font-size: 0.7em;
transition: all 0.2s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
padding: 0.5em 1em;
background-color: #e9f0fa;
cursor: pointer;
position: relative; /* For proper alignment in circle mode */
}
.social-links a i,
.social-links a .fa {
margin-right: 0.5em;
}
.social-links a:hover {
transform: translateY(-3px);
background-color: #ffffff;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* Responsive styling for small screens */
@media (max-width: 600px) {
.social-links {
gap: 0.3em;
}
.social-links a {
padding: 0.6em;
border-radius: 50%;
width: 2.2em;
height: 2.2em;
justify-content: center;
align-items: center;
}
.social-links a i,
.social-links a .fa {
margin-right: 0;
font-size: 1.2em;
}
/* Hide text on small screens, only show icons */
.social-links a .button-text {
display: none;
}
.sharing-instruction {
font-size: 1em;
margin-top: 0.8em;
margin-bottom: 0.8em;
}
}
/* Even smaller screens */
@media (max-width: 320px) {
.social-links {
gap: 0.2em;
}
.social-links a {
width: 1.8em;
height: 1.8em;
padding: 0.4em;
}
.social-links a i,
.social-links a .fa {
font-size: 1em;
}
.sharing-instruction {
font-size: 0.8em;
margin-top: 0.5em;
margin-bottom: 0.5em;
}
}
/* Share */
.social-links a:nth-child(1) {
color: #273475;
border-bottom: 2px solid #273475;
}
/* Download */
.social-links a:nth-child(2) {
color: #3CB371;
border-bottom: 2px solid #3CB371;
}
/* Twitter */
.social-links a:nth-child(3) {
color: #1DA1F2;
border-bottom: 2px solid #1DA1F2;
}
/* LinkedIn */
.social-links a:nth-child(4) {
color: #0077B5;
border-bottom: 2px solid #0077B5;
}
/* Override bottom borders for circular buttons on mobile */
@media (max-width: 600px) {
.social-links a:nth-child(1),
.social-links a:nth-child(2),
.social-links a:nth-child(3),
.social-links a:nth-child(4) {
border: none;
}
.social-links a:nth-child(1) { background-color: #e9f0fa; border: 2px solid #273475; }
.social-links a:nth-child(2) { background-color: #e9f0fa; border: 2px solid #3CB371; }
.social-links a:nth-child(3) { background-color: #e9f0fa; border: 2px solid #1DA1F2; }
.social-links a:nth-child(4) { background-color: #e9f0fa; border: 2px solid #0077B5; }
/* Improved hover effect for mobile */
.social-links a:hover {
transform: scale(1.15);
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/* Active state for better touch feedback */
.social-links a:active {
transform: scale(0.95);
box-shadow: none;
}
}
/* Small text for additional links */
.small-text {
font-size: 0.4em;
margin-top: 1em;
color: #5c6b89;
text-align: center;
}
.small-text a {
color: #22AE86;
text-decoration: none;
font-weight: bold;
}
.small-text a:hover {
text-decoration: underline;
}
.small-text-note {
text-decoration: none;
font-weight: ExtraBold;
text-align: center;
font-size: 0.4em;
color: var(--noir);
line-height: 1em;
}
</style><script role="script" id="twine-user-script" type="text/twine-javascript">(function () {
const script = document.createElement("script");
script.src = "https://cdn.jsdelivr.net/npm/html2canvas@1.4.1/dist/html2canvas.min.js";
script.onload = function () {
console.log("html2canvas loaded successfully");
};
script.onerror = function () {
console.error("Failed to load html2canvas");
};
document.head.appendChild(script);
})();
// Share chart using the simplest approach that works everywhere
function shareChart() {
const originalChart = document.getElementById("skillsRadarContainer");
if (!originalChart) {
console.error("Chart container not found");
return;
}
// Create a temporary export container with proper sizing
const exportContainer = document.createElement('div');
exportContainer.style.cssText = `
position: fixed;
top: -2000px;
left: -2000px;
width: 1000px;
height: 1000px;
background-color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
padding: 100px;
box-sizing: border-box;
`;
// Clone the original chart content
const chartClone = originalChart.cloneNode(true);
chartClone.style.cssText = `
width: 600px;
height: 600px;
margin: 0;
`;
// Find and resize the radar-chart within the clone
const radarChart = chartClone.querySelector('.radar-chart');
if (radarChart) {
radarChart.style.width = '600px';
radarChart.style.height = '600px';
radarChart.style.margin = '0 auto';
}
exportContainer.appendChild(chartClone);
document.body.appendChild(exportContainer);
html2canvas(exportContainer, {
useCORS: true,
width: 1000,
height: 1000,
backgroundColor: '#ffffff',
scale: 1,
logging: false
}).then(function(canvas) {
// Remove the temporary container
document.body.removeChild(exportContainer);
// Try to use the Web Share API first (works great on mobile)
if (navigator.share) {
canvas.toBlob(function(blob) {
const file = new File([blob], "profil-diplomatique.png", { type: "image/png" });
// Try sharing with the file
if (navigator.canShare && navigator.canShare({ files: [file] })) {
navigator.share({
title: "Mon Profil Diplomatique",
text: "Voici mon profil de compétences diplomatiques!",
files: [file]
})
.catch((error) => {
console.log("Sharing failed", error);
downloadImage(canvas);
});
} else {
// Device can't share files, just download
downloadImage(canvas);
}
});
} else {
// Web Share API not available, just download
downloadImage(canvas);
}
}).catch(function(error) {
console.error("html2canvas failed:", error);
});
}
// Download the chart as an image
function downloadImage(canvas) {
const link = document.createElement("a");
link.download = "profil-diplomatique.png";
link.href = canvas.toDataURL("image/png");
link.click();
alert("L'image a été téléchargée. Pour la partager:\n\n" +
"1. Ouvrez l'application de réseau social de votre choix\n" +
"2. Créez une nouvelle publication\n" +
"3. Joignez l'image que vous venez de télécharger");
}
// Legacy export function - renamed from exportChartAsImage
function exportChartAsImage() {
const originalChart = document.getElementById("skillsRadarContainer");
if (!originalChart) {
console.error("Chart container not found");
return;
}
// Create a temporary export container with proper sizing
const exportContainer = document.createElement('div');
exportContainer.style.cssText = `
position: fixed;
top: -2000px;
left: -2000px;
width: 1000px;
height: 1000px;
background-color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
padding: 100px;
box-sizing: border-box;
`;
// Clone the original chart content
const chartClone = originalChart.cloneNode(true);
chartClone.style.cssText = `
width: 600px;
height: 600px;
margin: 0;
`;
// Find and resize the radar-chart within the clone
const radarChart = chartClone.querySelector('.radar-chart');
if (radarChart) {
radarChart.style.width = '600px';
radarChart.style.height = '600px';
radarChart.style.margin = '0 auto';
}
exportContainer.appendChild(chartClone);
document.body.appendChild(exportContainer);
html2canvas(exportContainer, {
useCORS: true,
width: 1000,
height: 1000,
backgroundColor: '#ffffff',
scale: 1,
logging: false
}).then(function(canvas) {
// Remove the temporary container
document.body.removeChild(exportContainer);
downloadImage(canvas);
}).catch(function(error) {
console.error("html2canvas failed:", error);
});
}
// Platform-specific share functions are simplified to use our main shareChart function
function shareOnTwitter() {
shareChart();
}
function shareOnFacebook() {
shareChart();
}
function shareOnLinkedIn() {
shareChart();
}
// Make sharing functions globally available
window.shareChart = shareChart;
window.exportChartAsImage = exportChartAsImage;
window.shareOnTwitter = shareOnTwitter;
window.shareOnFacebook = shareOnFacebook;
window.shareOnLinkedIn = shareOnLinkedIn;
// Bind export button after passage loads
const chartBindInterval = setInterval(() => {
const button = document.getElementById("exportSVG");
const chart = document.getElementById("skillsRadarContainer");
if (button && chart && !button.dataset.bound) {
button.dataset.bound = "true";
button.addEventListener("click", exportChartAsImage);
console.log("Chart export button bound");
clearInterval(chartBindInterval);
}
}, 500);
</script><tw-passagedata pid="1" name="Start" tags="" position="700,275" size="100,100"># Avez-vous pensé aux métiers de la diplomatie ?
<div class="path oui">[[OUI->OUI]]</div><div class="path">[[PEUT-ÊTRE...]]</div><div class="path non">[[NON]]</div></tw-passagedata><tw-passagedata pid="2" name="OUI" tags="" position="500,500" size="100,100">#Oui, je pense aux métiers de la diplomatie
{(set: $leadership to $leadership + 10)
<div class="option-box">[[J'adore apprendre des langues étrangères !->Langues]]</div>
<div class="option-box">[[Mais ça me paraît hors de portée !->Portee]]</div>
<div class="option-box">[[Je rêve de prestige et de cocktail !->Prestige]]</div>
<div class="option-box">[[J'adore négocier et analyser !->Nego]]</div>
(display: "Footer")}</tw-passagedata><tw-passagedata pid="3" name="PEUT-ÊTRE..." tags="" position="700,475" size="100,100"># Peut-être...
{(set: $negotiation to $negotiation + 10)
Je suis encore étudiant...
<div class="option-box">[[La diplomatie m'intrigue.->Intrigue]]</div>
<div class="option-box">[[Je ne suis pas encore assez qualifié(e).->Qualifie]]</div>
(display: "Footer")}
</tw-passagedata><tw-passagedata pid="4" name="NON" tags="" position="900,450" size="100,100"># Non je pense pas aux métiers de la diplomatie
{(set: $communication to $communication + 10)
<div class="option-box">[[J'avoue,
je ne sais pas vraiment ce que c'est la diplomatie...->Intrigue]]</div>
<div class="option-box">[[Mes amis disent que je m'enflamme,
je suis peut-être pas très diplo !->Diplo]]</div>
<div class="option-box">[[Fonctionnaire, bof,
je ne veux pas faire le même métier toute ma vie !->Fonctionnaire]]</div>
<div class="option-box">[[Je ne me vois pas passer ma vie à l'étranger !->Etranger]]
</div>
<div class="option-box">[[J'ai d'autres perspectives professionnelles.->Perspectives]]</div>
<div class="option-box">
[[Honnêtement... flemme.->Flemme]]</div>
(display: "Footer")}</tw-passagedata><tw-passagedata pid="5" name="Langues" tags="" position="75,500" size="100,100">
# J'adore apprendre des langues étrangères !
{(set: $languages to $languages + 40)(set: $negotiation to $negotiation + 10)(set: $communication to $communication + 20)
Ça tombe bien, les 14 000 agents du ministère de l'Europe et des Affaires étrangères parlent plus de 40 langues, et peuvent continuer à apprendre grâce aux cours proposés par le ministère et à la vie en poste !
(display: "Final")(display: "Footer")}
</tw-passagedata><tw-passagedata pid="6" name="Portee" tags="" position="200,500" size="100,100"># Mais ça me paraît hors de portée !
{(set: $communication to $communication + 10)
<div class="option-box">[[Je suis en situation de handicap.->Handicap]]</div>
<div class="option-box">[[Difficile sans avoir fait d'études de sciences politiques ou de relations internationales.->Difficile]]</div>
(display: "Footer")}
</tw-passagedata><tw-passagedata pid="7" name="Prestige" tags="" position="450,675" size="100,100"># Je rêve de prestige et de cocktail !
{(set: $leadership to $leadership + 40)(set: $international to $international + 20)
Ah... nous c'est plutôt terrain, service aux Français, gestion de crise... ça vous intéresse toujours ?
<div class="option-box">[[Servir les Français partout dans le monde ?
Carrément !->Servir]]</div>
<div class="option-box">[[Pas vraiment ...->Start]]</div>
(display: "Footer")}
</tw-passagedata><tw-passagedata pid="8" name="Nego" tags="" position="325,525" size="100,100"># J'adore négocier et analyser !
{(set: $negotiation to $negotiation + 30)(set: $crisis to $crisis + 10)(set: $communication to $communication + 10)
On a besoin de votre énergie pour répondre aux (link-repeat: "enjeux globaux")[(open-url: "https://www.diplomatie.gouv.fr/fr/politique-etrangere-de-la-france/")] : diplomatie féministe, diplomatie arc-en-ciel, santé, climat, nutrition, culture...
(display: "Final")(display: "Footer")}
</tw-passagedata><tw-passagedata pid="9" name="Servir" tags="" position="375,800" size="100,100"># Servir les Français partout dans le monde ? Carrément !
{(set: $crisis to $crisis + 20)(set: $languages to $languages + 10)
Servir les Français partout dans le monde ? Carrément !
(display: "Final")(display: "Footer")}</tw-passagedata><tw-passagedata pid="10" name="Handicap" tags="" position="100,675" size="100,100"># Je suis en situation de handicap.
{(set: $crisis to $crisis + 30)(set: $communication to $communication + 20)
L'inclusion est au cœur de notre action, toutes les informations pour rejoindre le ministère en tant que personne en situation de handicap sont <a href="https://www.diplomatie.gouv.fr/fr/emplois-stages-concours/personnes-en-situation-de-handicap/" target="_blank">ici</a>.
(display: "Final")(display: "Footer")}
</tw-passagedata><tw-passagedata pid="11" name="Culture" tags="" position="925,850" size="100,100"># Je veux travailler dans la culture !
{(set: $leadership to $leadership + 10)(set: $negociation to $negociation + 20)(set: $communication to $communication +10)(set: $languages to $languages + 10)
Avec (link-repeat: "98 instituts français")[(open-url: "https://www.institutfrancais.com/fr")], (link-repeat: "130 services de coopération et d'action culturelle")[(open-url: "https://www.diplomatie.gouv.fr/fr/le-ministere-et-son-reseau/les-metiers-de-la-diplomatie/un-reseau-diplomatique-essentiel-a-la-politique-etrangere-de-la-france/le-reseau-de-cooperation-et-d-action-culturelle-et-ses-metiers/")] et (link-repeat: "803 alliances françaises")[(open-url: "https://www.fondation-alliancefr.org/")], il y a forcément une opportunité pour vous au service du rayonnement international de la culture française.
(display: "Final")(display: "Footer")}</tw-passagedata><tw-passagedata pid="12" name="Diplo" tags="" position="975,650" size="100,100"># Mes amis disent que je m'enflamme, je suis peut-être pas très diplo !
{(set: $leadership to $leadership + 30)(set: $crisis to $crisis + 10)(set: $negociation to $negociation + 20)
On a besoin de votre énergie pour répondre aux (link-repeat: "enjeux globaux")[(open-url: "https://www.diplomatie.gouv.fr/fr/politique-etrangere-de-la-france/")] : diplomatie féministe, diplomatie arc-en-ciel, santé, climat, nutrition, culture...
(display: "Final")(display: "Footer")}
</tw-passagedata><tw-passagedata pid="13" name="Fonctionnaire" tags="" position="1125,650" size="100,100"># Fonctionnaire, bof, je ne veux pas faire le même métier toute ma vie !
{(set: $leadership to $leadership + 40)(set: $communication to $communication + 20)
Un agent du MEAE peut exercer de nombreux métiers au cours de sa carrière. Il n'y a pas de monotonie, les agents du ministère sont encouragés à changer de poste régulièrement, en <a href="https://www.diplomatie.gouv.fr/fr/emplois-stages-concours/postes-a-pourvoir-france/" target="_blank">France</a> comme <a href="https://emplois.diplomatie.gouv.fr/" target="_blank">à l'étranger !</a>
(display: "Final")(display: "Footer")}</tw-passagedata><tw-passagedata pid="14" name="Etranger" tags="" position="1275,625" size="100,100"># Je ne me vois pas passer ma vie à l'étranger !
{(set: $leadership to $leadership + 20)(set: $negociation to $negociation + 20)(set: $communication to $communication +20)(set: $international to $international -10)
Pas de monotonie, les agents du ministère sont encouragés à changer de poste régulièrement, en France comme à l'étranger !
(display: "Final")(display: "Footer")}</tw-passagedata><tw-passagedata pid="15" name="Perspectives" tags="" position="1450,650" size="100,100"># J'ai d'autres perspectives professionnelles.
{(set: $negociation to $negociation + 20)
Lesquelles ? C'est peut-être compatible !
<div class="option-box">[[Moi, c'est la cuisine qui m'intéresse !->Cuisine]]</div>
<div class="option-box">[[J'ai commencé des études de droit.->Droit]]</div>
<div class="option-box">[[Mon truc, c'est les réseaux sociaux !->Reseaux]]</div>
<div class="option-box">[[Je suis plutôt portée sur
l'administration, les RH, la comptabilité...->Administration]]</div>
<div class="option-box">[[Je veux travailler dans la culture !->Culture]]</div>
<div class="option-box">[[Je suis passionnée par
l'évolution des technologies numériques et par l'IA.->Technologies]]</div>
<div class="option-box">[[Perso, je ne suis bien que dans les archives !->Archives]]</div>
(display: "Footer")}</tw-passagedata><tw-passagedata pid="16" name="Flemme" tags="" position="1625,625" size="100,100"># Honnêtement... flemme.
{(set: $leadership to $leadership -10)(set: $crisis to $crisis - 10)(set: $communication to $communication + 10)
Mais pourquoi ?
(display: "Final")(display: "Footer")}</tw-passagedata><tw-passagedata pid="17" name="Cuisine" tags="" position="1075,850" size="100,100"># Moi, c'est la cuisine qui m'intéresse !
{(set: $leadership to $leadership + 20)(set: $crisis to $crisis + 30)(set: $communication to $communication +10)
Ça tombe bien, la gastronomie est un formidable outil d'influence pour la diplomatie. Les intendants et les chefs des Ambassades jouent un rôle essentiel.
(display: "Final")(display: "Footer")}</tw-passagedata><tw-passagedata pid="18" name="Droit" tags="" position="1200,850" size="100,100"># J'ai commencé des études de droit.
{(set: $negotiation to $negotiation + 30)(set: $leadership to $leadership + 10)(set: $communication to $communication + 10)
Ça tombe bien : le MEAE détient le monopole de la barre devant les juridictions internationales : à la Haye, Bruxelles ou New York, venez plaider pour la France !
(display: "Final")(display: "Footer")}
</tw-passagedata><tw-passagedata pid="19" name="Reseaux" tags="" position="1600,850" size="100,100"># Mon truc, c'est les réseaux sociaux !
{(set: $leadership to $leadership + 10)(set: $negociation to $negociation + 10)(set: $communication to $communication +40)(set: $languages to $languages + 10)(set: $international to $international +20)
Créer, communiquer, lutter contre la désinformation : nous avons besoin de ces talents, en France et partout dans le monde !
(display: "Final")(display: "Footer")}</tw-passagedata><tw-passagedata pid="20" name="Administration" tags="" position="1725,850" size="100,100"># Je suis plutôt portée sur l'administration, les RH, la comptabilité...
{(set: $leadership to $leadership + 30)(set: $negociation to $negociation + 10)(set: $communication to $communication +10)(set: $crisis to $crisis - 10)
Ces compétences sont indispensables à la vie du Ministère en France et à l'étranger.
(display: "Final")(display: "Footer")}</tw-passagedata><tw-passagedata pid="21" name="Technologies" tags="" position="1350,850" size="100,100"># Je suis passionnée par l'évolution des technologies numériques et par l'IA.
{(set: $leadership to $leadership + 10)(set: $negociation to $negociation + 10)(set: $communication to $communication +10)(set: $languages to $languages + 20)
Justement, la Direction du numérique a besoin de nouveaux talents !
(display: "Final")(display: "Footer")}</tw-passagedata><tw-passagedata pid="22" name="Archives" tags="" position="1475,850" size="100,100"># Perso, je ne suis bien que dans les archives !
{(set: $leadership to $leadership + 30)(set: $international to $international + 30)(set: $communication to $communication +10)(set: $languages to $languages + 10)
Parfait, les archives diplomatiques n'attendent que vous !
(display: "Final")(display: "Footer")}</tw-passagedata><tw-passagedata pid="23" name="Final" tags="" position="625,100" size="100,100">{
(display: "SkillsChart")
</div>
<div class="cta"><a href="https://www.diplomatie.gouv.fr/fr/emplois-stages-concours/" target="_blank">ALORS REJOIGNEZ-NOUS !</a></div>
<p>En attendant, suivez nous sur les réseaux sociaux !</p>
<div class="back-link">(link-goto: "Continuer", "Start")(link: "Recommencer")[(restart:)]</div>
<!--<div class="back-link">(link-goto: "Retour", (history:)'s last)</div><div id="footer">
--><hr>
<p style="text-align: center; margin-top: 1em;" class="sharing-instruction">Partagez votre profil de compétences diplomatiques :</p>
<div class="social-links">
<a href="javascript:void(0)" onclick="shareChart()" title="Partager l'image"><i class="fa fa-share-alt"></i> <span class="button-text">Partager</span></a>
<a href="javascript:void(0)" onclick="exportChartAsImage()" title="Télécharger l'image"><i class="fa fa-download"></i> <span class="button-text">Télécharger</span></a>
<a href="https://twitter.com/francediplo" target="_blank" title="Twitter France Diplomatie"><i class="fa fa-twitter"></i> <span class="button-text">Twitter</span></a>
<a href="https://www.linkedin.com/company/ministere-des-affaires-etrangeres-francais/" target="_blank" title="LinkedIn MEAE"><i class="fa fa-linkedin"></i> <span class="button-text">LinkedIn</span></a>
</div><p class="small-text">Pour plus d'informations, visitez <a href="https://www.diplomatie.gouv.fr" target="_blank">diplomatie.gouv.fr</a>. © 2025 Ministère de l'Europe et des Affaires étrangères</p></div>
}
</tw-passagedata><tw-passagedata pid="24" name="Qualifie" tags="" position="600,900" size="100,100"># Je ne suis pas encore assez qualifié(e).
{(set: $negotiation to $negotiation + 10)(set: $communication to $communication + 20)(set: $international to $international + 20)
Difficile sans avoir fait d'études de sciences politiques ou de relations internationales.
Vous pourriez trouver votre place dans la (link-repeat: "Réserve diplomatique ")[(open-url: "https://www.diplomatie.gouv.fr/fr/le-ministere-et-son-reseau/l-academie-diplomatique-et-consulaire/la-reserve-diplomatique-citoyenne/article/lancement-du-1er-contingent-de-la-reserve-diplomatique-citoyenne-03-07-25")]!
(display: "Final")(display: "Footer")}
</tw-passagedata><tw-passagedata pid="25" name="Intrigue" tags="" position="750,900" size="100,100"># La diplomatie m'intrigue.
{(set: $negotiation to $negotiation + 30)(set: $communication to $communication + 30)(set: $international to $international + 10)
Il y a pleins de façons de découvrir nos (link-repeat: "missions")[(open-url: "https://www.decouvrirlemonde.jeunes.gouv.fr/les-affaires-etrangeres-un-monde-de-metiers-219")] : l’Académie diplomatique d’été, les stages, le volontariat international, l’alternance…
(display: "Final")(display: "Footer")}
</tw-passagedata><tw-passagedata pid="26" name="Footer" tags="" position="325,200" size="100,100"></tw-passagedata><tw-passagedata pid="27" name="Difficile" tags="" position="225,675" size="100,100"># Difficile sans avoir fait d'études de sciences politiques ou de relations internationales.
{(set: $negotiation to $negotiation + 10)(set: $communication to $communication + 20)(set: $international to $international + 20)
Au contraire, les métiers du MEAE sont marqués par une grande diversité et font appel à des talents aux compétences multiples et complémentaires.
(display: "Final")(display: "Footer")}
</tw-passagedata><tw-passagedata pid="28" name="SkillsChart" tags="" position="475,175" size="100,100"># Votre Profil Diplomatique
{
<!-- First, let's directly output variables for debugging -->
<div style="display:none">
Langues: (print: $languages)
Négociation: (print: $negotiation)
Communication: (print: $communication)
Géopolitique: (print: $international)
Crises: (print: $crisis)
Gestion: (print: $leadership)
</div>
<style>
/* Radar Chart Styles for Harlowe */
.radar-chart {
position: relative;
width: 300px;
height: 300px;
margin: 20px auto;
}
.radar-chart-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.radar-chart-level {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 1px solid rgba(39, 52, 117, 0.2);
border-radius: 50%;
transform: scale(var(--scale));
}
.radar-axis {
position: absolute;
top: 50%;
left: 50%;
width: 50%;
height: 1px;
background-color: rgba(39, 52, 117, 0.3);
transform-origin: left center;
transform: rotate(var(--rotation));
}
.radar-axis-label {
position: absolute;
font-size: 12px;
color: #273475;
font-weight: bold;
transform: translate(-50%, -50%);
text-align: center;
width: 80px;
}
.radar-chart-polygon {
position: relative; /* or remove if not needed */
z-index: 1; top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(34, 174, 134, 0.5);
clip-path: var(--clip-path);
border: 2px solid #22AE86;
}
.radar-point {
position: absolute;
width: 8px;
height: 8px;
background-color: #22AE86;
border-radius: 50%;
transform: translate(-50%, -50%);
}
.radar-tooltip {
position: absolute;
background-color: white;
padding: 5px;
border-radius: 4px;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
font-size: 12px;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
margin-bottom: 5px;
white-space: nowrap;
opacity: 0;
transition: opacity 0.3s;
pointer-events: none;
z-index: 10;
}
</style>
<div id="myChart">
<!-- Add hidden spans with the actual values that JavaScript can read -->
<span id="languages-value" style="display:none">(print: $languages)</span>
<span id="negotiation-value" style="display:none">(print: $negotiation)</span>
<span id="communication-value" style="display:none">(print: $communication)</span>
<span id="international-value" style="display:none">(print: $international)</span>
<span id="crisis-value" style="display:none">(print: $crisis)</span>
<span id="leadership-value" style="display:none">(print: $leadership)</span>
<div id="skillsRadarContainer"></div>
</div>
<script>
/**
* Simple Radar Chart for Twine/Harlowe
* This function creates a radar chart with the given skills data
*/
function createRadarChart(elementId, skillsData, options) {
// Default options
options = options || {};
var defaultOptions = {
levels: 5,
backgroundColor: 'rgba(201, 220, 243, 0.3)',
dataColor: 'rgba(34, 174, 134, 0.5)',
borderColor: '#22AE86',
labelColor: '#273475'
};
// Merge options (ES5 compatible)
var chartOptions = {};
for (var key in defaultOptions) {
chartOptions[key] = options[key] !== undefined ? options[key] : defaultOptions[key];
}
// Get the container
var container = document.getElementById(elementId);
if (!container) {
console.error('Element with ID "' + elementId + '" not found');
return;
}
// Create chart container
var chart = document.createElement('div');
chart.className = 'radar-chart';
container.appendChild(chart);
// Create background
var background = document.createElement('div');
background.className = 'radar-chart-background';
chart.appendChild(background);
// Create levels
for (var i = 1; i <= chartOptions.levels; i++) {
var level = document.createElement('div');
level.className = 'radar-chart-level';
level.style.setProperty('--scale', i / chartOptions.levels);
background.appendChild(level);
}
// Get skills and values
var skills = Object.keys(skillsData);
var values = [];
for (var j = 0; j < skills.length; j++) {
values.push(skillsData[skills[j]]);
}
var numSkills = skills.length;
// Create axes and labels
for (var k = 0; k < numSkills; k++) {
var rotation = (k * 360 / numSkills) + 'deg';
// Create axis
var axis = document.createElement('div');
axis.className = 'radar-axis';
axis.style.setProperty('--rotation', rotation);
background.appendChild(axis);
// Calculate label position
var radians = (k * 2 * Math.PI / numSkills);
var labelX = Math.cos(radians) * 50 + 50;
var labelY = Math.sin(radians) * 50 + 50;
// Create label
var label = document.createElement('div');
label.className = 'radar-axis-label';
label.textContent = skills[k];
label.style.top = labelY + '%';
label.style.left = labelX + '%';
// Adjust label position for better readability
if (labelX < 10) label.style.left = '0';
if (labelX > 90) label.style.left = '100%';
if (labelY < 10) label.style.top = '0';
if (labelY > 90) label.style.top = '100%';
background.appendChild(label);
}
// Create data points and calculate clip path
var clipPathPoints = [];
var dataPoints = [];
for (var m = 0; m < numSkills; m++) {
var value = values[m] / 100; // Normalize to 0-1
var radians = (m * 2 * Math.PI / numSkills);
// Calculate point position (from center)
var pointX = Math.cos(radians) * value * 50 + 50;
var pointY = Math.sin(radians) * value * 50 + 50;
// Add to clip path
clipPathPoints.push(pointX + "," + pointY);
// Store data point
dataPoints.push({
x: pointX,
y: pointY,
value: values[m],
skill: skills[m]
});
}
// Create data polygon
var clipPath = 'polygon(' + clipPathPoints.join(', ') + ')';
// Create SVG polygon instead of clipped div
var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
svg.setAttribute("width", "100%");
svg.setAttribute("height", "100%");
svg.setAttribute("viewBox", "0 0 100 100");
svg.style.position = "absolute";
svg.style.top = "0";
svg.style.left = "0";
svg.style.zIndex = "1";
var polygon = document.createElementNS("http://www.w3.org/2000/svg", "polygon");
polygon.setAttribute("points", clipPathPoints.join(" "));