File size: 5,582 Bytes
6f523af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f482080
 
 
 
 
 
 
 
 
 
8417fa3
 
 
 
 
 
 
 
 
 
 
 
d296c7b
8417fa3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fc64c8b
 
 
 
 
 
 
 
 
8417fa3
 
 
 
fc64c8b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
:root {
  --accent-blue: #3B82F6;
  --accent-indigo: #6366F1;
  --light-bg: #FFFFFF;
  --soft-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
#root, .gradio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gradio-container {
  max-width: 960px;
  min-width: 960px; 
  margin: 0 auto !important;
  padding: 1.5rem;
}
body {
  background: #F4F6F8;
  display: flex;
  justify-content: center;
}
@media (max-width: 768px) {
  .gradio-container {
    max-width: 95%;
    padding: 0.5rem;
  }
  .gr-button {
    width: 100%;
  }
}
.gr-block {
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.gr-button {
  background: var(--accent-blue);
  border-radius: 10px;
  box-shadow: var(--soft-shadow);
  transition: all 0.25s ease;
  font-weight: 600;
  text-transform: uppercase;
}
.gr-button:hover {
  background: var(--accent-indigo);
  transform: translateY(-2px);
}
.gr-block {
  background: var(--light-bg);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
  padding: 12px;
}
.gr-markdown h2 {
  color: #1E3A8A;
  font-weight: 700;
}
.gr-radio, .gr-dropdown, .gr-number, .gr-checkbox {
  max-width: 320px;
  margin: 0.5rem auto;
}
.gr-textbox {
  max-width: 600px;
  margin: 1rem auto;
}
.gr-button {
  max-width: 250px;
  margin: 1rem auto;
  display: block;
}
/* ==== Custom style for examples section ==== */
/* === Clean style for audio examples === */
.gr-examples {
  background: #FFFFFF !important;           /* fond blanc */
  border: 1px solid #E5E7EB !important;     /* bordure légère */
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  padding: 0.5rem 1rem !important;
}

.gr-examples .example {
  background: #FAFAFA !important;           /* gris ultra clair */
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  color: #1F2937 !important;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.gr-examples .example:hover {
  background: #EFF6FF !important;           /* bleu très clair au survol */
  border-color: #3B82F6 !important;
  transform: translateY(-1px);
  cursor: pointer;
}

.gr-examples-label {
  font-weight: 600;
  color: #1E3A8A;
  margin-bottom: 0.5rem;
  background: transparent !important;
  border: none !important;
}

/* supprime le fond gris hérité sur le conteneur interne */
.gr-panel {
  background: transparent !important;
  border: none !important;
}
/* === Smooth step transition animation === */
[data-testid="block"] {
  opacity: 0;
  ransform: translateY(10px) scale(0.98);;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Step visible (Gradio auto-class) */
[data-testid="block"].svelte-drum21, 
[data-testid="block"]:not([style*="display: none"]) {
  opacity: 1 !important;
  ransform: translateY(10px) scale(0.98); !important;
}

/* Smooth transitions when changing steps */
.gr-walkthrough > div {
  transition: all 0.4s ease-in-out;
}

/* Optional: soft highlight on current step */
.gr-step-header[data-selected="true"] {
  background: #EFF6FF !important;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(59,130,246,0.3);
}


#status-message-stream {
  background-color: #FFF5F5;
  border: 1px solid #DC2626;
  border-radius: 6px;
  padding: 0.75rem;
  color: #991B1B;
  font-weight: 500;
}

#status-message-task {
    padding: 0.75rem;
    border-radius: 8px; /* Coins arrondis */
    margin-top: 10px;
    font-weight: 500; /* Un peu plus gras que la normale */
    border: 1px solid transparent;
    display: none; /* Caché par défaut */
}

/* Le style .info (bleu) */
#status-message-task.info,#status-message-task.success,#status-message-task.done{
    color: #0c5464; /* Texte bleu foncé */
    background-color: #d1ecf1; /* Fond bleu clair */
    border-color: #bee5eb; /* Bordure bleue */
    display: block; /* Le rend visible */
}

/* Le style .warning (jaune/orange) */
#status-message-task.warning {
    color: #856404; /* Texte ocre */
    background-color: #fff3cd; /* Fond jaune clair */
    border-color: #ffeeba; /* Bordure jaune */
    display: block; /* Le rend visible */
}

/* Le style .error (rouge) */
#status-message-task.error {
    color: #721c24; /* Texte rouge foncé */
    background-color: #f8d7da; /* Fond rouge clair */
    border-color: #f5c6cb; /* Bordure rouge */
    display: block; /* Le rend visible */
}

/* #live-stream {
    position: relative;
    display: flex;
    min-height: 100px;
    max-height: 128px;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
} */

#task-output-box textarea {
    font-size: 1.15em; /* 'Moyenne taille' - ajustez au besoin */
    font-weight: bold;  /* 'En gras' */
}

.gradio-webrtc-waveContainer {
  background-color :white

}

  /* --- 4. L'Icône Centrale (Style Bouton) --- */
  .gradio-webrtc-icon-container {
    position: relative;
    width: 128px;
    height: 128px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .gradio-webrtc-icon {
    position: relative;
    width: 64px; 
    height: 64px;
    border-radius: 0.5rem; /* Carré arrondi comme les boutons de l'exemple */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    
    /* Style Bouton Plein (Solid) */
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
  }

  /* Effet Hover */
  .gradio-webrtc-icon:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }