wetalk/src/index.css
ordinarthur 503e658f03
Some checks failed
Build & Deploy / build-and-deploy (push) Failing after 16s
feat: We Talk — podcast communautaire PWA
2026-04-12 11:45:29 +02:00

151 lines
3.7 KiB
CSS

@import "tailwindcss";
@theme {
/* Warm ivory base with deep indigo personality */
--color-bg: #FBF9F4;
--color-surface: #FFFFFF;
--color-surface-warm: #F5F0E8;
--color-primary: #5B4CDB;
--color-primary-hover: #4A3CC7;
--color-primary-soft: #EDE9FF;
--color-accent: #E8604C;
--color-accent-hover: #D44F3B;
--color-accent-soft: #FFF0ED;
--color-mint: #3BBFA0;
--color-mint-soft: #E6F9F3;
--color-sun: #F5B731;
--color-sun-soft: #FFF8E6;
--color-text: #1E1B33;
--color-text-secondary: #7C7893;
--color-border: #E8E4DC;
--color-border-light: #F2EFE8;
--font-heading: "Nunito", sans-serif;
--font-body: "Inter", sans-serif;
}
body {
margin: 0;
font-family: var(--font-body);
background-color: var(--color-bg);
color: var(--color-text);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading);
}
/* Noise texture overlay for depth */
.noise-bg {
position: relative;
}
.noise-bg::before {
content: "";
position: absolute;
inset: 0;
opacity: 0.03;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
pointer-events: none;
z-index: 0;
}
/* Glass card effect */
.glass {
background: rgba(255, 255, 255, 0.72);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
}
/* Soft organic shadow */
.shadow-organic {
box-shadow:
0 2px 8px rgba(91, 76, 219, 0.06),
0 12px 32px rgba(30, 27, 51, 0.08);
}
.shadow-organic-sm {
box-shadow:
0 1px 4px rgba(91, 76, 219, 0.04),
0 4px 12px rgba(30, 27, 51, 0.05);
}
/* Hover lift */
.lift {
transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.lift:hover {
transform: translateY(-4px);
}
/* Gradient text */
.gradient-text {
background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Audio range input */
input[type="range"] {
-webkit-appearance: none;
appearance: none;
height: 5px;
border-radius: 3px;
background: var(--color-border);
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 16px;
height: 16px;
border-radius: 50%;
background: var(--color-primary);
box-shadow: 0 0 0 3px rgba(91, 76, 219, 0.2);
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
transform: scale(1.25);
box-shadow: 0 0 0 5px rgba(91, 76, 219, 0.15);
}
/* Waveform bars animation for active player */
@keyframes wave {
0%, 100% { height: 8px; }
50% { height: 20px; }
}
.wave-bar {
width: 3px;
border-radius: 2px;
background: var(--color-primary);
animation: wave 0.8s ease-in-out infinite;
}
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
/* Pill shape for tags */
.pill {
border-radius: 999px;
padding: 4px 14px;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.02em;
}
/* Skeleton shimmer */
@keyframes shimmer {
0% { background-position: -200% 0; }
100% { background-position: 200% 0; }
}
.skeleton {
background: linear-gradient(90deg, var(--color-border-light) 25%, var(--color-surface-warm) 50%, var(--color-border-light) 75%);
background-size: 200% 100%;
animation: shimmer 1.5s ease-in-out infinite;
}