diff --git a/CLAUDE.md b/CLAUDE.md index 2f89c39..d0fa7de 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,7 +1,7 @@ # Bobinoo (ex-Kino, ex-AzuuCine) — contexte projet (lu automatiquement par Claude Code) PWA de suivi de films, séries, animes, K-dramas et C-dramas. Interface en français -(18 langues). Thème « salle obscure » chaud par défaut (clair = papier crème), accent ambre, sans dégradés. Une seule police embarquée : Inter. Accent fixe (pas de couleur au choix) ; apparences : auto / clair / sombre uniquement. Pas d'étiquettes en capitales espacées. +(18 langues). Thème « Encre » (28 nov. 2026) : blanc pur / noir profond, une seule touche de vert d'eau (accent fixe), coins droits, filets fins, titres de section soulignés ; seul élément décoratif : le billet « Reprendre ». Police embarquée : Epilogue. Apparences : auto / clair / sombre. Pas d'étiquettes en capitales espacées. ## Stack - **Vite + React 19 + TypeScript**, **Tailwind CSS v4**, PWA (vite-plugin-pwa, service worker auto-update). diff --git a/index.html b/index.html index 25e20d3..5a23b6b 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + diff --git a/package-lock.json b/package-lock.json index 7c1039f..cc05e4b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "azuucine", "version": "2.2.0", "dependencies": { - "@fontsource/inter": "^5.3.0", + "@fontsource-variable/epilogue": "^5.3.0", "lucide-react": "^0.468.0", "react": "^19.1.0", "react-dom": "^19.1.0" @@ -2057,10 +2057,10 @@ "node": ">=18" } }, - "node_modules/@fontsource/inter": { + "node_modules/@fontsource-variable/epilogue": { "version": "5.3.0", - "resolved": "https://registry.npmjs.org/@fontsource/inter/-/inter-5.3.0.tgz", - "integrity": "sha512-RofMylZmjlJEfELXeNHFWBRcSs75rGU/6bV2S2jfnvv/3rPXPGe0LgUJTklcHZ9lM4OZmAVFhcJPnACfb91A3g==", + "resolved": "https://registry.npmjs.org/@fontsource-variable/epilogue/-/epilogue-5.3.0.tgz", + "integrity": "sha512-atoQ7bIqgDLX+zlxbxmYpNZ7nqkwwZczkhJhWdaX+UBZufhPWP3vrcKaLVaNcCbRyHeSoX/y/HJNGjKhewEsAg==", "license": "OFL-1.1", "funding": { "url": "https://github.com/sponsors/ayuhito" diff --git a/package.json b/package.json index 4853bc0..4e284d6 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "audit": "npm audit --omit=dev" }, "dependencies": { - "@fontsource/inter": "^5.3.0", + "@fontsource-variable/epilogue": "^5.3.0", "lucide-react": "^0.468.0", "react": "^19.1.0", "react-dom": "^19.1.0" diff --git a/public/404.html b/public/404.html index a65c66a..dd90e74 100644 --- a/public/404.html +++ b/public/404.html @@ -9,16 +9,16 @@ diff --git a/public/icons/apple-touch-icon.png b/public/icons/apple-touch-icon.png index a9b79db..afec07c 100644 Binary files a/public/icons/apple-touch-icon.png and b/public/icons/apple-touch-icon.png differ diff --git a/public/icons/favicon.svg b/public/icons/favicon.svg index f190db0..ec40c3f 100644 --- a/public/icons/favicon.svg +++ b/public/icons/favicon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/public/icons/icon-192.png b/public/icons/icon-192.png index 5bc32c1..84971ae 100644 Binary files a/public/icons/icon-192.png and b/public/icons/icon-192.png differ diff --git a/public/icons/icon-512.png b/public/icons/icon-512.png index c1c6434..500a1fb 100644 Binary files a/public/icons/icon-512.png and b/public/icons/icon-512.png differ diff --git a/public/icons/icon-maskable-512.png b/public/icons/icon-maskable-512.png index 68e7f55..866a13e 100644 Binary files a/public/icons/icon-maskable-512.png and b/public/icons/icon-maskable-512.png differ diff --git a/public/legal.html b/public/legal.html index 5a4fa0d..29043b6 100644 --- a/public/legal.html +++ b/public/legal.html @@ -7,16 +7,16 @@ @@ -58,7 +58,7 @@
  • TMDB — This product uses the TMDB API but is not endorsed or certified by TMDB. Les informations et images des films et séries proviennent de The Movie Database (TMDB).
  • AniList — les informations et images des animes proviennent de AniList.
  • JustWatch — les offres de streaming (« Où regarder ») proviennent de JustWatch, via TMDB.
  • -
  • Police Inter — Rasmus Andersson, licence SIL Open Font License 1.1.
  • +
  • Police Epilogue — Etcetera Type Co, licence SIL Open Font License 1.1.
  • Icônes Lucide — licence ISC.
  • Logiciels libres — React (MIT), Vite (MIT), Tailwind CSS (MIT), Workbox (MIT).
  • Les affiches, images et marques des œuvres appartiennent à leurs ayants droit respectifs.
  • diff --git a/public/privacy.html b/public/privacy.html index 8b964fd..e554f0b 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -7,20 +7,20 @@ diff --git a/public/theme-boot.js b/public/theme-boot.js index eb0c4b0..1cb6cf9 100644 --- a/public/theme-boot.js +++ b/public/theme-boot.js @@ -10,7 +10,7 @@ if (!theme) return document.documentElement.setAttribute('data-theme', theme) var meta = document.querySelector('meta[name="theme-color"]') - if (meta) meta.setAttribute('content', theme === 'light' ? '#f1ebdf' : '#14120f') + if (meta) meta.setAttribute('content', theme === 'light' ? '#fefdfb' : '#090909') var scheme = document.querySelector('meta[name="color-scheme"]') if (scheme) scheme.setAttribute('content', theme) } catch (e) { diff --git a/src/components/HomeHero.tsx b/src/components/HomeHero.tsx index 8805bda..c0c8156 100644 --- a/src/components/HomeHero.tsx +++ b/src/components/HomeHero.tsx @@ -98,7 +98,7 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen return (
    (touchX.current = e.touches[0].clientX)} onTouchEnd={(e) => { @@ -129,7 +129,7 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen ) : null })} -
    +

    {state} {meta.map((m) => ( diff --git a/src/components/MediaCard.tsx b/src/components/MediaCard.tsx index 741c7f4..949853c 100644 --- a/src/components/MediaCard.tsx +++ b/src/components/MediaCard.tsx @@ -27,7 +27,7 @@ function Progress({ item }: { item: MediaItem }) { {size ? `/${size}` : ''}

    {size ? ( -
    +
    ) : null} diff --git a/src/components/ui.tsx b/src/components/ui.tsx index 8fd6148..8840157 100644 --- a/src/components/ui.tsx +++ b/src/components/ui.tsx @@ -27,11 +27,11 @@ export function StatTile({ label, value, hint, className }: { label: string; val ) } -/** Titre de section : gras, sans capitales ni filet. */ +/** Titre de section : texte simple souligné d'un filet noir (style « Encre »). */ export function SectionTitle({ children, action }: { children: ReactNode; action?: ReactNode }) { return ( -
    -

    {children}

    +
    +

    {children}

    {action}
    ) @@ -56,7 +56,7 @@ export function FilmStrip({ done, total, label, className }: { done: number; tot >
    {Array.from({ length: frames }, (_, k) => ( - + ))}
    diff --git a/src/index.css b/src/index.css index 973eea5..9a69f22 100644 --- a/src/index.css +++ b/src/index.css @@ -1,40 +1,34 @@ @import 'tailwindcss'; /* - * Thème Bobinoo — une salle de cinéma : fond « salle obscure » chaud (ou papier crème en clair), - * une seule couleur d'accent, l'ambre (fixe). - * Aplats et filets de 1px, coins presque droits (billets, jaquettes, pellicule). - * Une seule police, Inter, pour tout. + * Thème Bobinoo « Encre » : blanc pur et noir (ou noir profond et blanc en sombre), une seule touche + * de vert d'eau pour les actions. Minimaliste : peu de cartes, des filets fins, coins droits. + * Police : Epilogue (embarquée). Seul élément décoratif gardé : le billet « Reprendre ». */ @theme { - --color-bg: #14120f; - --color-surface: #1d1a16; - --color-surface-2: #26221c; - --color-line: #2f2a23; - --color-line-strong: #453e33; - --color-ink: #f1eadd; - --color-ink-2: #bcb2a1; - --color-ink-3: #948a79; - /* Accent pour texte / icônes / filets (version plus foncée en thème clair, pour rester lisible) */ - --color-accent: #f0a63a; - /* Accent plein (boutons) */ - --color-accent-fill: #f0a63a; - /* Texte posé sur un bouton plein (clair ou sombre selon la couleur) */ - --color-on-accent: #17130d; + --color-bg: #090909; + --color-surface: #121212; + --color-surface-2: #1b1b1b; + --color-line: #2b2b2b; + --color-line-strong: #424242; + --color-ink: #f2f2f0; + --color-ink-2: #c4c4c4; + --color-ink-3: #989898; + --color-accent: #53bfb6; + --color-accent-fill: #53bfb6; + --color-on-accent: #062b28; /* Voile sombre derrière les fenêtres (identique dans toutes les apparences) */ --color-scrim: rgb(0 0 0 / 0.7); - /* Pellicule (progression des épisodes) : sombre, et couleur papier en thème clair */ - --color-film: #0b0a08; - --color-film-frame: #2e2820; - --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; + --font-sans: 'Epilogue Variable', 'Epilogue', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; - /* Coins presque droits partout (les classes rounded-xl / 2xl existantes suivent) */ - --radius-md: 0.3125rem; - --radius-lg: 0.375rem; - --radius-xl: 0.375rem; - --radius-2xl: 0.5rem; - --radius-3xl: 0.5rem; + /* Coins droits partout (les classes rounded-xl / 2xl existantes suivent) ; affiches à peine arrondies */ + --radius-sm: 0.125rem; + --radius-md: 0.125rem; + --radius-lg: 0.125rem; + --radius-xl: 0.125rem; + --radius-2xl: 0.125rem; + --radius-3xl: 0.125rem; } @layer base { @@ -78,33 +72,35 @@ * 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 (l'accent compris, plus foncé en clair pour rester lisible). + * pour chaque apparence (l'accent compris). */ :root[data-theme='light'] { - --color-bg: #f1ebdf; - --color-surface: #fbf7ef; - --color-surface-2: #e9e1d2; - --color-line: #dcd2c0; - --color-line-strong: #c4b8a3; - --color-ink: #1e1a15; - --color-ink-2: #5a5246; - --color-ink-3: #6e6557; - --color-accent: #8f5410; - /* Pellicule claire, couleur papier : les images vues gardent l'accent */ - --color-film: #e2d8c5; - --color-film-frame: #cdc0a8; + --color-bg: #fefdfb; + --color-surface: #fefdfb; + --color-surface-2: #f4f3f1; + --color-line: #dbdbd8; + --color-line-strong: #bebebb; + --color-ink: #0d0d0d; + --color-ink-2: #383838; + --color-ink-3: #525252; + --color-accent: #00746d; + --color-accent-fill: #00746d; + --color-on-accent: #ffffff; color-scheme: light; } :root[data-theme='dark'] { - --color-bg: #14120f; - --color-surface: #1d1a16; - --color-surface-2: #26221c; - --color-line: #2f2a23; - --color-line-strong: #453e33; - --color-ink: #f1eadd; - --color-ink-2: #bcb2a1; - --color-ink-3: #948a79; + --color-bg: #090909; + --color-surface: #121212; + --color-surface-2: #1b1b1b; + --color-line: #2b2b2b; + --color-line-strong: #424242; + --color-ink: #f2f2f0; + --color-ink-2: #c4c4c4; + --color-ink-3: #989898; + --color-accent: #53bfb6; + --color-accent-fill: #53bfb6; + --color-on-accent: #062b28; color-scheme: dark; } @@ -112,17 +108,17 @@ claire ne doit pas voir la palette sombre le temps d'une frame. */ @media (prefers-color-scheme: light) { :root:not([data-theme]) { - --color-bg: #f1ebdf; - --color-surface: #fbf7ef; - --color-surface-2: #e9e1d2; - --color-line: #dcd2c0; - --color-line-strong: #c4b8a3; - --color-ink: #1e1a15; - --color-ink-2: #5a5246; - --color-ink-3: #6e6557; - --color-accent: #8f5410; - --color-film: #e2d8c5; - --color-film-frame: #cdc0a8; + --color-bg: #fefdfb; + --color-surface: #fefdfb; + --color-surface-2: #f4f3f1; + --color-line: #dbdbd8; + --color-line-strong: #bebebb; + --color-ink: #0d0d0d; + --color-ink-2: #383838; + --color-ink-3: #525252; + --color-accent: #00746d; + --color-accent-fill: #00746d; + --color-on-accent: #ffffff; color-scheme: light; } } @@ -155,7 +151,7 @@ @apply border-ink bg-ink text-bg; } .btn { - @apply inline-flex items-center justify-center gap-2 rounded-[4px] border border-transparent px-5 py-2.5 text-[15px] font-semibold transition-colors active:scale-[0.98] disabled:opacity-40; + @apply inline-flex items-center justify-center gap-2 rounded-sm border border-transparent px-5 py-2.5 text-[15px] font-semibold transition-colors active:scale-[0.98] disabled:opacity-40; } .btn-primary { @apply bg-accent-fill text-on-accent; @@ -169,31 +165,12 @@ .card { @apply rounded-2xl border border-line bg-surface; } - /* Pellicule : bande sombre, perforations dessinées en haut et en bas */ + /* Progression des épisodes : une fine barre découpée, un segment par épisode (regroupés au-delà de 40) */ .film-strip { - position: relative; - height: 29px; - padding: 7px 6px; - border-radius: 2px; - background: var(--color-film); + height: 6px; } .film-strip i { display: block; - border-radius: 1px; - } - .film-strip::before, - .film-strip::after { - content: ''; - position: absolute; - inset-inline: 6px; - height: 3px; - background: repeating-linear-gradient(90deg, var(--color-film-frame) 0 6px, transparent 6px 11px); - } - .film-strip::before { - top: 2px; - } - .film-strip::after { - bottom: 2px; } /* Billet « Reprendre » : talon détachable (pointillés + deux encoches) */ .ticket-stub { diff --git a/src/lib/shareCard.ts b/src/lib/shareCard.ts index e6facf3..c44306b 100644 --- a/src/lib/shareCard.ts +++ b/src/lib/shareCard.ts @@ -12,7 +12,7 @@ import { safePosterUrl } from './security' const W = 1080 const H = 1350 -const FONT = "'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif" +const FONT = "'Epilogue Variable', 'Epilogue', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif" function cssVar(name: string, fallback: string) { const v = getComputedStyle(document.documentElement).getPropertyValue(name).trim() @@ -21,14 +21,14 @@ function cssVar(name: string, fallback: string) { function colors() { return { - bg: '#14120f', - surface: '#1d1a16', - line: '#2f2a23', - ink: '#f1eadd', - ink2: '#bcb2a1', - ink3: '#948a79', - accent: cssVar('--color-accent', '#f0a63a'), - fill: cssVar('--color-accent-fill', '#f0a63a'), + bg: '#090909', + surface: '#121212', + line: '#2b2b2b', + ink: '#f2f2f0', + ink2: '#c4c4c4', + ink3: '#989898', + accent: cssVar('--color-accent', '#53bfb6'), + fill: cssVar('--color-accent-fill', '#53bfb6'), } } @@ -181,7 +181,7 @@ function drawBrand(ctx: CanvasRenderingContext2D, y: number) { async function newCanvas() { try { - await Promise.all([document.fonts.load(`700 40px Inter`), document.fonts.load(`400 40px Inter`), document.fonts.load(`600 40px Inter`)]) + await Promise.all([document.fonts.load(`700 40px 'Epilogue Variable'`), document.fonts.load(`400 40px 'Epilogue Variable'`), document.fonts.load(`600 40px 'Epilogue Variable'`)]) } catch { /* police système en secours */ } diff --git a/src/lib/theme.ts b/src/lib/theme.ts index 90cac40..515121d 100644 --- a/src/lib/theme.ts +++ b/src/lib/theme.ts @@ -7,8 +7,8 @@ import type { ThemeMode } from '../types' /** Couleur de fond de chaque apparence (barre du navigateur / de l'app installée). */ const CANVAS: Record, string> = { - light: '#f1ebdf', - dark: '#14120f', + light: '#fefdfb', + dark: '#090909', } /** Anciennes apparences (Nuit, Étoilé) : relues comme « sombre ». */ diff --git a/src/main.tsx b/src/main.tsx index dbb96b3..b8a5755 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -8,11 +8,8 @@ import Root from './Root' import { applySavedTheme } from './lib/theme' import ErrorBoundary from './components/ErrorBoundary' import { installErrorReporting } from './lib/errorReporter' -// Police embarquée dans l'app (Inter, jeu « latin ») : aucun appel à Google Fonts, fonctionne hors-ligne -import '@fontsource/inter/latin-400.css' -import '@fontsource/inter/latin-500.css' -import '@fontsource/inter/latin-600.css' -import '@fontsource/inter/latin-700.css' +// Police embarquée dans l'app (Epilogue, variable) : aucun appel à Google Fonts, fonctionne hors-ligne +import '@fontsource-variable/epilogue/wght.css' import './index.css' // Thème choisi (couleur + clair/sombre/étoilé) appliqué tout de suite, sans attendre le chargement de l'app diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index b600ceb..f375f0a 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -15,7 +15,7 @@ import type { SearchResult } from '../lib/catalogApi' import { CACHE_EVENT, isCaughtUp, loadAiring, needsCheck, refreshAiring, saveAiring, trackable } from '../lib/airing' import { useOnResume } from '../lib/onResume' import { calendarEvents } from '../lib/releases' -import { cx, todayISO } from '../lib/utils' +import { todayISO } from '../lib/utils' import { useMedia } from '../store' import type { MediaItem } from '../types' @@ -29,7 +29,6 @@ interface Props { onCalendar: () => void } -/** Rangée d'affiches. `shelf` : jaquettes de vidéoclub, avec le titre écrit sur la tranche. */ // Rang aléatoire par titre, tiré une fois par lancement de l'app const shuffle = new Map() function shuffleRank(id: string): number { @@ -38,21 +37,13 @@ function shuffleRank(id: string): number { return r } -function PosterStrip({ items, onOpen, shelf }: { items: MediaItem[]; onOpen: (item: MediaItem) => void; shelf?: boolean }) { +/** Rangée d'affiches. */ +function PosterStrip({ items, onOpen }: { items: MediaItem[]; onOpen: (item: MediaItem) => void }) { return (
    {items.map((item) => ( -