@import 'tailwindcss'; /* * Thème AzuuCine — fond noir + une couleur d'accent (rouge par défaut, modifiable dans Réglages → Thème). * Pas de dégradés ni d'ombres : aplats, filets de 1px, boutons pilule. * Une seule police (Inter), comme une appli type Letterboxd. */ @theme { --color-bg: #0a0a0a; --color-surface: #111110; --color-surface-2: #181817; --color-line: #262624; --color-line-strong: #3a3936; --color-ink: #f4f2ee; --color-ink-2: #b3b0a8; --color-ink-3: #8a8781; /* Rouge pour texte / icônes / filets sur fond noir */ --color-accent: #ef4444; /* Rouge plein (boutons), avec texte blanc */ --color-accent-fill: #d11f2f; /* Texte posé sur un bouton plein (blanc ou noir selon le thème) */ --color-on-accent: #ffffff; --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; } @layer base { html, body, #root { min-height: 100%; background: var(--color-bg); color: var(--color-ink); color-scheme: dark; } body { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; } h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; } /* Évite le zoom automatique d'iOS sur les champs (police >= 16px) */ input, select, textarea { font-size: 16px; } button { cursor: pointer; } ::selection { background: var(--color-accent-fill); color: var(--color-on-accent); } } /* * Apparences (thèmes de fond). Le bloc @theme ci-dessus reste la palette SOMBRE * par défaut (utilitaires Tailwind bg-bg/text-ink/border-line), et « dark » est * donc l'apparence par défaut. On redéfinit ici UNIQUEMENT les jetons de palette * pour chaque apparence — les jetons d'accent (--color-accent*) sont posés par JS. */ :root[data-theme='light'] { --color-bg: #fafaf9; --color-surface: #ffffff; --color-surface-2: #f1f0ee; --color-line: #e5e3df; --color-line-strong: #d2cfc9; --color-ink: #1c1b1a; --color-ink-2: #57544e; --color-ink-3: #6b6862; color-scheme: light; } :root[data-theme='dark'] { --color-bg: #0a0a0a; --color-surface: #111110; --color-surface-2: #181817; --color-line: #262624; --color-line-strong: #3a3936; --color-ink: #f4f2ee; --color-ink-2: #b3b0a8; --color-ink-3: #8a8781; color-scheme: dark; } :root[data-theme='night'] { --color-bg: #000000; --color-surface: #0a0a0a; --color-surface-2: #141414; --color-line: #222222; --color-line-strong: #333333; --color-ink: #f4f2ee; --color-ink-2: #b3b0a8; --color-ink-3: #8a8781; color-scheme: dark; } :root[data-theme='starfield'] { --color-bg: #070b1c; --color-surface: #0c1226; --color-surface-2: #141c38; --color-line: #1f2a4d; --color-line-strong: #2d3a63; --color-ink: #eef1fb; --color-ink-2: #b4bbd6; --color-ink-3: #8089ab; color-scheme: dark; } /* Anti-flash : avant que le JS ne pose data-theme, un utilisateur en préférence claire ne doit pas voir la palette sombre le temps d'une frame. */ @media (prefers-color-scheme: light) { :root:not([data-theme]) { --color-bg: #fafaf9; --color-surface: #ffffff; --color-surface-2: #f1f0ee; --color-line: #e5e3df; --color-line-strong: #d2cfc9; --color-ink: #1c1b1a; --color-ink-2: #57544e; --color-ink-3: #6b6862; color-scheme: light; } } /* Fond étoilé (apparence « bleu nuit »), 100% CSS, sans image ni réseau. Une couche fixe derrière le contenu : nébuleuse bleue + étoiles en tuiles. */ :root[data-theme='starfield'] #root { background: transparent; } :root[data-theme='starfield'] body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-color: #070b1c; background-image: radial-gradient(1.5px 1.5px at 40px 60px, #ffffff, transparent), radial-gradient(1px 1px at 120px 20px, rgba(255, 255, 255, 0.8), transparent), radial-gradient(1px 1px at 200px 140px, #cbd5ff, transparent), radial-gradient(1.5px 1.5px at 260px 90px, rgba(255, 255, 255, 0.6), transparent), radial-gradient(1px 1px at 80px 190px, rgba(255, 255, 255, 0.7), transparent), radial-gradient(1px 1px at 300px 250px, #ffffff, transparent), radial-gradient(1.5px 1.5px at 340px 160px, rgba(203, 213, 255, 0.9), transparent), radial-gradient(1200px 600px at 70% -10%, rgba(45, 58, 99, 0.55), transparent 60%), radial-gradient(900px 500px at 15% 5%, rgba(31, 42, 77, 0.45), transparent 55%); background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, no-repeat, no-repeat; background-size: 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px, 100% 100%, 100% 100%; animation: starfield-twinkle 9s ease-in-out infinite; } @keyframes starfield-twinkle { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } } @media (prefers-reduced-motion: reduce) { :root[data-theme='starfield'] body::before { animation: none; } } /* Petite étiquette en capitales (titres de section, libellés de champs) */ @utility eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-ink-3); } @layer components { .field { @apply w-full rounded-xl border border-line bg-surface px-3.5 py-2.5 text-ink placeholder:text-ink-3 outline-none transition-colors focus:border-accent; } .label { @apply eyebrow mb-2 block; } .chip { @apply inline-flex shrink-0 items-center gap-1.5 rounded-full border border-line px-3.5 py-1.5 text-sm text-ink-2 transition-colors active:scale-[0.97]; } .chip-on { @apply border-ink bg-ink text-bg; } .btn { @apply inline-flex items-center justify-center gap-2 rounded-full px-5 py-2.5 text-[15px] font-medium transition-colors active:scale-[0.98] disabled:opacity-40; } .btn-primary { @apply bg-accent-fill text-on-accent; } .btn-light { @apply bg-ink text-bg; } .btn-ghost { @apply border border-ink/80 text-ink; } .card { @apply rounded-2xl border border-line bg-surface; } .no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; } } .safe-top { padding-top: env(safe-area-inset-top); } /* Couche « base » : une marge du bas explicite (pb-16, pb-40…) passe devant, sinon elle était annulée et le bas des fenêtres restait collé au bord (caché sous la barre des tâches ou la barre d'accueil). */ @layer base { .safe-bottom { padding-bottom: env(safe-area-inset-bottom); } /* Navigation au clavier : anneau visible (seulement au clavier, pas au toucher) */ :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; } } /* * Fenêtres plein écran (fiche, profil, recherche…) : figées à l'écran. * Seul le contenu défile, verticalement ; ni rebond qui fait bouger la fiche, ni glissement de côté. */ @layer components { .sheet { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: none; background: var(--color-bg); } .sheet-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; } /* Carrousels horizontaux à l'intérieur d'une fenêtre */ .sheet-scroll .no-scrollbar { touch-action: pan-x pan-y; } } /* Apparition douce des feuilles (formulaire, recherche) — pas de fondu de couleur */ @keyframes sheet-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } } .sheet-in { animation: sheet-in 0.22s ease-out; } @media (prefers-reduced-motion: reduce) { .sheet-in { animation: none; } } /* * Grande image de fond d'une fiche (façon Letterboxd / TV Time) : elle se fond dans le fond du thème * en bas (et sur les côtés sur ordinateur) grâce à un masque de transparence, sans couleur ajoutée. */ .hero-fade { -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); } @media (min-width: 64rem) { .hero-fade { -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 40%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-composite: intersect; } }