DocImageAI-Explorer / style.css
SamiKLN's picture
Upload 4 files
70f0b76 verified
:root {
--primary-color: #4a6fa5;
--secondary-color: #166088;
--accent-color: #4fc3f7;
--background-color: #f8f9fa;
--text-color: #333;
--light-gray: #e9ecef;
--dark-gray: #6c757d;
--success-color: #28a745;
--error-color: #dc3545;
--box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Reset et styles de base */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-color);
overflow-x: hidden;
}
/* Fond vidéo */
#bg-video {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
z-index: -1;
opacity: 1;
object-fit: cover;
}
/* Conteneur principal */
.container {
max-width: 1200px;
margin: 2rem auto;
background-color: rgba(255, 255, 255, 0.863);
padding: 2rem;
border-radius: 10px;
box-shadow: var(--box-shadow);
backdrop-filter: blur(2px);
}
header {
text-align: center;
margin-bottom: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--light-gray);
}
header h1 {
color: var(--primary-color);
font-size: 2.5rem;
margin-bottom: 0.5rem;
}
.subtitle {
color: var(--dark-gray);
font-size: 1.1rem;
}
/* Onglets */
.tabs {
display: flex;
border-bottom: 1px solid var(--light-gray);
margin-bottom: 1.5rem;
overflow-x: auto;
}
.tab-button {
padding: 0.75rem 1.5rem;
background: none;
border: none;
cursor: pointer;
font-size: 1rem;
color: var(--dark-gray);
transition: all 0.3s;
white-space: nowrap;
}
.tab-button:hover {
color: var(--primary-color);
}
.tab-button.active {
color: var(--primary-color);
border-bottom: 3px solid var(--primary-color);
font-weight: 600;
}
.tab-content {
display: none;
padding: 1rem 0;
animation: fadeIn 0.5s ease;
}
.tab-content.active {
display: block;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Zone d'upload */
.upload-area {
border: 2px dashed var(--primary-color);
border-radius: 8px;
padding: 3rem;
text-align: center;
cursor: pointer;
transition: all 0.3s;
margin-bottom: 1.5rem;
background-color: rgba(74, 111, 165, 0.05);
}
.upload-area:hover {
background-color: rgba(74, 111, 165, 0.1);
transform: translateY(-2px);
}
.upload-icon {
font-size: 2.5rem;
margin-bottom: 1rem;
color: var(--primary-color);
}
.file-types {
color: var(--dark-gray);
font-size: 0.9rem;
margin-top: 0.5rem;
}
#fileInput {
display: none;
}
/* Liste de fichiers */
.file-list {
margin: 1.5rem 0;
}
.file-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem;
border: 1px solid var(--light-gray);
border-radius: 6px;
margin-bottom: 0.75rem;
background-color: white;
transition: transform 0.2s;
}
.file-item:hover {
transform: translateX(5px);
}
.file-info {
display: flex;
align-items: center;
gap: 0.75rem;
}
.file-icon {
font-size: 1.2rem;
}
.file-name {
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 300px;
}
.file-type {
color: var(--dark-gray);
font-size: 0.8rem;
background-color: var(--light-gray);
padding: 0.2rem 0.5rem;
border-radius: 4px;
margin-left: 0.5rem;
}
/* Formulaires */
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--primary-color);
}
.file-selector, textarea {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--light-gray);
border-radius: 6px;
font-size: 1rem;
transition: border-color 0.3s;
}
.file-selector:focus, textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}
textarea {
resize: vertical;
min-height: 120px;
}
/* Boutons */
.action-btn {
background-color: var(--primary-color);
color: white;
border: none;
padding: 0.75rem 1.5rem;
border-radius: 6px;
cursor: pointer;
font-size: 1rem;
font-weight: 500;
transition: all 0.3s;
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.action-btn:hover {
background-color: var(--secondary-color);
transform: translateY(-2px);
box-shadow: var(--box-shadow);
}
.action-btn:disabled {
background-color: var(--light-gray);
cursor: not-allowed;
transform: none;
}
.btn-icon {
font-size: 1.2rem;
}
.action-area {
display: flex;
align-items: center;
gap: 1rem;
margin: 1.5rem 0;
}
/* Résultats */
.result-box {
margin: 1.5rem 0;
padding: 1.5rem;
border-radius: 8px;
background-color: white;
border: 1px solid var(--light-gray);
min-height: 150px;
}
.result-box h3 {
color: var(--primary-color);
margin-bottom: 1rem;
}
.placeholder {
color: var(--dark-gray);
font-style: italic;
text-align: center;
margin: 2rem 0;
}
/* Aperçu image */
.image-preview {
margin: 1.5rem 0;
text-align: center;
}
.image-preview img {
max-width: 100%;
max-height: 400px;
border-radius: 8px;
box-shadow: var(--box-shadow);
}
.preview-placeholder {
padding: 3rem;
border: 2px dashed var(--light-gray);
border-radius: 8px;
color: var(--dark-gray);
}
.placeholder-icon {
font-size: 3rem;
margin-bottom: 1rem;
opacity: 0.5;
}
/* Messages d'état */
.status-message {
padding: 1rem;
border-radius: 6px;
margin: 1rem 0;
display: flex;
align-items: center;
gap: 0.75rem;
}
.success {
background-color: rgba(40, 167, 69, 0.15);
color: var(--success-color);
border: 1px solid rgba(40, 167, 69, 0.3);
}
.error {
background-color: rgba(220, 53, 69, 0.15);
color: var(--error-color);
border: 1px solid rgba(220, 53, 69, 0.3);
}
.loading-spinner {
width: 24px;
height: 24px;
border: 3px solid rgba(74, 111, 165, 0.3);
border-top-color: var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
display: none;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Page À propos */
.about-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin: 2rem 0;
}
.about-card {
background-color: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: var(--box-shadow);
}
.about-card h3 {
color: var(--primary-color);
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--light-gray);
}
.about-card ul {
list-style-type: none;
}
.about-card li {
padding: 0.5rem 0;
display: flex;
align-items: center;
gap: 0.75rem;
}
.footer {
text-align: center;
margin-top: 3rem;
color: var(--dark-gray);
font-size: 0.9rem;
}
.version {
font-size: 0.8rem;
opacity: 0.7;
}
/* Responsive */
@media (max-width: 768px) {
.container {
margin: 1rem;
padding: 1.5rem;
}
header h1 {
font-size: 2rem;
}
.upload-area {
padding: 2rem 1rem;
}
.file-name {
max-width: 200px;
}
.about-content {
grid-template-columns: 1fr;
}
#bg-video {
display: none;
}
body {
background: linear-gradient(135deg, #4a6fa5 0%, #166088 100%);
}
}
@media (max-width: 480px) {
.tab-button {
padding: 0.75rem;
font-size: 0.9rem;
}
.file-name {
max-width: 150px;
}
}