chore: update

This commit is contained in:
2026-03-03 23:42:23 +01:00
parent 52b059fafa
commit 0073f80a48
95 changed files with 2720 additions and 40619 deletions
+414 -348
View File
@@ -1,419 +1,485 @@
.navbar {
/* ============================================================
Tokens
============================================================ */
:root {
--topbar-h: 60px;
--sidebar-w: 260px;
--bg: #09090b;
--surface: #111115;
--surface-2: #1c1c22;
--border: rgba(255, 255, 255, 0.07);
--primary: #8b5cf6;
--primary-soft: rgba(139, 92, 246, 0.12);
--primary-glow: rgba(139, 92, 246, 0.25);
--cyan: #22d3ee;
--cyan-soft: rgba(34, 211, 238, 0.1);
--red: #ef4444;
--text: #f4f4f5;
--text-muted: #71717a;
--radius: 10px;
--transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
/* ============================================================
Body offset
============================================================ */
body {
padding-top: var(--topbar-h);
}
/* ============================================================
Top Bar
============================================================ */
.topbar {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 60px;
background-color: #1a1a1a;
border-bottom: 2px solid #333;
height: var(--topbar-h);
z-index: 900;
display: flex;
align-items: center;
padding: 0 1rem;
z-index: 100;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
padding: 0 0.75rem;
gap: 0.5rem;
background: rgba(9, 9, 11, 0.92);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
box-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}
.hamburger-menu {
.topbar-toggle {
width: 40px;
height: 40px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
border: 1px solid transparent;
border-radius: var(--radius);
color: var(--text-muted);
font-size: 1.1rem;
cursor: pointer;
transition: all var(--transition);
-webkit-tap-highlight-color: transparent;
}
.topbar-toggle:hover,
.topbar-toggle.is-open {
background: var(--surface-2);
border-color: var(--border);
color: var(--text);
}
.topbar-brand {
flex: 1;
text-align: center;
font-size: 1rem;
font-weight: 700;
letter-spacing: 0.02em;
background: linear-gradient(135deg, #a78bfa, #7c3aed);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
user-select: none;
}
.topbar-actions {
display: flex;
align-items: center;
gap: 0.25rem;
}
/* ── Icon button (notif / cart) ── */
.topbar-icon-btn {
position: relative;
width: 40px;
height: 40px;
display: flex;
flex-direction: column;
justify-content: space-around;
padding: 8px;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
transition: all 0.3s;
}
.hamburger-menu:active {
transform: scale(0.9);
}
.hamburger-line {
width: 100%;
height: 3px;
background-color: white;
border-radius: 2px;
transition: all 0.3s ease;
}
.hamburger-line.open:nth-child(1) {
transform: rotate(45deg) translate(6px, 6px);
}
.hamburger-line.open:nth-child(2) {
opacity: 0;
}
.hamburger-line.open:nth-child(3) {
transform: rotate(-45deg) translate(6px, -6px);
}
.navbar-title {
color: white;
font-size: clamp(1.2rem, 4vw, 1.5rem);
margin: 0 0 0 1rem;
font-weight: 600;
flex: 1;
}
.cart-button {
position: relative;
background: transparent;
border: none;
width: 45px;
height: 45px;
align-items: center;
justify-content: center;
background: transparent;
border: 1px solid transparent;
border-radius: var(--radius);
color: var(--text-muted);
font-size: 1rem;
cursor: pointer;
transition: all var(--transition);
-webkit-tap-highlight-color: transparent;
transition: all 0.2s;
margin-left: 330px;
}
.cart-button:active {
transform: scale(0.9);
.topbar-icon-btn:hover {
background: var(--surface-2);
border-color: var(--border);
color: var(--text);
}
.cart-icon {
width: 24px;
height: 24px;
filter: brightness(0) invert(1);
.topbar-icon-btn:active {
transform: scale(0.93);
}
.cart-count {
.topbar-badge {
position: absolute;
top: 2px;
right: 2px;
background-color: #ff0000;
color: white;
font-size: 0.7rem;
font-weight: bold;
min-width: 18px;
height: 18px;
border-radius: 50%;
top: 4px;
right: 4px;
min-width: 17px;
height: 17px;
border-radius: 999px;
background: var(--red);
color: #fff;
font-size: 0.62rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
padding: 2px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
padding: 0 3px;
border: 2px solid var(--bg);
line-height: 1;
}
/* Menu latéral */
.side-menu {
/* ============================================================
Overlay
============================================================ */
.sidebar-overlay {
position: fixed;
inset: 0;
z-index: 950;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(2px);
animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* ============================================================
Sidebar
============================================================ */
.sidebar {
position: fixed;
top: 0;
left: -280px;
width: 280px;
height: 100vh;
background-color: #0a0a0a;
border-right: 2px solid #333;
z-index: 200;
transition: left 0.3s ease;
overflow-y: auto;
left: 0;
width: var(--sidebar-w);
height: 100dvh;
z-index: 1000;
display: flex;
flex-direction: column;
background: var(--bg);
border-right: 1px solid var(--border);
transform: translateX(-100%);
transition: transform var(--transition);
overflow: hidden;
}
.side-menu.open {
left: 0;
.sidebar.open {
transform: translateX(0);
box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6);
}
.side-menu-header {
/* ── Header ── */
.sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 1rem;
border-bottom: 2px solid #333;
justify-content: space-between;
padding: 1.25rem 1rem 1rem;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.side-menu-header h3 {
color: white;
margin: 0;
font-size: 1.5rem;
.sidebar-brand {
display: flex;
align-items: center;
gap: 0.75rem;
}
.close-menu {
background: transparent;
border: none;
color: white;
font-size: 2.5rem;
cursor: pointer;
width: 40px;
height: 40px;
.sidebar-brand-icon {
width: 38px;
height: 38px;
border-radius: 10px;
background: var(--primary-soft);
border: 1px solid rgba(139, 92, 246, 0.25);
display: flex;
align-items: center;
justify-content: center;
color: var(--primary);
font-size: 1rem;
flex-shrink: 0;
}
.sidebar-brand-name {
margin: 0;
font-size: 0.95rem;
font-weight: 700;
color: var(--text);
letter-spacing: 0.01em;
}
.sidebar-brand-sub {
margin: 0;
font-size: 0.72rem;
color: var(--text-muted);
margin-top: 1px;
}
.sidebar-close {
width: 34px;
height: 34px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text-muted);
font-size: 0.85rem;
cursor: pointer;
transition: all var(--transition);
-webkit-tap-highlight-color: transparent;
transition: all 0.2s;
flex-shrink: 0;
}
.close-menu:active {
transform: scale(0.9);
.sidebar-close:hover {
background: var(--surface-2);
color: var(--text);
}
.side-menu-nav {
/* ── Nav ── */
.sidebar-nav {
flex: 1;
overflow-y: auto;
padding: 0.75rem 0.75rem;
scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar {
display: none;
}
.menu-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
padding: 1rem 0;
flex: 1;
gap: 2px;
}
.menu-item {
color: white;
text-decoration: none;
padding: 1rem 1.5rem;
font-size: 1.1rem;
border-bottom: 1px solid #222;
transition: all 0.2s;
-webkit-tap-highlight-color: transparent;
}
.menu-item:active {
background-color: #1a1a1a;
transform: translateX(5px);
}
/* Overlay */
.menu-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7);
z-index: 150;
}
/* Désactiver hover sur tactile */
@media (hover: none) {
.menu-item:hover {
background-color: transparent;
}
}
/* Sélecteur de couleur */
.color-picker-section {
margin-top: 0;
border-top: 2px solid #333;
padding: 1rem;
background-color: #0a0a0a;
}
.color-picker-toggle {
width: 100%;
background-color: #1a1a1a;
border: 2px solid #333;
border-radius: 8px;
padding: 0.8rem 1rem;
display: flex;
align-items: center;
gap: 0.8rem;
cursor: pointer;
transition: all 0.2s;
-webkit-tap-highlight-color: transparent;
}
.color-picker-toggle:active {
transform: scale(0.98);
background-color: #222;
}
.color-preview {
width: 30px;
height: 30px;
border-radius: 50%;
border: 2px solid white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.color-picker-toggle span {
color: white;
font-size: 1rem;
flex: 1;
}
.arrow {
color: white;
font-size: 0.8rem;
transition: transform 0.3s;
}
.arrow.up {
transform: rotate(180deg);
}
.color-options {
margin-top: 0.8rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
animation: slideDown 0.3s ease;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.color-option {
background-color: #0a0a0a;
border: 1px solid #333;
border-radius: 8px;
padding: 0.8rem 1rem;
display: flex;
align-items: center;
gap: 0.8rem;
cursor: pointer;
transition: all 0.2s;
-webkit-tap-highlight-color: transparent;
}
.color-option:active {
transform: scale(0.98);
background-color: #1a1a1a;
}
.color-option.active {
border-color: #4ade80;
background-color: #1a2a1a;
}
.color-circle {
width: 25px;
height: 25px;
border-radius: 50%;
border: 2px solid white;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.color-option span {
color: white;
font-size: 0.95rem;
flex: 1;
}
.check {
color: #4ade80;
font-size: 1.2rem;
font-weight: bold;
}
/* Bouton panier flottant */
.cart-button-float {
position: fixed;
top: 1rem;
right: 1rem;
z-index: 1001;
width: 56px;
height: 56px;
background: linear-gradient(
135deg,
rgba(124, 58, 237, 0.2),
rgba(109, 40, 217, 0.1)
);
border: 1px solid rgba(124, 58, 237, 0.3);
border-radius: 50%;
color: #7c3aed;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(10px);
box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}
.cart-button-float:hover {
background: linear-gradient(
135deg,
rgba(124, 58, 237, 0.3),
rgba(109, 40, 217, 0.15)
);
border-color: rgba(124, 58, 237, 0.5);
transform: scale(1.05);
}
.cart-button-float:active {
transform: scale(0.95);
}
.cart-icon-fa {
font-size: 1.5rem;
}
.cart-count {
position: absolute;
top: -4px;
right: -4px;
background: linear-gradient(135deg, #ef4444, #dc2626);
color: white;
font-size: 0.75rem;
font-weight: 700;
min-width: 22px;
height: 22px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
padding: 2px;
box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
border: 2px solid #0f0f0f;
}
/* Bouton Telegram */
.telegram-button {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 0.8rem;
padding: 0.9rem 1rem;
background: linear-gradient(
135deg,
rgba(37, 161, 244, 0.1),
rgba(32, 139, 220, 0.05)
);
border: 1px solid rgba(37, 161, 244, 0.3);
border-radius: 12px;
color: #25a1f4;
font-size: 0.95rem;
font-weight: 600;
gap: 0.85rem;
padding: 0.7rem 0.9rem;
background: transparent;
border: 1px solid transparent;
border-radius: var(--radius);
color: var(--text-muted);
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
margin-bottom: 0.5rem;
text-align: left;
transition: all var(--transition);
-webkit-tap-highlight-color: transparent;
position: relative;
}
.telegram-button:hover:not(:disabled) {
background: linear-gradient(
135deg,
rgba(37, 161, 244, 0.15),
rgba(32, 139, 220, 0.08)
);
border-color: rgba(37, 161, 244, 0.5);
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(37, 161, 244, 0.3);
.menu-item:hover:not(:disabled) {
background: var(--surface);
border-color: var(--border);
color: var(--text);
}
.telegram-button:active:not(:disabled) {
.menu-item.active {
background: var(--primary-soft);
border-color: rgba(139, 92, 246, 0.2);
color: var(--primary);
}
.menu-item:active:not(:disabled) {
transform: scale(0.98);
}
.telegram-button:disabled {
opacity: 0.5;
.menu-item:disabled {
opacity: 0.4;
cursor: not-allowed;
}
/* Footer styles */
.menu-icon {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
background: var(--surface);
font-size: 0.85rem;
flex-shrink: 0;
transition: all var(--transition);
}
.menu-item.active .menu-icon {
background: rgba(139, 92, 246, 0.2);
color: var(--primary);
}
.menu-label {
flex: 1;
}
.menu-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--primary);
flex-shrink: 0;
box-shadow: 0 0 8px var(--primary-glow);
}
/* ── Footer ── */
.sidebar-footer {
margin-top: auto;
padding: 1rem;
border-top: 1px solid #333;
padding: 0.75rem;
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 0.5rem;
flex-shrink: 0;
}
.sidebar-footer-btn {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 0.6rem;
padding: 0.7rem 1rem;
border-radius: var(--radius);
font-size: 0.88rem;
font-weight: 600;
cursor: pointer;
transition: all var(--transition);
-webkit-tap-highlight-color: transparent;
}
.sidebar-footer-btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.sidebar-footer-btn.telegram {
background: var(--cyan-soft);
border: 1px solid rgba(34, 211, 238, 0.2);
color: var(--cyan);
}
.sidebar-footer-btn.telegram:hover:not(:disabled) {
background: rgba(34, 211, 238, 0.15);
border-color: rgba(34, 211, 238, 0.35);
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(34, 211, 238, 0.15);
}
.sidebar-footer-btn.logout {
background: rgba(239, 68, 68, 0.08);
border: 1px solid rgba(239, 68, 68, 0.18);
color: #f87171;
}
.sidebar-footer-btn.logout:hover:not(:disabled) {
background: rgba(239, 68, 68, 0.13);
border-color: rgba(239, 68, 68, 0.3);
transform: translateY(-1px);
}
.sidebar-footer-btn:active:not(:disabled) {
transform: scale(0.97);
}
/* ============================================================
Notification panel
============================================================ */
.notif-panel {
position: absolute;
top: calc(var(--topbar-h) - 4px);
right: 0;
width: 300px;
max-height: 380px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 14px;
overflow: hidden;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
display: flex;
flex-direction: column;
animation: slideDown 0.18s ease;
}
@keyframes slideDown {
from { opacity: 0; transform: translateY(-6px); }
to { opacity: 1; transform: translateY(0); }
}
.notif-panel-header {
padding: 0.7rem 1rem;
border-bottom: 1px solid var(--border);
color: var(--text);
font-weight: 600;
font-size: 0.85rem;
letter-spacing: 0.02em;
}
.notif-empty {
padding: 1.5rem;
text-align: center;
color: var(--text-muted);
font-size: 0.85rem;
}
.notif-list {
list-style: none;
margin: 0;
padding: 0;
overflow-y: auto;
max-height: 320px;
}
.notif-item {
display: flex;
flex-direction: column;
gap: 0.2rem;
padding: 0.7rem 1rem;
border-bottom: 1px solid var(--border);
transition: background var(--transition);
}
.notif-item:last-child { border-bottom: none; }
.notif-unread {
background: var(--primary-soft);
border-left: 3px solid var(--primary);
}
.notif-read { opacity: 0.55; }
.notif-message {
color: var(--text);
font-size: 0.83rem;
line-height: 1.45;
}
.notif-time {
color: var(--text-muted);
font-size: 0.72rem;
}
/* ============================================================
Responsive
============================================================ */
@media (hover: none) {
.menu-item:hover { background: transparent; border-color: transparent; color: var(--text-muted); }
.menu-item.active:hover { background: var(--primary-soft); color: var(--primary); }
.topbar-toggle:hover { background: transparent; border-color: transparent; }
.topbar-icon-btn:hover { background: transparent; border-color: transparent; }
}