Carte de l'accueil, écran des défis, calculs, textes (18 langues) et animation retirés. Les défis déjà enregistrés sont ignorés à la lecture et disparaissent à la prochaine synchro. Le journal des épisodes (episodeLog / rewatchLog) reste, déplacé dans src/lib/episodeLog.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
310 lines
8.5 KiB
CSS
310 lines
8.5 KiB
CSS
@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.
|
|
*/
|
|
@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;
|
|
/* 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;
|
|
|
|
/* 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;
|
|
}
|
|
|
|
@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);
|
|
font-synthesis: none;
|
|
-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 (l'accent compris, plus foncé en clair pour rester lisible).
|
|
*/
|
|
: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-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-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: #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-scheme: light;
|
|
}
|
|
}
|
|
|
|
/* Petit libellé (champs, chiffres clés) : texte normal, pas de capitales espacées */
|
|
@utility eyebrow {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
line-height: 1.3;
|
|
color: var(--color-ink-3);
|
|
}
|
|
|
|
/* Code d'épisode : « S1 É19 », chiffres alignés */
|
|
@utility code {
|
|
font-weight: 500;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
@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-md 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-[4px] 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;
|
|
}
|
|
.btn-light {
|
|
@apply bg-ink text-bg;
|
|
}
|
|
.btn-ghost {
|
|
@apply border border-line-strong text-ink hover:border-ink-3;
|
|
}
|
|
.card {
|
|
@apply rounded-2xl border border-line bg-surface;
|
|
}
|
|
/* Pellicule : bande sombre, perforations dessinées en haut et en bas */
|
|
.film-strip {
|
|
position: relative;
|
|
height: 29px;
|
|
padding: 7px 6px;
|
|
border-radius: 2px;
|
|
background: var(--color-film);
|
|
}
|
|
.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 {
|
|
position: relative;
|
|
border-inline-start: 1.5px dashed var(--color-line-strong);
|
|
}
|
|
.ticket-stub::before,
|
|
.ticket-stub::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset-inline-start: -7px;
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 9999px;
|
|
background: var(--color-bg);
|
|
border: 1px solid var(--color-line);
|
|
}
|
|
.ticket-stub::before {
|
|
top: -7px;
|
|
}
|
|
.ticket-stub::after {
|
|
bottom: -7px;
|
|
}
|
|
.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;
|
|
}
|
|
}
|