720 lines
14 KiB
CSS
720 lines
14 KiB
CSS
/* Variables */
|
|
:root {
|
|
/* Couleurs principales */
|
|
--color-bg: #1a1716;
|
|
--color-bg-alt: #231f1d;
|
|
--color-text: #e6d5c5;
|
|
--color-text-muted: #a18d7a;
|
|
--color-primary: #d4846a;
|
|
--color-primary-hover: #e6977c;
|
|
--color-accent: #8b4b45;
|
|
--color-border: #382f2a;
|
|
|
|
/* Alertes */
|
|
--color-error: #ff6b6b;
|
|
--color-success: #51cf66;
|
|
|
|
/* Espacements */
|
|
--spacing-xs: 0.25rem;
|
|
--spacing-sm: 0.5rem;
|
|
--spacing-md: 1rem;
|
|
--spacing-lg: 2rem;
|
|
|
|
/* Bordures */
|
|
--border-radius: 4px;
|
|
}
|
|
|
|
/* Reset et base */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
background-color: var(--color-bg);
|
|
color: var(--color-text);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Navigation */
|
|
header {
|
|
background-color: var(--color-bg-alt);
|
|
border-bottom: 1px solid var(--color-border);
|
|
padding: var(--spacing-md) var(--spacing-lg);
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.nav-brand a {
|
|
color: var(--color-primary);
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.nav-menu {
|
|
display: flex;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
/* Navigation */
|
|
.nav-link,
|
|
button.nav-link {
|
|
color: var(--color-text);
|
|
text-decoration: none;
|
|
padding: var(--spacing-sm) var(--spacing-md);
|
|
border-radius: var(--border-radius);
|
|
transition: background-color 0.3s ease;
|
|
font: inherit; /* Pour que le bouton utilise la même police */
|
|
border: none;
|
|
background: none;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
}
|
|
|
|
.nav-link:hover,
|
|
button.nav-link:hover {
|
|
background-color: var(--color-border);
|
|
}
|
|
|
|
/* Main content */
|
|
main {
|
|
flex: 1;
|
|
padding: var(--spacing-lg);
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
background-color: var(--color-bg-alt);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--border-radius);
|
|
padding: var(--spacing-lg);
|
|
margin-bottom: var(--spacing-lg);
|
|
}
|
|
|
|
/* Forms */
|
|
.form-group {
|
|
margin-bottom: var(--spacing-md);
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: var(--spacing-xs);
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"],
|
|
textarea {
|
|
width: 100%;
|
|
padding: var(--spacing-sm);
|
|
background-color: var(--color-bg);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--border-radius);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
input[type="text"]:focus,
|
|
input[type="password"]:focus,
|
|
textarea:focus {
|
|
outline: none;
|
|
border-color: var(--color-primary);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-block;
|
|
padding: var(--spacing-sm) var(--spacing-md);
|
|
background-color: var(--color-primary);
|
|
color: var(--color-text);
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.btn:hover {
|
|
background-color: var(--color-primary-hover);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: var(--color-border);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: var(--color-text-muted);
|
|
}
|
|
|
|
/* Alerts */
|
|
.alert {
|
|
padding: var(--spacing-md);
|
|
border-radius: var(--border-radius);
|
|
margin-bottom: var(--spacing-md);
|
|
}
|
|
|
|
.alert-error {
|
|
background-color: var(--color-error);
|
|
color: white;
|
|
}
|
|
|
|
.alert-success {
|
|
background-color: var(--color-success);
|
|
color: white;
|
|
}
|
|
|
|
/* File list */
|
|
.file-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
.file-item {
|
|
background-color: var(--color-bg-alt);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--border-radius);
|
|
padding: var(--spacing-md);
|
|
}
|
|
|
|
.file-preview {
|
|
aspect-ratio: 16/9;
|
|
background-color: var(--color-bg);
|
|
border-radius: var(--border-radius);
|
|
margin-bottom: var(--spacing-sm);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.file-preview img,
|
|
.file-preview video {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.file-info {
|
|
color: var(--color-text-muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
background-color: var(--color-bg-alt);
|
|
border-top: 1px solid var(--color-border);
|
|
padding: var(--spacing-lg);
|
|
text-align: center;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
/* Zone d'upload */
|
|
.upload-zone {
|
|
position: relative;
|
|
border: 2px dashed var(--color-border);
|
|
border-radius: var(--border-radius);
|
|
padding: 2rem;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.upload-zone:hover {
|
|
border-color: var(--color-primary);
|
|
}
|
|
|
|
.upload-zone-active {
|
|
border-color: var(--color-primary);
|
|
background-color: rgba(212, 132, 106, 0.1);
|
|
}
|
|
|
|
.file-input {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.upload-content {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.upload-icon {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.upload-icon svg {
|
|
stroke: var(--color-text-muted);
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.upload-text {
|
|
margin-bottom: 0.5rem;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.upload-text-sub {
|
|
font-size: 0.9em;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.upload-limit {
|
|
font-size: 0.8em;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
/* Liste des fichiers */
|
|
.file-list {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.file-item {
|
|
background: var(--color-bg-alt);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--border-radius);
|
|
padding: 1rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.file-item-content {
|
|
display: grid;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.file-item-name {
|
|
font-weight: 500;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.file-item-size {
|
|
color: var(--color-text-muted);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.file-item-progress {
|
|
height: 4px;
|
|
background: var(--color-border);
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 100%;
|
|
background: var(--color-primary);
|
|
width: 0;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.file-item-error {
|
|
border-color: var(--color-error);
|
|
}
|
|
|
|
.file-item-error .file-item-error-message {
|
|
color: var(--color-error);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.file-item-success {
|
|
border-color: var(--color-success);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.nav-menu {
|
|
display: none;
|
|
}
|
|
|
|
main {
|
|
padding: var(--spacing-md);
|
|
}
|
|
|
|
.file-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Styles pour la modale */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.75);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.modal-container {
|
|
background-color: var(--color-bg-alt);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--border-radius);
|
|
width: 100%;
|
|
max-width: 500px;
|
|
margin: 1rem;
|
|
animation: modalAppear 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes modalAppear {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.95) translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1) translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Styles spécifiques à la page d'administration */
|
|
.admin-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-lg);
|
|
}
|
|
|
|
.admin-container h2 {
|
|
color: var(--color-primary);
|
|
margin-bottom: var(--spacing-md);
|
|
}
|
|
|
|
.help-text {
|
|
font-size: 0.9rem;
|
|
color: var(--color-text-muted);
|
|
margin-top: var(--spacing-xs);
|
|
}
|
|
|
|
.preview-placeholder {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: var(--color-bg);
|
|
color: var(--color-text-muted);
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.file-name {
|
|
font-weight: bold;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.file-meta {
|
|
font-size: 0.9rem;
|
|
color: var(--color-text-muted);
|
|
margin: var(--spacing-xs) 0;
|
|
}
|
|
|
|
.file-actions {
|
|
display: flex;
|
|
gap: var(--spacing-sm);
|
|
margin-top: var(--spacing-sm);
|
|
}
|
|
|
|
|
|
/* Styles pour la pagination et l'affichage des fichiers */
|
|
.files-header {
|
|
margin-bottom: var(--spacing-md);
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.files-count {
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: var(--spacing-xs);
|
|
margin: var(--spacing-lg) auto;
|
|
padding-top: var(--spacing-md);
|
|
border-top: 1px solid var(--color-border);
|
|
max-width: 100%;
|
|
}
|
|
|
|
.pagination-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 2rem;
|
|
height: 2rem;
|
|
padding: 0 0.5rem;
|
|
color: var(--color-text);
|
|
text-decoration: none;
|
|
background-color: var(--color-bg);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--border-radius);
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.pagination-link:hover {
|
|
background-color: var(--color-border);
|
|
}
|
|
|
|
.pagination-active {
|
|
background-color: var(--color-primary);
|
|
border-color: var(--color-primary);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.pagination-ellipsis {
|
|
color: var(--color-text-muted);
|
|
padding: 0 0.25rem;
|
|
user-select: none;
|
|
}
|
|
|
|
/* Bouton de suppression */
|
|
.btn-danger {
|
|
background-color: var(--color-accent);
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
padding: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
line-height: 1;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background-color: #a85651;
|
|
}
|
|
|
|
/* Boîte de dialogue de confirmation */
|
|
.confirmation-dialog {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background-color: var(--color-bg-alt);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--border-radius);
|
|
padding: var(--spacing-lg);
|
|
max-width: 400px;
|
|
width: 90%;
|
|
z-index: 1000;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.confirmation-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 999;
|
|
}
|
|
|
|
.confirmation-dialog h3 {
|
|
color: var(--color-primary);
|
|
margin-bottom: var(--spacing-md);
|
|
}
|
|
|
|
.confirmation-dialog p {
|
|
margin-bottom: var(--spacing-lg);
|
|
}
|
|
|
|
.confirmation-actions {
|
|
display: flex;
|
|
gap: var(--spacing-sm);
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.confirmation-actions .btn {
|
|
min-width: 100px;
|
|
padding: var(--spacing-sm) var(--spacing-md);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.pagination {
|
|
flex-wrap: wrap;
|
|
gap: var(--spacing-xs);
|
|
}
|
|
|
|
.pagination-link {
|
|
min-width: 2.25rem;
|
|
height: 2.25rem;
|
|
padding: 0 var(--spacing-sm);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.file-actions {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn-danger {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* Styles de notification */
|
|
.notification {
|
|
position: fixed;
|
|
bottom: var(--spacing-lg);
|
|
right: var(--spacing-lg);
|
|
background-color: var(--color-success);
|
|
color: white;
|
|
padding: var(--spacing-md) var(--spacing-lg);
|
|
border-radius: var(--border-radius);
|
|
animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 2.7s forwards;
|
|
z-index: 1000;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.notification.error {
|
|
background-color: var(--color-error);
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from { transform: translateY(100%); opacity: 0; }
|
|
to { transform: translateY(0); opacity: 1; }
|
|
}
|
|
|
|
@keyframes fadeOut {
|
|
from { opacity: 1; }
|
|
to { opacity: 0; }
|
|
}
|
|
|
|
.share-container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.share-container h1 {
|
|
color: var(--color-primary);
|
|
margin-bottom: var(--spacing-sm);
|
|
word-break: break-all;
|
|
}
|
|
|
|
.file-meta {
|
|
color: var(--color-text-muted);
|
|
margin-bottom: var(--spacing-lg);
|
|
}
|
|
|
|
.preview-container {
|
|
background-color: var(--color-bg);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--border-radius);
|
|
margin-bottom: var(--spacing-lg);
|
|
min-height: 200px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.preview-content {
|
|
max-width: 100%;
|
|
max-height: 600px;
|
|
}
|
|
|
|
.text-preview {
|
|
width: 100%;
|
|
max-height: 600px;
|
|
overflow: auto;
|
|
padding: var(--spacing-md);
|
|
background-color: var(--color-bg);
|
|
color: var(--color-text);
|
|
font-family: monospace;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.no-preview {
|
|
text-align: center;
|
|
padding: var(--spacing-lg);
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.extension-badge {
|
|
background-color: var(--color-bg-alt);
|
|
color: var(--color-primary);
|
|
padding: var(--spacing-md) var(--spacing-lg);
|
|
border-radius: var(--border-radius);
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
margin-bottom: var(--spacing-md);
|
|
}
|
|
|
|
.share-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-md);
|
|
}
|
|
|
|
.share-link {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-xs);
|
|
}
|
|
|
|
.input-group {
|
|
display: flex;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.input-group input {
|
|
flex: 1;
|
|
}
|
|
|
|
/* Styles responsifs */
|
|
@media (max-width: 768px) {
|
|
.input-group {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.input-group .btn {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* Animation de notification */
|
|
.notification {
|
|
position: fixed;
|
|
bottom: var(--spacing-lg);
|
|
right: var(--spacing-lg);
|
|
background-color: var(--color-success);
|
|
color: white;
|
|
padding: var(--spacing-md) var(--spacing-lg);
|
|
border-radius: var(--border-radius);
|
|
animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 2.7s forwards;
|
|
z-index: 1000;
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from { transform: translateY(100%); opacity: 0; }
|
|
to { transform: translateY(0); opacity: 1; }
|
|
}
|
|
|
|
@keyframes fadeOut {
|
|
from { opacity: 1; }
|
|
to { opacity: 0; }
|
|
} |