Files
podcastic/frontend/src/styles/globals.css
T
MichaelandClaude Opus 4.7 550bf81381 fix: fonds modals/panneau dashboard illisibles + clignotement mini-player + ombres cartes + avatar
- Ajout des variables CSS manquantes (--bg-primary, --bg-secondary, --radius-panel/--radius-card)
- Ajout des classes manquantes (premium-glass, neon-button, input-premium, shadow-glow-indigo, animate-aura)
- Fond du panneau latéral dashboard passé à --bg-elevated pour le décrocher du fond de page
- Fond solide sur le mini-player flottant + correction clignotement IntersectionObserver
- Ombres des cartes renforcées (shadow-card/shadow-card-hover)
- Contour de l'avatar profil amélioré (dégradé plus épais + glow + lettre en gradient)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-28 23:14:41 +02:00

513 lines
16 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
/* ═══════════════════════════════════════════
DESIGN TOKENS
═══════════════════════════════════════════ */
@layer base {
:root {
/* Dark theme (default) — calibrated to Stitch designs */
--bg-base: #010615;
--bg-surface: #0b0f20;
--bg-elevated: #11162c;
--bg-glass: rgba(11, 15, 32, 0.75);
--text-primary: #f0f4ff;
--text-secondary: #8892b0;
--text-muted: #566080;
--accent-primary: #6c6ff7;
--accent-secondary: #0dc5e0;
--accent-rose: #f84b6b;
--accent-gold: #f7b80a;
--accent-emerald: #12c278;
--accent-glow: rgba(108, 111, 247, 0.28);
--bg-primary: #010615;
--bg-secondary: #0b0f20;
--border-color: rgba(255, 255, 255, 0.07);
--border-hover: rgba(255, 255, 255, 0.14);
--radius-sm: 0.625rem;
--radius-md: 0.875rem;
--radius-lg: 1.125rem;
--radius-xl: 1.5rem;
--radius-panel: 1.5rem;
--radius-card: 1.125rem;
--glass-blur: blur(28px) saturate(180%);
--shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
--shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
--shadow-glow: 0 0 28px var(--accent-glow);
--font-display: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
--font-body: 'Outfit', ui-sans-serif, system-ui, sans-serif;
--transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
:root.light-theme,
.light-theme {
--bg-base: #f8f5f0;
--bg-surface: #f0ece6;
--bg-elevated: #e8e3da;
--bg-glass: rgba(255, 252, 247, 0.8);
--text-primary: #1a1a2e;
--text-secondary: #5c6370;
--text-muted: #9099a8;
--accent-primary: #5b5fc7;
--accent-secondary: #0891b2;
--accent-rose: #e11d48;
--accent-gold: #b8960c;
--accent-emerald: #059669;
--accent-glow: rgba(91, 95, 199, 0.15);
--bg-primary: #f8f5f0;
--bg-secondary: #f0ece6;
--border-color: rgba(0, 0, 0, 0.06);
--border-hover: rgba(0, 0, 0, 0.12);
--glass-blur: blur(20px) saturate(150%);
--shadow-card: 0 2px 16px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
--shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
--shadow-glow: 0 0 20px var(--accent-glow);
}
}
/* ═══════════════════════════════════════════
RESET & BASE
═══════════════════════════════════════════ */
*,
*::before,
*::after { box-sizing: border-box; }
html {
scroll-behavior: smooth;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
padding: 0;
background-color: var(--bg-base);
color: var(--text-primary);
font-family: var(--font-body);
font-weight: 400;
line-height: 1.6;
min-height: 100vh;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transition: background-color var(--transition-slow), color var(--transition-base);
}
body::before {
content: "";
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
background:
radial-gradient(ellipse 80% 30% at 5% 0%, rgba(108, 111, 247, 0.10) 0%, transparent 50%),
radial-gradient(ellipse 55% 35% at 95% 100%, rgba(13, 197, 224, 0.07) 0%, transparent 50%),
radial-gradient(ellipse 40% 25% at 50% 50%, rgba(108, 111, 247, 0.04) 0%, transparent 50%);
}
body.light-theme::before {
background:
radial-gradient(ellipse 70% 40% at 5% 5%, rgba(184, 150, 12, 0.10) 0%, transparent 55%),
radial-gradient(ellipse 55% 40% at 96% 96%, rgba(140, 152, 180, 0.08) 0%, transparent 55%),
radial-gradient(ellipse 50% 25% at 50% 100%, rgba(200, 190, 170, 0.05) 0%, transparent 50%);
}
#root {
min-height: 100vh;
isolation: isolate;
}
/* ═══════════════════════════════════════════
TYPOGRAPHY
═══════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-display);
font-weight: 800;
letter-spacing: -0.02em;
line-height: 1.15;
color: var(--text-primary);
}
p { margin: 0; }
/* ═══════════════════════════════════════════
SCROLLBAR
═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
background: var(--border-hover);
border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
/* ═══════════════════════════════════════════
COMPONENT CLASSES
═══════════════════════════════════════════ */
@layer components {
/* Glass surface */
.glass {
background: var(--bg-glass);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border: 1px solid var(--border-color);
box-shadow: var(--shadow-card);
transition: background var(--transition-slow), border-color var(--transition-base), box-shadow var(--transition-base);
}
/* Premium glass — more opaque for modals & panels */
.premium-glass {
background: var(--bg-surface);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border: 1px solid var(--border-color);
box-shadow: var(--shadow-card-hover);
}
/* Indigo glow shadow */
.shadow-glow-indigo {
box-shadow: 0 0 28px var(--accent-glow);
}
/* Neon button — primary CTA with full glow treatment */
.neon-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
color: #fff;
font-family: var(--font-body);
font-weight: 800;
font-size: 0.8125rem;
text-transform: uppercase;
letter-spacing: 0.05em;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
box-shadow: 0 0 28px var(--accent-glow);
transition: transform var(--transition-base), filter var(--transition-base), box-shadow var(--transition-base);
user-select: none;
}
.neon-button:hover {
transform: translateY(-1px);
filter: brightness(1.15);
box-shadow: 0 0 36px var(--accent-glow);
}
.neon-button:active { transform: scale(0.97); }
.neon-button:disabled {
opacity: 0.5;
transform: none;
cursor: not-allowed;
filter: none;
}
/* Premium input — elevated input variant */
.input-premium {
width: 100%;
padding: 0.875rem 1.125rem;
background: var(--bg-elevated);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
color: var(--text-primary);
font-family: var(--font-body);
font-size: 0.9375rem;
outline: none;
transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
.input-premium::placeholder { color: var(--text-muted); }
.input-premium:focus {
border-color: var(--accent-primary);
box-shadow: 0 0 0 3px var(--accent-glow);
background: var(--bg-surface);
}
/* Elevated card */
.card {
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-card);
transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-card-hover);
border-color: var(--border-hover);
}
/* Input field */
.input {
width: 100%;
padding: 0.875rem 1.125rem;
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
color: var(--text-primary);
font-family: var(--font-body);
font-size: 0.9375rem;
outline: none;
transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
border-color: var(--accent-primary);
box-shadow: 0 0 0 3px var(--accent-glow);
background: var(--bg-elevated);
}
/* Primary button */
.btn-primary {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
color: #fff;
font-family: var(--font-body);
font-weight: 700;
font-size: 0.8125rem;
text-transform: uppercase;
letter-spacing: 0.05em;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
box-shadow: var(--shadow-glow);
transition: transform var(--transition-base), filter var(--transition-base), box-shadow var(--transition-base);
user-select: none;
}
.btn-primary:hover {
transform: translateY(-1px);
filter: brightness(1.1);
box-shadow: 0 0 32px var(--accent-glow);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled {
opacity: 0.5;
transform: none;
cursor: not-allowed;
filter: none;
}
/* Secondary button */
.btn-secondary {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem 1.5rem;
background: var(--bg-surface);
color: var(--text-secondary);
font-family: var(--font-body);
font-weight: 700;
font-size: 0.8125rem;
text-transform: uppercase;
letter-spacing: 0.05em;
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--transition-base);
user-select: none;
}
.btn-secondary:hover {
color: var(--text-primary);
border-color: var(--border-hover);
background: var(--bg-elevated);
}
/* Ghost button */
.btn-ghost {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.375rem;
padding: 0.5rem 0.75rem;
background: transparent;
color: var(--text-secondary);
font-family: var(--font-body);
font-weight: 600;
font-size: 0.75rem;
border: none;
border-radius: var(--radius-sm);
cursor: pointer;
transition: all var(--transition-base);
user-select: none;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-surface); }
/* Badge */
.badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.625rem;
background: var(--bg-surface);
border: 1px solid var(--border-color);
border-radius: 99px;
color: var(--text-secondary);
font-size: 0.625rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.badge-accent {
background: var(--accent-glow);
border-color: var(--accent-primary);
color: var(--accent-primary);
}
}
/* ═══════════════════════════════════════════
ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slide-up {
from { opacity: 0; transform: translateY(16px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-down {
from { opacity: 0; transform: translateY(-12px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-left {
from { opacity: 0; transform: translateX(12px); }
to { opacity: 1; transform: translateX(0); }
}
@keyframes scale-in {
from { opacity: 0; transform: scale(0.94); }
to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}
@keyframes pulse-glow {
0%, 100% { box-shadow: 0 0 12px var(--accent-glow); }
50% { box-shadow: 0 0 28px var(--accent-glow); }
}
@keyframes spin-slow {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes aura {
0%, 100% { opacity: 0.4; transform: scale(1); }
50% { opacity: 0.8; transform: scale(1.05); }
}
/* Animation utility classes */
.animate-fade-in { animation: fade-in 0.3s ease both; }
.animate-slide-up { animation: slide-up 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.animate-slide-down { animation: slide-down 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.animate-slide-left { animation: slide-left 0.3s ease both; }
.animate-scale-in { animation: scale-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 12s linear infinite; }
.animate-aura { animation: aura 3s ease-in-out infinite; }
/* Shimmer skeleton */
.skeleton {
background: linear-gradient(
90deg,
var(--bg-surface) 25%,
var(--bg-elevated) 50%,
var(--bg-surface) 75%
);
background-size: 200% 100%;
animation: shimmer 1.6s ease-in-out infinite;
border-radius: var(--radius-md);
}
/* Stagger grid */
.stagger > * {
animation: slide-up 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 55ms; }
.stagger > *:nth-child(3) { animation-delay: 110ms; }
.stagger > *:nth-child(4) { animation-delay: 165ms; }
.stagger > *:nth-child(5) { animation-delay: 220ms; }
.stagger > *:nth-child(6) { animation-delay: 275ms; }
.stagger > *:nth-child(7) { animation-delay: 330ms; }
.stagger > *:nth-child(8) { animation-delay: 385ms; }
.stagger > *:nth-child(9) { animation-delay: 440ms; }
.stagger > *:nth-child(10) { animation-delay: 495ms; }
.stagger > *:nth-child(11) { animation-delay: 550ms; }
.stagger > *:nth-child(12) { animation-delay: 605ms; }
.stagger > *:nth-child(n+13) { animation-delay: 660ms; }
/* ═══════════════════════════════════════════
AUDIO PLAYER SPECIFIC
═══════════════════════════════════════════ */
.player-artwork-ring {
box-shadow:
0 0 0 4px var(--bg-base),
0 0 0 5px var(--border-color),
0 8px 32px rgba(0, 0, 0, 0.5);
}
/* Range input styling */
input[type="range"] {
-webkit-appearance: none;
appearance: none;
height: 4px;
background: var(--border-color);
border-radius: 99px;
outline: none;
cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 14px;
height: 14px;
border-radius: 50%;
background: var(--accent-primary);
box-shadow: 0 0 8px var(--accent-glow);
cursor: pointer;
transition: transform var(--transition-base);
}
input[type="range"]::-webkit-slider-thumb:hover {
transform: scale(1.2);
}
/* ═══════════════════════════════════════════
UTILITIES
═══════════════════════════════════════════ */
.text-balance { text-wrap: balance; }
.truncate-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}