-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
113 lines (100 loc) · 2.45 KB
/
index.html
File metadata and controls
113 lines (100 loc) · 2.45 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quiz CCP2 Mobile</title>
<style>
:root {
--primary: #2563eb;
--success: #22c55e;
--error: #ef4444;
--bg: #f8fafc;
--text: #1e293b;
}
body {
font-family: 'Segoe UI', system-ui, sans-serif;
margin: 0;
padding: 15px;
background: var(--bg);
color: var(--text);
display: flex;
flex-direction: column;
min-height: 100vh;
}
h1 {
font-size: 1.5rem;
text-align: center;
color: var(--primary);
margin-bottom: 10px;
}
/* Barre de progression */
#progress-container {
width: 100%;
height: 8px;
background: #e2e8f0;
border-radius: 10px;
margin-bottom: 20px;
overflow: hidden;
}
#progress-bar {
height: 100%;
background: var(--primary);
width: 0%;
transition: width 0.3s ease;
}
#question-container {
background: #fff;
padding: 20px;
border-radius: 16px;
box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
width: 100%;
max-width: 500px;
box-sizing: border-box;
margin: 0 auto;
}
h2 { font-size: 1.1rem; margin-top: 0; line-height: 1.4; }
.choice-btn {
display: block;
width: 100%;
margin: 12px 0;
padding: 16px; /* Plus grand pour le tactile */
border: 2px solid #e2e8f0;
border-radius: 12px;
cursor: pointer;
font-size: 15px;
text-align: left;
background: white;
transition: all 0.2s;
-webkit-tap-highlight-color: transparent;
}
.choice-btn:active { transform: scale(0.98); }
.correct { background-color: var(--success) !important; color: white; border-color: var(--success); }
.wrong { background-color: var(--error) !important; color: white; border-color: var(--error); }
#next-btn {
width: 100%;
margin-top: 15px;
padding: 16px;
border: none;
border-radius: 12px;
background-color: var(--primary);
color: white;
font-size: 16px;
font-weight: bold;
box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);
}
.score-final { text-align: center; font-size: 1.2rem; font-weight: bold; }
</style>
</head>
<body>
<h1>Quiz Sécurité</h1>
<div style="max-width: 500px; width: 100%; margin: 0 auto;">
<div id="progress-container">
<div id="progress-bar"></div>
</div>
</div>
<div id="question-container">
</div>
<script src="script.js"></script>
</body>
</html>