Spaces:
Sleeping
Sleeping
Update static/styles.css
Browse files- static/styles.css +75 -70
static/styles.css
CHANGED
|
@@ -1,37 +1,45 @@
|
|
| 1 |
body {
|
| 2 |
-
background:
|
|
|
|
| 3 |
font-family: 'Arial', sans-serif;
|
| 4 |
-
color: #333333; /* Texte noir pour contraste */
|
| 5 |
overflow-x: hidden;
|
| 6 |
}
|
| 7 |
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
.cosmic-gradient {
|
| 11 |
-
background: linear-gradient(45deg, #
|
| 12 |
-webkit-background-clip: text;
|
| 13 |
-webkit-text-fill-color: transparent;
|
| 14 |
}
|
| 15 |
|
| 16 |
.function-box {
|
| 17 |
-
background: rgba(
|
| 18 |
backdrop-filter: blur(10px);
|
| 19 |
border-radius: 25% 10% 40% 10% / 20% 40% 20% 40%;
|
| 20 |
padding: 30px;
|
| 21 |
cursor: pointer;
|
| 22 |
transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s, filter 0.3s;
|
| 23 |
min-height: 280px;
|
| 24 |
-
color: #333333; /* Texte noir pour lisibilité */
|
| 25 |
}
|
| 26 |
|
| 27 |
.function-box:hover {
|
| 28 |
transform: scale(1.05);
|
| 29 |
-
box-shadow: 0 0 20px rgba(
|
| 30 |
-
}
|
| 31 |
-
|
| 32 |
-
.function-box.active {
|
| 33 |
-
transform: scale(1.1); /* Agrandissement au clic */
|
| 34 |
-
box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
|
| 35 |
}
|
| 36 |
|
| 37 |
.function-box.shadowed {
|
|
@@ -46,7 +54,7 @@ body {
|
|
| 46 |
left: 0;
|
| 47 |
width: 100%;
|
| 48 |
height: 100%;
|
| 49 |
-
background: rgba(0, 0, 0, 0.
|
| 50 |
display: flex;
|
| 51 |
align-items: center;
|
| 52 |
justify-content: center;
|
|
@@ -54,28 +62,30 @@ body {
|
|
| 54 |
}
|
| 55 |
|
| 56 |
.modal-content {
|
| 57 |
-
background:
|
|
|
|
| 58 |
border-radius: 0;
|
| 59 |
padding: 30px;
|
| 60 |
width: 90%;
|
| 61 |
max-width: 700px;
|
| 62 |
position: relative;
|
| 63 |
animation: fadeIn 0.3s ease-in;
|
| 64 |
-
box-shadow: 0 0 20px rgba(
|
| 65 |
-
color: #333333; /* Texte noir */
|
| 66 |
}
|
| 67 |
|
| 68 |
.chatbot-modal {
|
|
|
|
|
|
|
| 69 |
display: flex;
|
| 70 |
flex-direction: column;
|
| 71 |
}
|
| 72 |
|
| 73 |
.chatbot-conversation {
|
| 74 |
-
max-height:
|
| 75 |
overflow-y: auto;
|
| 76 |
margin-bottom: 10px;
|
| 77 |
padding: 10px;
|
| 78 |
-
background: rgba(
|
| 79 |
border-radius: 25% 10% 40% 10% / 20% 40% 20% 40%;
|
| 80 |
}
|
| 81 |
|
|
@@ -85,12 +95,12 @@ body {
|
|
| 85 |
|
| 86 |
.chatbot-conversation .user-message {
|
| 87 |
text-align: right;
|
| 88 |
-
color: #
|
| 89 |
}
|
| 90 |
|
| 91 |
.chatbot-conversation .bot-message {
|
| 92 |
text-align: left;
|
| 93 |
-
color: #
|
| 94 |
}
|
| 95 |
|
| 96 |
@keyframes fadeIn {
|
|
@@ -104,79 +114,48 @@ body {
|
|
| 104 |
right: 15px;
|
| 105 |
font-size: 24px;
|
| 106 |
cursor: pointer;
|
| 107 |
-
color: #
|
| 108 |
}
|
| 109 |
|
| 110 |
.tab-btn {
|
| 111 |
flex: 1;
|
| 112 |
padding: 10px;
|
| 113 |
-
background: rgba(255, 255, 255, 0.
|
| 114 |
border: none;
|
| 115 |
-
color: #
|
| 116 |
cursor: pointer;
|
| 117 |
transition: background 0.3s;
|
| 118 |
}
|
| 119 |
|
| 120 |
.tab-btn.active {
|
| 121 |
-
background: rgba(255, 255, 255, 0.
|
| 122 |
}
|
| 123 |
|
| 124 |
.tab-btn:hover {
|
| 125 |
-
background: rgba(255, 255, 255, 0.
|
| 126 |
}
|
| 127 |
|
| 128 |
.cosmic-btn {
|
| 129 |
-
background: linear-gradient(45deg, #
|
| 130 |
-
color: #
|
| 131 |
padding: 10px 20px;
|
| 132 |
border: none;
|
| 133 |
border-radius: 8px;
|
| 134 |
cursor: pointer;
|
| 135 |
-
transition: transform 0.2s
|
| 136 |
}
|
| 137 |
|
| 138 |
-
.cosmic-btn:hover
|
| 139 |
transform: scale(1.05);
|
| 140 |
}
|
| 141 |
|
| 142 |
-
.cosmic-btn.loading {
|
| 143 |
-
opacity: 0.7;
|
| 144 |
-
cursor: not-allowed;
|
| 145 |
-
display: flex;
|
| 146 |
-
align-items: center;
|
| 147 |
-
justify-content: center;
|
| 148 |
-
}
|
| 149 |
-
|
| 150 |
-
.cosmic-btn.loading .spinner {
|
| 151 |
-
display: inline-block;
|
| 152 |
-
width: 16px;
|
| 153 |
-
height: 16px;
|
| 154 |
-
border: 2px solid #333333; /* Bordure noire pour contraste */
|
| 155 |
-
border-top-color: transparent;
|
| 156 |
-
border-radius: 50%;
|
| 157 |
-
animation: spin 1s linear infinite;
|
| 158 |
-
margin-right: 8px;
|
| 159 |
-
}
|
| 160 |
-
|
| 161 |
-
@keyframes spin {
|
| 162 |
-
to { transform: rotate(360deg); }
|
| 163 |
-
}
|
| 164 |
-
|
| 165 |
.response-card {
|
| 166 |
margin-top: 20px;
|
| 167 |
padding: 15px;
|
| 168 |
-
background: rgba(255, 255, 255, 0.
|
| 169 |
backdrop-filter: blur(10px);
|
| 170 |
border-radius: 25% 10% 40% 10% / 20% 40% 20% 40%;
|
| 171 |
-
color: #
|
| 172 |
-
}
|
| 173 |
-
|
| 174 |
-
.response-image {
|
| 175 |
-
max-width: 100%;
|
| 176 |
-
max-height: 300px;
|
| 177 |
-
object-fit: contain;
|
| 178 |
-
margin-bottom: 10px;
|
| 179 |
-
border-radius: 8px;
|
| 180 |
}
|
| 181 |
|
| 182 |
.chatbot-icon {
|
|
@@ -190,7 +169,7 @@ body {
|
|
| 190 |
|
| 191 |
.chatbot-icon:hover {
|
| 192 |
transform: scale(1.1);
|
| 193 |
-
box-shadow: 0 0 15px rgba(
|
| 194 |
}
|
| 195 |
|
| 196 |
.hidden {
|
|
@@ -198,11 +177,11 @@ body {
|
|
| 198 |
}
|
| 199 |
|
| 200 |
.drop-area {
|
| 201 |
-
border: 2px dashed #
|
| 202 |
border-radius: 8px;
|
| 203 |
padding: 30px;
|
| 204 |
text-align: center;
|
| 205 |
-
background: rgba(255, 255, 255, 0.
|
| 206 |
margin-bottom: 10px;
|
| 207 |
cursor: pointer;
|
| 208 |
display: flex;
|
|
@@ -212,19 +191,19 @@ body {
|
|
| 212 |
}
|
| 213 |
|
| 214 |
.drop-area p {
|
| 215 |
-
color: #
|
| 216 |
font-size: 1.2rem;
|
| 217 |
margin: 0;
|
| 218 |
}
|
| 219 |
|
| 220 |
.drop-area:hover {
|
| 221 |
-
background: rgba(255, 255, 255, 0.
|
| 222 |
}
|
| 223 |
|
| 224 |
.input-bar {
|
| 225 |
display: flex;
|
| 226 |
align-items: center;
|
| 227 |
-
background: rgba(255, 255, 255, 0.
|
| 228 |
border-radius: 8px;
|
| 229 |
padding: 5px;
|
| 230 |
}
|
|
@@ -233,7 +212,7 @@ body {
|
|
| 233 |
flex: 1;
|
| 234 |
background: transparent;
|
| 235 |
border: none;
|
| 236 |
-
color: #
|
| 237 |
outline: none;
|
| 238 |
padding: 8px;
|
| 239 |
}
|
|
@@ -242,12 +221,38 @@ body {
|
|
| 242 |
padding: 8px 16px;
|
| 243 |
}
|
| 244 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
@media (max-width: 768px) {
|
| 246 |
.modal-content {
|
| 247 |
width: 95%;
|
| 248 |
}
|
| 249 |
.chatbot-modal {
|
| 250 |
-
width:
|
|
|
|
| 251 |
}
|
| 252 |
.input-bar {
|
| 253 |
flex-direction: column;
|
|
|
|
| 1 |
body {
|
| 2 |
+
background: url('/images/starry-bg.jpg') no-repeat center center fixed;
|
| 3 |
+
background-size: cover;
|
| 4 |
font-family: 'Arial', sans-serif;
|
|
|
|
| 5 |
overflow-x: hidden;
|
| 6 |
}
|
| 7 |
|
| 8 |
+
.stars {
|
| 9 |
+
position: fixed;
|
| 10 |
+
top: 0;
|
| 11 |
+
left: 0;
|
| 12 |
+
width: 100%;
|
| 13 |
+
height: 100%;
|
| 14 |
+
background: transparent;
|
| 15 |
+
z-index: -1;
|
| 16 |
+
animation: twinkle 10s infinite;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
@keyframes twinkle {
|
| 20 |
+
0%, 100% { opacity: 0.7; }
|
| 21 |
+
50% { opacity: 1; }
|
| 22 |
+
}
|
| 23 |
|
| 24 |
.cosmic-gradient {
|
| 25 |
+
background: linear-gradient(45deg, #ff6ec4, #7873f5);
|
| 26 |
-webkit-background-clip: text;
|
| 27 |
-webkit-text-fill-color: transparent;
|
| 28 |
}
|
| 29 |
|
| 30 |
.function-box {
|
| 31 |
+
background: rgba(255, 255, 255, 0.1);
|
| 32 |
backdrop-filter: blur(10px);
|
| 33 |
border-radius: 25% 10% 40% 10% / 20% 40% 20% 40%;
|
| 34 |
padding: 30px;
|
| 35 |
cursor: pointer;
|
| 36 |
transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s, filter 0.3s;
|
| 37 |
min-height: 280px;
|
|
|
|
| 38 |
}
|
| 39 |
|
| 40 |
.function-box:hover {
|
| 41 |
transform: scale(1.05);
|
| 42 |
+
box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
}
|
| 44 |
|
| 45 |
.function-box.shadowed {
|
|
|
|
| 54 |
left: 0;
|
| 55 |
width: 100%;
|
| 56 |
height: 100%;
|
| 57 |
+
background: rgba(0, 0, 0, 0.7);
|
| 58 |
display: flex;
|
| 59 |
align-items: center;
|
| 60 |
justify-content: center;
|
|
|
|
| 62 |
}
|
| 63 |
|
| 64 |
.modal-content {
|
| 65 |
+
background: url('/images/starry-bg.jpg') no-repeat center center fixed;
|
| 66 |
+
background-size: cover;
|
| 67 |
border-radius: 0;
|
| 68 |
padding: 30px;
|
| 69 |
width: 90%;
|
| 70 |
max-width: 700px;
|
| 71 |
position: relative;
|
| 72 |
animation: fadeIn 0.3s ease-in;
|
| 73 |
+
box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
|
|
|
|
| 74 |
}
|
| 75 |
|
| 76 |
.chatbot-modal {
|
| 77 |
+
max-width: 400px;
|
| 78 |
+
max-height: 500px;
|
| 79 |
display: flex;
|
| 80 |
flex-direction: column;
|
| 81 |
}
|
| 82 |
|
| 83 |
.chatbot-conversation {
|
| 84 |
+
max-height: 350px;
|
| 85 |
overflow-y: auto;
|
| 86 |
margin-bottom: 10px;
|
| 87 |
padding: 10px;
|
| 88 |
+
background: rgba(0, 0, 0, 0.2);
|
| 89 |
border-radius: 25% 10% 40% 10% / 20% 40% 20% 40%;
|
| 90 |
}
|
| 91 |
|
|
|
|
| 95 |
|
| 96 |
.chatbot-conversation .user-message {
|
| 97 |
text-align: right;
|
| 98 |
+
color: #ff6ec4;
|
| 99 |
}
|
| 100 |
|
| 101 |
.chatbot-conversation .bot-message {
|
| 102 |
text-align: left;
|
| 103 |
+
color: #7873f5;
|
| 104 |
}
|
| 105 |
|
| 106 |
@keyframes fadeIn {
|
|
|
|
| 114 |
right: 15px;
|
| 115 |
font-size: 24px;
|
| 116 |
cursor: pointer;
|
| 117 |
+
color: #fff;
|
| 118 |
}
|
| 119 |
|
| 120 |
.tab-btn {
|
| 121 |
flex: 1;
|
| 122 |
padding: 10px;
|
| 123 |
+
background: rgba(255, 255, 255, 0.1);
|
| 124 |
border: none;
|
| 125 |
+
color: #fff;
|
| 126 |
cursor: pointer;
|
| 127 |
transition: background 0.3s;
|
| 128 |
}
|
| 129 |
|
| 130 |
.tab-btn.active {
|
| 131 |
+
background: rgba(255, 255, 255, 0.3);
|
| 132 |
}
|
| 133 |
|
| 134 |
.tab-btn:hover {
|
| 135 |
+
background: rgba(255, 255, 255, 0.2);
|
| 136 |
}
|
| 137 |
|
| 138 |
.cosmic-btn {
|
| 139 |
+
background: linear-gradient(45deg, #ff6ec4, #7873f5);
|
| 140 |
+
color: #fff;
|
| 141 |
padding: 10px 20px;
|
| 142 |
border: none;
|
| 143 |
border-radius: 8px;
|
| 144 |
cursor: pointer;
|
| 145 |
+
transition: transform 0.2s;
|
| 146 |
}
|
| 147 |
|
| 148 |
+
.cosmic-btn:hover {
|
| 149 |
transform: scale(1.05);
|
| 150 |
}
|
| 151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
.response-card {
|
| 153 |
margin-top: 20px;
|
| 154 |
padding: 15px;
|
| 155 |
+
background: rgba(255, 255, 255, 0.1);
|
| 156 |
backdrop-filter: blur(10px);
|
| 157 |
border-radius: 25% 10% 40% 10% / 20% 40% 20% 40%;
|
| 158 |
+
color: #fff;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
}
|
| 160 |
|
| 161 |
.chatbot-icon {
|
|
|
|
| 169 |
|
| 170 |
.chatbot-icon:hover {
|
| 171 |
transform: scale(1.1);
|
| 172 |
+
box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
|
| 173 |
}
|
| 174 |
|
| 175 |
.hidden {
|
|
|
|
| 177 |
}
|
| 178 |
|
| 179 |
.drop-area {
|
| 180 |
+
border: 2px dashed #fff;
|
| 181 |
border-radius: 8px;
|
| 182 |
padding: 30px;
|
| 183 |
text-align: center;
|
| 184 |
+
background: rgba(255, 255, 255, 0.1);
|
| 185 |
margin-bottom: 10px;
|
| 186 |
cursor: pointer;
|
| 187 |
display: flex;
|
|
|
|
| 191 |
}
|
| 192 |
|
| 193 |
.drop-area p {
|
| 194 |
+
color: #fff;
|
| 195 |
font-size: 1.2rem;
|
| 196 |
margin: 0;
|
| 197 |
}
|
| 198 |
|
| 199 |
.drop-area:hover {
|
| 200 |
+
background: rgba(255, 255, 255, 0.2);
|
| 201 |
}
|
| 202 |
|
| 203 |
.input-bar {
|
| 204 |
display: flex;
|
| 205 |
align-items: center;
|
| 206 |
+
background: rgba(255, 255, 255, 0.1);
|
| 207 |
border-radius: 8px;
|
| 208 |
padding: 5px;
|
| 209 |
}
|
|
|
|
| 212 |
flex: 1;
|
| 213 |
background: transparent;
|
| 214 |
border: none;
|
| 215 |
+
color: #fff;
|
| 216 |
outline: none;
|
| 217 |
padding: 8px;
|
| 218 |
}
|
|
|
|
| 221 |
padding: 8px 16px;
|
| 222 |
}
|
| 223 |
|
| 224 |
+
.loading-spinner {
|
| 225 |
+
margin-top: 10px;
|
| 226 |
+
color: #fff;
|
| 227 |
+
font-size: 1rem;
|
| 228 |
+
text-align: center;
|
| 229 |
+
display: none;
|
| 230 |
+
}
|
| 231 |
+
|
| 232 |
+
.loading-spinner::before {
|
| 233 |
+
content: '';
|
| 234 |
+
display: inline-block;
|
| 235 |
+
width: 20px;
|
| 236 |
+
height: 20px;
|
| 237 |
+
border: 3px solid #fff;
|
| 238 |
+
border-top-color: transparent;
|
| 239 |
+
border-radius: 50%;
|
| 240 |
+
animation: spin 1s linear infinite;
|
| 241 |
+
margin-right: 10px;
|
| 242 |
+
vertical-align: middle;
|
| 243 |
+
}
|
| 244 |
+
|
| 245 |
+
@keyframes spin {
|
| 246 |
+
to { transform: rotate(360deg); }
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
@media (max-width: 768px) {
|
| 250 |
.modal-content {
|
| 251 |
width: 95%;
|
| 252 |
}
|
| 253 |
.chatbot-modal {
|
| 254 |
+
max-width: 90%;
|
| 255 |
+
max-height: 80vh;
|
| 256 |
}
|
| 257 |
.input-bar {
|
| 258 |
flex-direction: column;
|