-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
704 lines (636 loc) · 30.5 KB
/
Copy pathindex.html
File metadata and controls
704 lines (636 loc) · 30.5 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rayen Dahmoul - Portfolio</title>
<style>
:root {
--bg-color: #0a0a0a;
--text-color: #4af626;
--dim-text: #278115;
--highlight-bg: #113311;
--font-stack: 'Courier New', Courier, monospace;
}
body {
background-color: var(--bg-color);
color: var(--text-color);
font-family: var(--font-stack);
margin: 0;
padding: 0;
min-height: 100vh;
box-sizing: border-box;
}
.hidden { display: none !important; }
/* ================= BOUTON TOGGLE FIXE ================= */
#view-toggle {
position: fixed;
top: 14px;
right: 20px;
z-index: 10000;
background: #1f6feb;
color: #ffffff;
border: 1px solid rgba(255, 255, 255, 0.3);
padding: 8px 16px;
border-radius: 20px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: 13px;
font-weight: 600;
cursor: pointer;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
transition: all 0.2s ease;
}
#view-toggle:hover {
background: #388bfd;
transform: translateY(-2px);
}
/* ================= VUE 1 : TERMINAL CLI ================= */
#cli-view {
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
min-height: 100vh;
}
#boot-screen {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: #000;
color: var(--text-color);
z-index: 9999;
padding: 20px;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: flex-end;
font-size: 0.9rem;
white-space: pre-wrap;
}
.terminal-container {
width: 100%;
max-width: 850px;
border: 2px solid var(--text-color);
padding: 20px;
box-shadow: 0 0 15px rgba(74, 246, 38, 0.2);
background: #000;
margin-top: 25px;
}
header, footer { white-space: pre-wrap; margin-bottom: 20px; line-height: 1.3; }
.instructions { color: #fff; margin: 15px 0; font-size: 0.9rem; text-transform: uppercase; }
.menu-list { list-style: none; padding: 0; margin: 25px 0; }
.menu-item { padding: 10px; cursor: pointer; display: flex; align-items: center; transition: background 0.1s; user-select: none; }
.menu-item:hover, .menu-item.active { background-color: var(--highlight-bg); color: #fff; }
.menu-item::before { content: " "; white-space: pre; }
.menu-item.active::before { content: "--> "; }
.content-display { margin-top: 25px; border-top: 1px dashed var(--dim-text); padding-top: 20px; min-height: 150px; line-height: 1.5; }
#cli-view a { color: var(--text-color); text-decoration: underline; }
#cli-view a:hover { background-color: var(--text-color); color: #000; text-decoration: none; }
.badge-card {
display: flex;
align-items: center;
gap: 16px;
margin-top: 15px;
padding: 10px;
border: 1px dashed var(--dim-text);
background: rgba(17, 51, 17, 0.15);
}
.badge-card img {
width: 65px;
height: 65px;
object-fit: contain;
border-radius: 4px;
border: 1px solid var(--dim-text);
background: #051005;
}
.badge-card .badge-icon-cli {
font-size: 2rem;
width: 65px;
text-align: center;
}
/* ================= VUE 2 : GUI MODERNE / RH ================= */
#gui-view {
background-color: #0d1117;
color: #c9d1d9;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.6;
min-height: 100vh;
}
/* Barre de navigation : Logo à gauche, Catégories bien centrées, Espace pour le bouton */
.gui-nav {
display: grid;
grid-template-columns: 220px 1fr 220px;
align-items: center;
padding: 16px 30px;
background: rgba(13, 17, 23, 0.95);
backdrop-filter: blur(10px);
position: sticky;
top: 0;
border-bottom: 1px solid #30363d;
z-index: 1000;
}
.gui-logo { font-size: 1.15rem; font-weight: 700; color: #f0f6fc; }
.gui-logo span { color: #58a6ff; }
.gui-nav nav {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: 30px;
}
.gui-nav nav a {
color: #8b949e;
text-decoration: none;
font-size: 0.92rem;
font-weight: 500;
transition: color 0.2s;
}
.gui-nav nav a:hover { color: #58a6ff; }
.gui-content {
max-width: 900px;
margin: 0 auto;
padding: 40px 20px 80px;
}
.gui-hero { padding: 40px 0 50px; }
.status-pill {
display: inline-block;
background: rgba(46, 160, 67, 0.15);
color: #3fb950;
border: 1px solid rgba(46, 160, 67, 0.4);
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
margin-bottom: 16px;
}
.gui-hero h1 { font-size: 2.5rem; color: #f0f6fc; margin: 0 0 10px; }
.gui-hero h2 { font-size: 1.25rem; color: #58a6ff; font-weight: 500; margin: 0 0 20px; }
.gui-hero p { font-size: 1.05rem; color: #8b949e; margin-bottom: 30px; }
.gui-btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-modern {
padding: 10px 18px;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
text-decoration: none;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn-green { background: #238636; color: #fff; border: 1px solid rgba(255,255,255,0.1); }
.btn-green:hover { background: #2ea043; }
.btn-dark { background: #21262d; color: #c9d1d9; border: 1px solid #30363d; }
.btn-dark:hover { background: #30363d; }
.gui-section {
padding: 40px 0;
border-top: 1px solid #21262d;
}
.gui-section h3 { font-size: 1.5rem; color: #f0f6fc; margin-bottom: 24px; }
.grid-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
gap: 20px;
}
.gui-card {
background: #161b22;
border: 1px solid #30363d;
border-radius: 8px;
padding: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.gui-card h4 { margin: 0 0 10px; color: #f0f6fc; font-size: 1.1rem; }
.gui-card p { margin: 0; font-size: 0.9rem; color: #8b949e; flex-grow: 1; }
.tag {
font-size: 11px;
color: #58a6ff;
text-transform: uppercase;
font-weight: bold;
margin-bottom: 6px;
}
.pill-container { margin-top: 14px; }
.pill {
display: inline-block;
background: #21262d;
color: #58a6ff;
border: 1px solid #30363d;
padding: 3px 9px;
border-radius: 12px;
font-size: 11px;
margin-top: 4px;
margin-right: 4px;
}
/* Cartes de certification */
.cert-card-horizontal {
display: flex;
align-items: center;
gap: 20px;
background: #161b22;
border: 1px solid #30363d;
border-left: 4px solid #3fb950;
border-radius: 0 8px 8px 0;
padding: 16px 20px;
margin-bottom: 16px;
}
.cert-badge-img {
width: 70px;
height: 70px;
object-fit: contain;
background: #0d1117;
border: 1px solid #30363d;
border-radius: 8px;
padding: 4px;
flex-shrink: 0;
}
.cert-details { flex: 1; }
.cert-details h4 { margin: 0 0 4px; color: #f0f6fc; font-size: 1.05rem; }
.cert-details p { margin: 0 0 8px; font-size: 0.88rem; color: #8b949e; }
.cert-links a {
color: #58a6ff;
text-decoration: none;
font-size: 0.88rem;
font-weight: 500;
margin-right: 15px;
}
.cert-links a:hover { text-decoration: underline; }
footer.gui-footer {
text-align: center;
padding: 35px;
border-top: 1px solid #21262d;
color: #484f58;
font-size: 0.85rem;
}
@media (max-width: 900px) {
.gui-nav { grid-template-columns: 1fr; gap: 15px; padding: 15px 20px; }
.gui-nav nav { justify-content: flex-start; flex-wrap: wrap; gap: 15px; }
#view-toggle { top: 12px; right: 12px; padding: 6px 12px; font-size: 11px; }
.cert-card-horizontal { flex-direction: column; align-items: flex-start; }
}
</style>
</head>
<body>
<!-- BOUTON D'INTERRUPTEUR FIXE -->
<button id="view-toggle" onclick="toggleView()">
<span id="toggle-icon">👔</span> <span id="toggle-text">Mode Standard / RH</span>
</button>
<!-- ========================================== -->
<!-- 1. VUE TERMINAL (CLI) -->
<!-- ========================================== -->
<div id="cli-view">
<div id="boot-screen"></div>
<div class="terminal-container hidden" id="main-ui">
<header>======================================================================
RAYEN DAHMOUL - SYSTEM BOOT MENU
======================================================================</header>
<div class="instructions">
[ Use Up/Down arrows + Enter, or simply CLICK an option ]
</div>
<ul class="menu-list" id="menu">
<li class="menu-item active" data-target="profile">1. BOOT_CORE_PROFILE ........ [Summary & Languages]</li>
<li class="menu-item" data-target="cyber">2. RUN_CYBER_AUDITS ......... [Offensive Sec & Bugs]</li>
<li class="menu-item" data-target="projects">3. LOAD_REPOSITORIES ........ [Web, Systems, Python]</li>
<li class="menu-item" data-target="certificates">4. DOWNLOAD_CERTIFICATES .... [Certifications & Badges]</li>
<li class="menu-item" data-target="resume">5. EXPORT_RESUME ............ [Download PDF Document]</li>
</ul>
<footer>======================================================================
STATUS: READY // PERMISSION: GUEST_USER // LOC: AIX-EN-PROVENCE
======================================================================</footer>
<div id="content-area" class="content-display"></div>
</div>
</div>
<!-- ========================================== -->
<!-- 2. VUE GRAPHIQUE MODERNE (POUR LES RH) -->
<!-- ========================================== -->
<div id="gui-view" class="hidden">
<header class="gui-nav">
<div class="gui-logo">Rayen Dahmoul<span>_</span></div>
<nav>
<a href="#about">Profil</a>
<a href="#skills">Compétences</a>
<a href="#projects">Projets</a>
<a href="#certifications">Certifications</a>
<a href="#contact">Contact</a>
</nav>
<div><!-- Espace équilibré pour le centrage parfait --></div>
</header>
<div class="gui-content">
<section id="about" class="gui-hero">
<div class="status-pill">🟢 Recherche active d'alternance · Aix-Marseille & Télétravail</div>
<h1>Rayen Dahmoul</h1>
<h2>Étudiant en Informatique & Sécurité Opérationnelle @ ESGI</h2>
<p>
Passionné par le développement back-end, l'architecture système, l'automatisation en Python et les réseaux. Autonome et rigoureux, je recherche une alternance pour mettre mes compétences en support, déploiement, bases de données et gestion d'infrastructures au service d'une équipe technique.
</p>
<div class="gui-btn-group">
<a href="cv_rayen_dahmoul.pdf" download class="btn-modern btn-green">📥 Télécharger mon CV (PDF)</a>
<a href="https://github.com/astroryan2006" target="_blank" class="btn-modern btn-dark">Profil GitHub</a>
<a href="https://www.linkedin.com/in/rayen-dahmoul-89b795297" target="_blank" class="btn-modern btn-dark">LinkedIn</a>
</div>
</section>
<!-- Section Compétences enrichie -->
<section id="skills" class="gui-section">
<h3>Compétences Techniques & Langages</h3>
<div class="grid-cards">
<div class="gui-card">
<h4>💻 Langages de Programmation</h4>
<p>Développement back-end, scripts et programmation bas niveau :</p>
<div class="pill-container">
<span class="pill">Python</span>
<span class="pill">C / C++</span>
<span class="pill">Bash / Shell</span>
<span class="pill">SQL</span>
<span class="pill">JavaScript</span>
<span class="pill">HTML5 / CSS3</span>
</div>
</div>
<div class="gui-card">
<h4>⚙️ Systèmes, Web & BDD</h4>
<p>Framework Flask, SQLAlchemy, migrations Alembic, bases PostgreSQL et Supabase. Nginx (proxy inverse) et serveurs Linux (Debian, Ubuntu).</p>
<div class="pill-container">
<span class="pill">Flask</span>
<span class="pill">PostgreSQL</span>
<span class="pill">Supabase</span>
<span class="pill">Nginx</span>
</div>
</div>
<div class="gui-card">
<h4>🌐 Réseaux & Services</h4>
<p>Protocoles TCP/IP, DNS, DHCP, gestion d'API tierces (Brevo, OpenWeatherMap, Pinata/IPFS) et analyse de flux réseau.</p>
<div class="pill-container">
<span class="pill">API REST</span>
<span class="pill">Brevo</span>
<span class="pill">Wireshark</span>
</div>
</div>
<div class="gui-card">
<h4>🛡️ Cybersécurité & Audits</h4>
<p>Tests de sécurité web/API (OWASP Top 10), pratique Bug Bounty sur YesWeHack, gestion des secrets (.env) et durcissement système.</p>
<div class="pill-container">
<span class="pill">YesWeHack</span>
<span class="pill">OWASP</span>
<span class="pill">Hardening</span>
</div>
</div>
</div>
</section>
<!-- Section Projets réels -->
<section id="projects" class="gui-section">
<h3>Projets & Réalisations</h3>
<div class="grid-cards">
<div class="gui-card">
<div>
<div class="tag">Projet École · Validé Direction</div>
<h4>Campus Request (Skolae)</h4>
<p>Plateforme centralisée de gestion de requêtes et signalements pour le campus d'Aix. Système d'authentification complet, gestion des droits administratifs, intégration BDD PostgreSQL, migrations Alembic et routage d'emails transactionnels via Brevo.</p>
</div>
<div class="pill-container">
<span class="pill">Python 3.13</span>
<span class="pill">Flask</span>
<span class="pill">PostgreSQL</span>
<span class="pill">Brevo</span>
</div>
</div>
<div class="gui-card">
<div>
<div class="tag">Projet Web & API</div>
<h4>Météorite</h4>
<p>Application web météo en temps réel connectée à une API externe. Authentification et gestion des comptes utilisateurs via Supabase, et envoi automatisé d'alertes météo programmées par e-mail.</p>
</div>
<div class="pill-container">
<span class="pill">JavaScript</span>
<span class="pill">Supabase</span>
<span class="pill">API REST</span>
<span class="pill">Vercel</span>
</div>
</div>
<div class="gui-card">
<div>
<div class="tag">Réseau & Web Décentralisé</div>
<h4>REDGRAM</h4>
<p>Réseau social décentralisé conçu avec architecture proxy inverse sous Nginx et distribution décentralisée des contenus via IPFS et la passerelle Pinata.</p>
</div>
<div class="pill-container">
<span class="pill">Nginx</span>
<span class="pill">Pinata / IPFS</span>
<span class="pill">P2P</span>
</div>
</div>
<div class="gui-card">
<div>
<div class="tag">Simulation & Cybernétique</div>
<h4>metahuman-matrix</h4>
<p>Simulation bio-mécanique d'homéostasie en boucle fermée concurrente. Intègre régulation PID hydraulique et modélisation métabolique complexe.</p>
</div>
<div class="pill-container">
<span class="pill">Python</span>
<span class="pill">PID Control</span>
<span class="pill">Simulation</span>
</div>
</div>
<div class="gui-card">
<div>
<div class="tag">IA & Vision par Ordinateur</div>
<h4>PosturePolice</h4>
<p>Daemon d'arrière-plan analysant en temps réel la posture assise via flux vidéo pour alerter en cas de mauvaise ergonomie au poste de travail.</p>
</div>
<div class="pill-container">
<span class="pill">Python</span>
<span class="pill">Computer Vision</span>
<span class="pill">Daemon</span>
</div>
</div>
<div class="gui-card">
<div>
<div class="tag">Interface Système</div>
<h4>Portfolio Rétro CLI & GUI</h4>
<p>Double interface interactive : émulateur de terminal rétro en JS natif (séquence de boot, buffer clavier) et bascule dynamique vers une vue standard pour recruteurs.</p>
</div>
<div class="pill-container">
<span class="pill">JavaScript</span>
<span class="pill">UX Design</span>
<span class="pill">GitHub Pages</span>
</div>
</div>
</div>
</section>
<!-- Section Certifications (EF SET sans badge externe) -->
<section id="certifications" class="gui-section">
<h3>Certifications Reconnues</h3>
<div class="cert-card-horizontal">
<img src="Badges/python-essentials-1.1.png" alt="Python Badge" class="cert-badge-img" onerror="this.src='https://images.credly.com/size/340x340/images/223706e8-23ea-44a6-8e50-252f8be00f91/Python_Essentials_1.png'">
<div class="cert-details">
<h4>Cisco Networking Academy : Python Essentials 1</h4>
<p>Algorithmique avancée, structures de données, programmation orientée objet (POO) et modules.</p>
<div class="cert-links">
<a href="Certificates/PythonEssentials1_rayen-dahmoul.pdf" download>📥 Télécharger le Certificat (PDF)</a>
</div>
</div>
</div>
<div class="cert-card-horizontal">
<img src="Badges/linux-unhatched.png" alt="Linux Badge" class="cert-badge-img" onerror="this.src='https://images.credly.com/size/340x340/images/3a95a639-5e9a-40a2-a8c4-e8aa65ee5ebc/LinuxUnhatched.png'">
<div class="cert-details">
<h4>Cisco & NDG : Linux Unhatched</h4>
<p>Administration système Linux, manipulation du shell Bash, gestion des droits et arborescence.</p>
<div class="cert-links">
<a href="Certificates/Linux_Unhatched_certificate_rayen-dahmoul.pdf" download>📥 Télécharger le Certificat (PDF)</a>
</div>
</div>
</div>
<!-- EF SET : Pas de badge, affichage sobre et direct -->
<div class="cert-card-horizontal">
<div class="cert-details" style="padding-left: 5px;">
<h4>🎓 EF SET English Certificate : C1 Advanced (Score : 67/100)</h4>
<p>Aptitude professionnelle complète à travailler, documenter et échanger en environnement international.</p>
<div class="cert-links">
<a href="https://cert.efset.org/WMbdrh" target="_blank">🔗 Vérifier sur EF SET</a>
<a href="Certificates/EF_SET_Certificate.pdf" download>📥 Télécharger l'attestation (PDF)</a>
</div>
</div>
</div>
</section>
<section id="contact" class="gui-section" style="text-align: center;">
<h3>Prenons Contact</h3>
<p>Disponible immédiatement pour un entretien dans le cadre d'une alternance ou d'un contrat technique.</p>
<div class="gui-btn-group" style="justify-content: center; margin-top: 20px;">
<a href="mailto:rayen.dahmoul@protonmail.com" class="btn-modern btn-green">✉️ Me contacter par e-mail</a>
<a href="tel:+33641041339" class="btn-modern btn-dark">📞 06 41 04 13 39</a>
</div>
</section>
</div>
<footer class="gui-footer">
© 2026 Rayen Dahmoul · Hébergé sur GitHub Pages
</footer>
</div>
<!-- ========================================== -->
<!-- SCRIPTS LOGIQUE TERMINAL & TOGGLE -->
<!-- ========================================== -->
<script>
// === 1. FONCTION DE BASCULE CLI / GUI ===
function toggleView() {
const cliView = document.getElementById('cli-view');
const guiView = document.getElementById('gui-view');
const toggleIcon = document.getElementById('toggle-icon');
const toggleText = document.getElementById('toggle-text');
if (cliView.classList.contains('hidden')) {
cliView.classList.remove('hidden');
guiView.classList.add('hidden');
document.body.style.backgroundColor = 'var(--bg-color)';
toggleIcon.textContent = "👔";
toggleText.textContent = "Mode Standard / RH";
} else {
cliView.classList.add('hidden');
guiView.classList.remove('hidden');
document.body.style.backgroundColor = '#0d1117';
toggleIcon.textContent = ">_";
toggleText.textContent = "Mode Terminal (CLI)";
}
}
// === 2. BOOT SEQUENCE TERMINAL (AUTONOME & INSTANTANÉE) ===
const bootLogs = [
"INIT SYSLOG...",
"LOADING KERNEL MODULES... [OK]",
"MOUNTING ENCRYPTED VOLUMES... [OK]",
"ESTABLISHING SECURE CONNECTION...",
"VERIFYING RSA KEYS... [DONE]",
"BYPASSING MAINFRAME AUTHORIZATION... [SUCCESS]",
"INITIALIZING RAYEN_OS GUI..."
];
const bootScreen = document.getElementById('boot-screen');
const mainUI = document.getElementById('main-ui');
async function runBootSequence() {
if (!bootScreen || !mainUI) return;
for (let i = 0; i < bootLogs.length; i++) {
const line = document.createElement('div');
line.textContent = bootLogs[i];
bootScreen.appendChild(line);
const delay = Math.floor(Math.random() * 200) + 80;
await new Promise(resolve => setTimeout(resolve, delay));
}
await new Promise(resolve => setTimeout(resolve, 300));
bootScreen.classList.add('hidden');
mainUI.classList.remove('hidden');
}
// Démarrage dès que le DOM est prêt (évite l'écran noir)
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', runBootSequence);
} else {
runBootSequence();
}
// === 3. MENU CLI DATA ===
const data = {
profile: `<strong>[PROFIL]</strong><br>Étudiant en informatique passionné par la cybersécurité et les systèmes critiques. Autodidacte et curieux, j'ai développé une pratique approfondie en Python, Flask, PostgreSQL et architectures systèmes, me permettant de concevoir des solutions fiables et d'analyser des failles de sécurité.<br><br>Je recherche une alternance pour mettre mes compétences en développement, exploitation et administration au service de projets concrets.<br><br><strong>[LANGUES]</strong><br>• Français: C2 // Anglais: C1 (Certifié EF SET) // Arabe: Maternelle`,
cyber: `<strong>[SÉCURITÉ OFFENSIVE]</strong><br>• Tests d'intrusion (Web/API) & Reconnaissance OSINT.<br>• Identification de vulnérabilités critiques (OAuth2, Fuites de secrets .env).<br>• Profil actif sur plateformes de Bug Bounty (<a href="https://yeswehack.com/hunters/astroryan2006" target="_blank">YesWeHack</a>).`,
projects: `<strong>[PROJETS & ARCHITECTURES CLÉS]</strong><br><br>
• <strong>CAMPUS REQUEST (Skolae Aix) :</strong> Application web complète présentée à la direction pédagogique. Stack : Flask, Python 3.13, PostgreSQL, migrations Alembic, Brevo API.<br><br>
• <strong>MÉTÉORITE :</strong> Web app météo en direct avec comptes utilisateurs Supabase et alertes e-mail automatiques.<br><br>
• <strong>REDGRAM :</strong> Réseau social décentralisé avec reverse proxy Nginx et distribution IPFS / Pinata.<br><br>
• <strong>METAHUMAN-MATRIX :</strong> Simulation d'homéostasie bio-mécanique en Python avec régulation PID.<br><br>
• <strong>POSTUREPOLICE :</strong> Daemon d'analyse posturale par vision par ordinateur en temps réel.`,
certificates: `<strong>[CERTIFICATIONS & ACCRÉDITATIONS]</strong>
<div class="badge-card">
<img src="Badges/python-essentials-1.1.png" alt="Python Badge" onerror="this.src='https://images.credly.com/size/340x340/images/223706e8-23ea-44a6-8e50-252f8be00f91/Python_Essentials_1.png'">
<div>
<strong>• Cisco Networking Academy : Python Essentials 1</strong><br>
<span>Accès : </span>
<a href="Certificates/PythonEssentials1_rayen-dahmoul.pdf" download>[Télécharger le Certificat PDF]</a>
</div>
</div>
<div class="badge-card">
<img src="Badges/linux-unhatched.png" alt="Linux Badge" onerror="this.src='https://images.credly.com/size/340x340/images/3a95a639-5e9a-40a2-a8c4-e8aa65ee5ebc/LinuxUnhatched.png'">
<div>
<strong>• Cisco & NDG : Linux Unhatched</strong><br>
<span>Accès : </span>
<a href="Certificates/Linux_Unhatched_certificate_rayen-dahmoul.pdf" download>[Télécharger le Certificat PDF]</a>
</div>
</div>
<div class="badge-card">
<div class="badge-icon-cli">🎓</div>
<div>
<strong>• EF SET English Certificate : C1 Advanced (67/100)</strong><br>
<span>Accès : </span>
<a href="https://cert.efset.org/WMbdrh" target="_blank">[Consulter l'attestation en ligne]</a>
//
<a href="Certificates/EF_SET_Certificate.pdf" download>[Télécharger PDF]</a>
</div>
</div>`,
resume: `<strong>[TÉLÉCHARGEMENT]</strong><br><br><a href="cv_rayen_dahmoul.pdf" download>Cliquez ici pour télécharger "cv_rayen_dahmoul.pdf"</a>`
};
const menu = document.getElementById('menu');
const items = document.querySelectorAll('.menu-item');
const contentArea = document.getElementById('content-area');
let currentIndex = 0;
function updateDisplay(index) {
items.forEach((item, i) => {
item.classList.toggle('active', i === index);
});
const target = items[index].getAttribute('data-target');
contentArea.innerHTML = data[target];
currentIndex = index;
}
updateDisplay(0);
items.forEach((item, index) => {
item.addEventListener('click', () => updateDisplay(index));
});
window.addEventListener('keydown', (e) => {
if (e.key === 'ArrowDown') {
e.preventDefault();
let next = (currentIndex + 1) % items.length;
updateDisplay(next);
} else if (e.key === 'ArrowUp') {
e.preventDefault();
let prev = (currentIndex - 1 + items.length) % items.length;
updateDisplay(prev);
} else if (e.key === 'Enter') {
e.preventDefault();
const currentTarget = items[currentIndex].getAttribute('data-target');
if (currentTarget === 'resume') {
const link = contentArea.querySelector('a');
if (link) link.click();
}
}
});
</script>
</body>
</html>