update theme

This commit is contained in:
thibaud-leclere
2026-03-30 12:13:19 +02:00
parent 99abd78495
commit 3c15c12255
12 changed files with 966 additions and 120 deletions

View File

@@ -11,3 +11,4 @@ MAILER_DSN=null://null
TMDB_API_TOKEN= TMDB_API_TOKEN=
SERVER_NAME= SERVER_NAME=

1
.gitignore vendored
View File

@@ -2,6 +2,7 @@
/.env.local /.env.local
/.env.local.php /.env.local.php
/.env.*.local /.env.*.local
/.env
/config/secrets/*/*.decrypt.private.php /config/secrets/*/*.decrypt.private.php
/public/bundles/ /public/bundles/
/var/ /var/

View File

@@ -1,152 +1,240 @@
body { /* ============================================================
background-color: skyblue; SUNRISE — Lumineux, éditorial, chaleureux
font-family: 'Noto Sans', sans-serif; ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
:root {
--bg: #fef6ee;
--surface: #ffffff;
--surface-warm: #fff7ed;
--surface-tint: #ffedd5;
--orange: #ea580c;
--orange-mid: #f97316;
--orange-light: #fed7aa;
--text: #1c1917;
--text-muted: #78716c;
--text-faint: #a8a29e;
--border: #e8d5c0;
--border-warm: #fdba74;
--shadow-warm: rgba(180, 100, 30, 0.08);
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 18px;
} }
body {
background-color: var(--bg);
font-family: 'Inter', sans-serif;
color: var(--text);
min-height: 100vh;
margin: 0;
}
/* ── Game grid ── */
#actors { #actors {
border-collapse: collapse; border-collapse: separate;
margin: 40px auto; border-spacing: 5px;
margin: 56px auto;
} }
#actors td { #actors td {
width: 32px; width: 38px;
height: 32px; height: 38px;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
} }
.letter-input { .letter-input {
width: 32px; width: 38px;
height: 32px; height: 38px;
text-align: center; text-align: center;
font-size: 16px; font-family: 'Inter', sans-serif;
font-weight: bold; font-size: 15px;
border: 2px solid #d1d5db; font-weight: 700;
border-radius: 4px; border: 2px solid var(--border);
border-radius: var(--radius-sm);
text-transform: uppercase; text-transform: uppercase;
padding: 0; padding: 0;
box-sizing: border-box; background: var(--surface);
color: var(--text);
transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
box-shadow: 0 1px 3px var(--shadow-warm);
} }
.letter-input:focus { .letter-input:focus {
outline: none; outline: none;
border-color: #2563eb; border-color: var(--orange);
box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
} }
.letter-highlighted { .letter-highlighted {
background-color: #fecaca; background-color: var(--orange-light);
border-color: #dc2626; border-color: var(--orange);
color: var(--orange);
} }
/* ── Popover ── */
.popover-trigger { .popover-trigger {
width: 28px; width: 28px;
height: 28px; height: 28px;
border-radius: 50%; border-radius: 50%;
border: 1px solid #d1d5db; border: 1.5px solid var(--border);
background: white; background: var(--surface);
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: 12px;
color: #6b7280; font-weight: 600;
color: var(--text-muted);
display: flex;
align-items: center;
justify-content: center;
transition: border-color 0.15s, color 0.15s, background 0.15s;
box-shadow: 0 1px 3px var(--shadow-warm);
} }
.popover-trigger:hover { .popover-trigger:hover {
background: #f3f4f6; border-color: var(--orange);
color: var(--orange);
background: var(--surface-tint);
} }
.actor-popover { .actor-popover {
background: white; background: var(--surface);
border: 1px solid #d1d5db; border: 1px solid var(--border);
border-radius: 8px; border-radius: var(--radius-md);
padding: 12px 16px; padding: 10px 16px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); box-shadow: 0 4px 20px var(--shadow-warm);
z-index: 100; z-index: 100;
font-size: 14px; font-size: 13px;
color: var(--text);
} }
/* ── Auth pages ── */
.auth-container { .auth-container {
max-width: 400px; max-width: 420px;
margin: 80px auto; margin: 80px auto;
padding: 32px; padding: 40px;
background: white; background: var(--surface);
border-radius: 8px; border: 1px solid var(--border);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); border-radius: var(--radius-lg);
box-shadow: 0 4px 32px var(--shadow-warm);
} }
.auth-container h1 { .auth-container h1 {
margin: 0 0 24px; font-family: 'Fraunces', serif;
font-size: 26px;
font-weight: 700;
text-align: center; text-align: center;
margin: 0 0 28px;
letter-spacing: -0.3px;
color: var(--text);
} }
.auth-container label { .auth-container label {
display: block; display: block;
margin-bottom: 4px; margin-bottom: 6px;
font-size: 13px;
font-weight: 600; font-weight: 600;
color: var(--text);
} }
.auth-container input[type="email"], .auth-container input[type="email"],
.auth-container input[type="password"] { .auth-container input[type="password"] {
width: 100%; width: 100%;
padding: 8px 12px; padding: 11px 14px;
margin-bottom: 16px; margin-bottom: 16px;
border: 1px solid #ccc; border: 1.5px solid var(--border);
border-radius: 4px; border-radius: var(--radius-sm);
font-size: 16px; font-size: 15px;
box-sizing: border-box; font-family: 'Inter', sans-serif;
background: var(--surface-warm);
color: var(--text);
transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-container input[type="email"]:focus,
.auth-container input[type="password"]:focus {
outline: none;
border-color: var(--orange);
box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
} }
.auth-container button[type="submit"] { .auth-container button[type="submit"] {
width: 100%; width: 100%;
padding: 10px; padding: 12px;
background: #2563eb; background: var(--orange);
color: white; color: white;
border: none; border: none;
border-radius: 4px; border-radius: 100px;
font-size: 16px; font-family: 'Inter', sans-serif;
font-size: 15px;
font-weight: 700;
cursor: pointer; cursor: pointer;
transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
} }
.auth-container button[type="submit"]:hover { .auth-container button[type="submit"]:hover {
background: #1d4ed8; background: var(--orange-mid);
transform: translateY(-1px);
box-shadow: 0 6px 20px rgba(234, 88, 12, 0.3);
} }
.auth-error { .auth-error {
background: #fef2f2; background: #fef2f2;
color: #dc2626; color: #dc2626;
padding: 12px; padding: 12px;
border-radius: 4px; border-radius: var(--radius-sm);
margin-bottom: 16px; margin-bottom: 16px;
font-size: 14px;
} }
.auth-link { .auth-link {
text-align: center; text-align: center;
margin-top: 16px; margin-top: 20px;
font-size: 13px;
color: var(--text-muted);
} }
.auth-link a { .auth-link a {
color: #2563eb; color: var(--orange);
font-weight: 600;
text-decoration: none;
} }
/* Navbar */ .auth-link a:hover {
text-decoration: underline;
}
/* ── Navbar ── */
.navbar { .navbar {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 8px 24px; padding: 0 40px;
background: white; height: 64px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); background: var(--surface);
border-bottom: 1px solid var(--border);
box-shadow: 0 1px 0 var(--border), 0 2px 12px var(--shadow-warm);
} }
.navbar-brand { .navbar-brand {
font-family: 'Fraunces', serif;
font-weight: 700; font-weight: 700;
font-size: 18px; font-size: 22px;
color: #1f2937; letter-spacing: -0.3px;
color: var(--orange);
text-decoration: none; text-decoration: none;
} }
.navbar-left,
.navbar-right { .navbar-right {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: 6px;
} }
.navbar-item { .navbar-item {
@@ -159,24 +247,27 @@ body {
cursor: pointer; cursor: pointer;
padding: 8px; padding: 8px;
border-radius: 50%; border-radius: 50%;
color: #4b5563; color: var(--text-muted);
position: relative;
display: flex; display: flex;
align-items: center; align-items: center;
position: relative;
transition: background 0.15s, color 0.15s;
} }
.navbar-icon:hover { .navbar-icon:hover {
background: #f3f4f6; background: var(--surface-tint);
color: var(--orange);
} }
/* Badge */ /* ── Badge ── */
.badge { .badge {
position: absolute; position: absolute;
top: 2px; top: 2px;
right: 2px; right: 2px;
background: #dc2626; background: var(--orange);
color: white; color: white;
font-size: 11px; font-size: 10px;
font-weight: 700; font-weight: 700;
min-width: 16px; min-width: 16px;
height: 16px; height: 16px;
@@ -187,62 +278,70 @@ body {
padding: 0 4px; padding: 0 4px;
} }
/* Dropdown */ /* ── Dropdown ── */
.dropdown-menu { .dropdown-menu {
position: absolute; position: absolute;
top: 100%; top: calc(100% + 8px);
right: 0; right: 0;
background: white; background: var(--surface);
border: 1px solid #e5e7eb; border: 1px solid var(--border);
border-radius: 8px; border-radius: var(--radius-md);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); box-shadow: 0 8px 32px var(--shadow-warm), 0 2px 8px rgba(0, 0, 0, 0.06);
min-width: 200px; min-width: 210px;
z-index: 200; z-index: 200;
padding: 4px 0; padding: 6px;
margin-top: 4px;
} }
.dropdown-header { .dropdown-header {
padding: 8px 16px; padding: 8px 12px;
font-size: 11px;
font-weight: 600; font-weight: 600;
font-size: 13px; color: var(--text-faint);
color: #6b7280; text-transform: uppercase;
border-bottom: 1px solid #e5e7eb; letter-spacing: 0.8px;
border-bottom: 1px solid var(--border);
margin-bottom: 4px;
} }
.dropdown-item { .dropdown-item {
display: block; display: block;
width: 100%; width: 100%;
padding: 8px 16px; padding: 9px 12px;
text-align: left; text-align: left;
background: none; background: none;
border: none; border: none;
cursor: pointer; cursor: pointer;
font-family: 'Inter', sans-serif;
font-size: 14px; font-size: 14px;
color: #1f2937; color: var(--text);
text-decoration: none; text-decoration: none;
border-radius: var(--radius-sm);
transition: background 0.12s, color 0.12s;
} }
.dropdown-item:hover { .dropdown-item:hover {
background: #f3f4f6; background: var(--surface-tint);
color: var(--orange);
} }
.dropdown-empty { .dropdown-empty {
padding: 12px 16px; padding: 12px 16px;
color: #9ca3af; color: var(--text-faint);
font-size: 13px; font-size: 13px;
margin: 0; margin: 0;
} }
/* Notifications */ /* ── Notifications ── */
.notifications-list { .notifications-list {
max-height: 300px; max-height: 300px;
overflow-y: auto; overflow-y: auto;
} }
.notification-item { .notification-item {
padding: 8px 16px; padding: 10px 16px;
border-bottom: 1px solid #f3f4f6; border-bottom: 1px solid var(--surface-warm);
} }
.notification-item:last-child { .notification-item:last-child {
@@ -250,25 +349,26 @@ body {
} }
.notification-item p { .notification-item p {
margin: 0 0 2px; margin: 0 0 3px;
font-size: 13px; font-size: 13px;
color: #1f2937; color: var(--text);
} }
.notification-item time { .notification-item time {
font-size: 11px; font-size: 11px;
color: #9ca3af; color: var(--text-faint);
} }
.notification-unread { .notification-unread {
background: #eff6ff; background: var(--surface-warm);
} }
/* Modal */ /* ── Modal ── */
.modal-overlay { .modal-overlay {
position: fixed; position: fixed;
inset: 0; inset: 0;
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.4);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -280,78 +380,100 @@ body {
} }
.modal { .modal {
background: white; background: var(--surface);
border-radius: 12px; border-radius: var(--radius-lg);
width: 100%; width: 100%;
max-width: 480px; max-width: 480px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
} }
.modal-header { .modal-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 16px 24px; padding: 20px 28px;
border-bottom: 1px solid #e5e7eb; border-bottom: 1px solid var(--border);
} }
.modal-header h2 { .modal-header h2 {
margin: 0; margin: 0;
font-size: 18px; font-size: 18px;
font-weight: 700;
color: var(--text);
} }
.modal-close { .modal-close {
background: none; background: none;
border: none; border: none;
font-size: 24px; font-size: 22px;
cursor: pointer; cursor: pointer;
color: #6b7280; color: var(--text-muted);
padding: 0; padding: 0;
line-height: 1; line-height: 1;
transition: color 0.12s;
}
.modal-close:hover {
color: var(--text);
} }
.modal-body { .modal-body {
padding: 24px; padding: 24px 28px;
} }
.modal-body p { .modal-body p {
margin: 0 0 16px; margin: 0 0 16px;
color: #4b5563; color: var(--text-muted);
font-size: 14px; font-size: 14px;
} }
.modal-footer { .modal-footer {
padding: 16px 24px; padding: 16px 28px;
border-top: 1px solid #e5e7eb; border-top: 1px solid var(--border);
text-align: right; text-align: right;
} }
/* ── Buttons ── */
.btn { .btn {
padding: 8px 20px; padding: 9px 20px;
border: none; border: none;
border-radius: 6px; border-radius: 100px;
font-family: 'Inter', sans-serif;
font-size: 14px; font-size: 14px;
font-weight: 600;
cursor: pointer; cursor: pointer;
text-decoration: none;
display: inline-flex;
align-items: center;
transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
} }
.btn-primary { .btn-primary {
background: #2563eb; background: var(--orange);
color: white; color: white;
} }
.btn-primary:hover { .btn-primary:hover {
background: #1d4ed8; background: var(--orange-mid);
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(234, 88, 12, 0.25);
} }
.btn-primary:disabled { .btn-primary:disabled {
background: #93c5fd; background: var(--orange-light);
color: var(--text-muted);
cursor: not-allowed; cursor: not-allowed;
transform: none;
box-shadow: none;
} }
/* ── Modal feedback ── */
.modal-feedback { .modal-feedback {
margin-top: 12px; margin-top: 12px;
padding: 8px 12px; padding: 10px 14px;
border-radius: 4px; border-radius: var(--radius-sm);
font-size: 13px; font-size: 13px;
} }

View File

@@ -25,6 +25,7 @@ security:
access_control: access_control:
- { path: ^/login, roles: PUBLIC_ACCESS } - { path: ^/login, roles: PUBLIC_ACCESS }
- { path: ^/register, roles: PUBLIC_ACCESS } - { path: ^/register, roles: PUBLIC_ACCESS }
- { path: ^/$, roles: PUBLIC_ACCESS }
- { path: ^/, roles: ROLE_USER } - { path: ^/, roles: ROLE_USER }
when@test: when@test:

194
designs/sunrise-charte.md Normal file
View File

@@ -0,0 +1,194 @@
# Charte graphique — Sunrise
Thème lumineux, éditorial, chaleureux. Inspiré des tons ambrés du petit matin.
Sobre sans être froid, accessible sans être infantile.
---
## Couleurs
### Palette principale
| Token | Hex | Usage |
|---------------|-----------|--------------------------------------------|
| `--bg` | `#fef6ee` | Fond de page — crème orangé très doux |
| `--surface` | `#ffffff` | Cartes, navbar, modals |
| `--surface-warm` | `#fff7ed` | Fond de champ input, surfaces secondaires |
| `--surface-tint` | `#ffedd5` | Hover sur items de dropdown, fond actif |
### Orange
| Token | Hex | Usage |
|------------------|-----------|-------------------------------------------------|
| `--orange` | `#ea580c` | Couleur principale — boutons, liens, logo |
| `--orange-mid` | `#f97316` | Hover sur boutons primaires |
| `--orange-light` | `#fed7aa` | Fond cellule surlignée (grille de jeu) |
| `--orange-pale` | `#fff7ed` | Fond très pâle — identique à `--surface-warm` |
> La couleur d'accentuation unique est l'orange `#ea580c` (orange-600 Tailwind).
> Ne pas introduire de seconde couleur d'accentuation.
### Texte
| Token | Hex | Usage |
|-----------------|-----------|-------------------------------------------|
| `--text` | `#1c1917` | Corps de texte, labels, titres |
| `--text-muted` | `#78716c` | Texte secondaire, descriptions |
| `--text-faint` | `#a8a29e` | Placeholders, métadonnées, separateurs |
### Bordures et ombres
| Token | Valeur | Usage |
|------------------|---------------------------------|-----------------------------------|
| `--border` | `#e8d5c0` | Bordures standard — chaudes |
| `--border-warm` | `#fdba74` | Bordure cellule active (grille) |
| `--shadow-warm` | `rgba(180, 100, 30, 0.08)` | Ombre douce sur cartes et navbar |
---
## Typographie
### Polices
| Rôle | Famille | Google Fonts |
|---------------|------------------|-------------------------------------|
| Titres / Logo | **Fraunces** | Sérif optique, poids 400 et 700 |
| Corps | **Inter** | Sans-serif, poids 400, 500, 600, 700 |
```html
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
```
### Hiérarchie
| Niveau | Police | Taille | Poids | Utilisation |
|------------|------------|--------|-------|--------------------------------------|
| H1 page | Fraunces | 26px | 700 | Titre de page (login, register) |
| H2 modal | Inter | 18px | 700 | Titres de modals |
| Logo | Fraunces | 22px | 700 | Navbar brand |
| Corps | Inter | 15px | 400 | Texte courant, inputs |
| Label | Inter | 13px | 600 | Labels de formulaire |
| Secondaire | Inter | 14px | 400 | Items dropdown, descriptions |
| Micro | Inter | 1112px| 600 | Badges, headers dropdown, métadonnées|
### Règles typographiques
- Titres Fraunces : `letter-spacing: -0.3px` pour un rendu serré et élégant
- Pas de `text-transform: uppercase` sauf pour des labels discrets (taille ≤ 12px, spacing ≥ 0.5px)
- Interlignage corps : `1.5` minimum
- Taille minimale affichée : `11px`
---
## Rayons (Border radius)
| Token | Valeur | Usage |
|---------------|--------|----------------------------------------------|
| `--radius-sm` | `6px` | Inputs, cellules grille, petits éléments |
| `--radius-md` | `10px` | Dropdowns, popovers, tooltips |
| `--radius-lg` | `18px` | Cartes auth, modals |
| Pilule | `100px`| Bouton primaire, bouton submit |
> Le bouton primaire utilise systématiquement `border-radius: 100px` (forme pilule).
> Les champs de saisie utilisent `--radius-sm` (6px), jamais la pilule.
---
## Composants
### Bouton primaire
```css
background: #ea580c;
color: #ffffff;
border-radius: 100px;
padding: 9px 20px;
font-size: 14px;
font-weight: 600;
```
**Hover :** `background: #f97316` + `transform: translateY(-1px)` + `box-shadow: 0 4px 16px rgba(234,88,12,0.25)`
### Navbar
- Hauteur : `64px`
- Fond : `#ffffff`
- Bordure basse : `1px solid #e8d5c0`
- Ombre : `0 2px 12px rgba(180,100,30,0.08)`
- Padding horizontal : `40px`
- Logo (Fraunces, 22px, `#ea580c`) à gauche
- Actions à droite — icônes rondes (`border-radius: 50%`), hover sur fond `--surface-tint`
### Champ de formulaire
```css
background: #fff7ed;
border: 1.5px solid #e8d5c0;
border-radius: 6px;
padding: 11px 14px;
font-size: 15px;
```
**Focus :** `border-color: #ea580c` + `box-shadow: 0 0 0 3px rgba(234,88,12,0.12)`
### Cellule de grille (lettre)
- Taille : `38 × 38px`
- Fond normal : `#ffffff`, bordure `#e8d5c0`
- Fond rempli : `#fff7ed`, bordure `#fdba74`
- **Surlignée** (lettre cible) : fond `#fed7aa`, bordure `#ea580c`, texte `#ea580c`
- Focus : bordure `#ea580c` + ring `rgba(234,88,12,0.15)`
- Espacement entre cellules (`border-spacing`) : `5px`
### Dropdown
- Fond : `#ffffff`
- Bordure : `1px solid #e8d5c0`
- Rayon : `10px`
- Ombre : `0 8px 32px rgba(180,100,30,0.08), 0 2px 8px rgba(0,0,0,0.06)`
- Item hover : fond `#ffedd5`, couleur `#ea580c`
- Header : `11px`, uppercase, `#a8a29e`, séparateur bas
### Badge notification
```css
background: #ea580c;
color: #ffffff;
border-radius: 8px;
font-size: 10px;
font-weight: 700;
min-width: 16px;
height: 16px;
```
### Modal
- Fond : `#ffffff`
- Rayon : `12px` (légèrement plus petit que `--radius-lg` pour la hiérarchie visuelle)
- Ombre : `0 8px 24px rgba(0,0,0,0.12)`
- Overlay : `rgba(0,0,0,0.4)`
---
## Ombres
Toutes les ombres sont **chaudes** (teinte orange-brun), jamais neutres grises.
| Niveau | Valeur CSS |
|--------------|------------------------------------------------------------------|
| Légère | `0 1px 3px rgba(180,100,30,0.08)` |
| Navbar | `0 2px 12px rgba(180,100,30,0.08)` |
| Carte | `0 4px 32px rgba(180,100,30,0.08)` |
| Dropdown | `0 8px 32px rgba(180,100,30,0.08), 0 2px 8px rgba(0,0,0,0.06)` |
| Bouton hover | `0 4px 16px rgba(234,88,12,0.25)` |
---
## Règles d'usage
1. **Orange réservé à l'accentuation.** Ne pas l'utiliser pour du texte courant de longue lecture.
2. **Fond de page ≠ blanc.** Toujours `#fef6ee` pour le fond, `#ffffff` pour les surfaces élevées (cartes, navbar).
3. **Ombres chaudes uniquement.** Aucune ombre `rgba(0,0,0,X)` seule sur des surfaces visibles — toujours teintée.
4. **Bouton primaire = pilule.** Boutons destructifs ou secondaires peuvent utiliser `--radius-sm`.
5. **Fraunces uniquement pour les titres de page et le logo.** Pas dans le corps, pas dans les labels.
6. **Pas de couleur rouge** pour les erreurs — utiliser `#b45309` (ambre foncé) ou `#dc2626` uniquement pour les messages d'erreur critiques, jamais comme couleur d'interface.

515
designs/sunrise.html Normal file
View File

@@ -0,0 +1,515 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Actorle — Design "Sunrise" (lumineux, éditorial)</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
/* ============================================================
SUNRISE — Lumineux, éditorial, chaleureux
Typographie sérif pour le titre, sans-serif pour le corps
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #fef6ee;
--surface: #ffffff;
--surface-warm: #fff7ed;
--surface-tint: #ffedd5;
--orange: #ea580c;
--orange-mid: #f97316;
--orange-light: #fed7aa;
--orange-pale: #fff7ed;
--text: #1c1917;
--text-muted: #78716c;
--text-faint: #a8a29e;
--border: #e8d5c0;
--border-warm: #fdba74;
--shadow-warm: rgba(180, 100, 30, 0.08);
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 18px;
}
body {
background-color: var(--bg);
font-family: 'Inter', sans-serif;
color: var(--text);
min-height: 100vh;
}
/* ── Navbar ── */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 40px;
height: 64px;
background: var(--surface);
border-bottom: 1px solid var(--border);
box-shadow: 0 1px 0 var(--border), 0 2px 12px var(--shadow-warm);
}
.navbar-brand {
font-family: 'Fraunces', serif;
font-weight: 700;
font-size: 22px;
letter-spacing: -0.3px;
color: var(--orange);
text-decoration: none;
}
.navbar-right {
display: flex;
align-items: center;
gap: 6px;
}
.navbar-icon {
background: none;
border: none;
cursor: pointer;
padding: 8px;
border-radius: 50%;
color: var(--text-muted);
display: flex;
align-items: center;
transition: background 0.15s, color 0.15s;
}
.navbar-icon:hover {
background: var(--surface-tint);
color: var(--orange);
}
.btn {
padding: 9px 20px;
border: none;
border-radius: 100px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
display: inline-flex;
align-items: center;
font-family: inherit;
}
.btn-primary {
background: var(--orange);
color: #fff;
}
.btn-primary:hover {
background: var(--orange-mid);
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(234,88,12,0.25);
}
/* ── Game grid ── */
.game-wrapper {
display: flex;
flex-direction: column;
align-items: center;
padding: 56px 24px;
}
.game-header {
font-family: 'Fraunces', serif;
font-size: 15px;
color: var(--text-muted);
margin-bottom: 32px;
letter-spacing: 0.3px;
}
.game-header em {
font-style: italic;
color: var(--orange);
}
table#actors {
border-collapse: separate;
border-spacing: 5px;
}
#actors td {
width: 38px;
height: 38px;
text-align: center;
vertical-align: middle;
}
.letter-input {
width: 38px;
height: 38px;
text-align: center;
font-size: 15px;
font-weight: 700;
border: 2px solid var(--border);
border-radius: var(--radius-sm);
text-transform: uppercase;
padding: 0;
background: var(--surface);
color: var(--text);
transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
font-family: inherit;
box-shadow: 0 1px 3px var(--shadow-warm);
}
.letter-input:focus {
outline: none;
border-color: var(--orange);
box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}
.letter-input.filled {
background: var(--surface-warm);
border-color: var(--border-warm);
color: var(--text);
}
.letter-highlighted {
background: var(--orange-light) !important;
border-color: var(--orange) !important;
color: var(--orange) !important;
}
/* ── Popover ── */
.popover-trigger {
width: 28px;
height: 28px;
border-radius: 50%;
border: 1.5px solid var(--border);
background: var(--surface);
cursor: pointer;
font-size: 12px;
font-weight: 600;
color: var(--text-muted);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s;
box-shadow: 0 1px 3px var(--shadow-warm);
}
.popover-trigger:hover {
border-color: var(--orange);
color: var(--orange);
background: var(--surface-tint);
}
.actor-popover {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 10px 16px;
box-shadow: 0 4px 20px var(--shadow-warm);
z-index: 100;
font-size: 13px;
color: var(--text);
}
/* ── Auth ── */
.page-auth {
display: flex;
justify-content: center;
padding: 56px 24px;
}
.auth-container {
width: 100%;
max-width: 420px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 40px;
box-shadow: 0 4px 32px var(--shadow-warm);
}
.auth-container h1 {
font-family: 'Fraunces', serif;
font-size: 26px;
font-weight: 700;
text-align: center;
margin-bottom: 8px;
color: var(--text);
}
.auth-subtitle {
text-align: center;
color: var(--text-muted);
font-size: 14px;
margin-bottom: 28px;
}
.auth-container label {
display: block;
margin-bottom: 6px;
font-size: 13px;
font-weight: 600;
color: var(--text);
}
.auth-container input[type="email"],
.auth-container input[type="password"] {
width: 100%;
padding: 11px 14px;
margin-bottom: 16px;
border: 1.5px solid var(--border);
border-radius: var(--radius-sm);
font-size: 15px;
background: var(--surface-warm);
color: var(--text);
transition: border-color 0.15s, box-shadow 0.15s;
font-family: inherit;
}
.auth-container input:focus {
outline: none;
border-color: var(--orange);
box-shadow: 0 0 0 3px rgba(234,88,12,0.12);
}
.auth-container button[type="submit"] {
width: 100%;
padding: 12px;
background: var(--orange);
color: white;
border: none;
border-radius: 100px;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s;
font-family: inherit;
letter-spacing: 0.2px;
}
.auth-container button[type="submit"]:hover {
background: var(--orange-mid);
transform: translateY(-1px);
box-shadow: 0 6px 20px rgba(234,88,12,0.3);
}
.auth-divider {
display: flex;
align-items: center;
gap: 12px;
margin: 20px 0;
color: var(--text-faint);
font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--border);
}
.auth-link {
text-align: center;
margin-top: 20px;
font-size: 13px;
color: var(--text-muted);
}
.auth-link a { color: var(--orange); text-decoration: none; font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }
/* ── Dropdown ── */
.navbar-item { position: relative; }
.dropdown-menu {
position: absolute;
top: calc(100% + 8px);
right: 0;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
box-shadow: 0 8px 32px var(--shadow-warm), 0 2px 8px rgba(0,0,0,0.06);
min-width: 210px;
z-index: 200;
padding: 6px;
overflow: hidden;
}
.dropdown-header {
padding: 8px 12px;
font-weight: 600;
font-size: 11px;
color: var(--text-faint);
text-transform: uppercase;
letter-spacing: 0.8px;
border-bottom: 1px solid var(--border);
margin-bottom: 4px;
}
.dropdown-item {
display: block;
width: 100%;
padding: 9px 12px;
text-align: left;
background: none;
border: none;
cursor: pointer;
font-size: 14px;
color: var(--text);
text-decoration: none;
border-radius: var(--radius-sm);
transition: background 0.12s;
font-family: inherit;
}
.dropdown-item:hover { background: var(--surface-tint); color: var(--orange); }
/* ── Badge ── */
.badge {
position: absolute;
top: 2px; right: 2px;
background: var(--orange);
color: white;
font-size: 10px;
font-weight: 700;
min-width: 16px;
height: 16px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
padding: 0 4px;
}
/* ── Demo helpers ── */
.demo-section { margin: 40px auto; max-width: 900px; padding: 0 24px; }
.demo-label {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-faint);
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 1px solid var(--border);
}
</style>
</head>
<body>
<!-- NAVBAR — Connecté -->
<nav class="navbar">
<a href="#" class="navbar-brand">Actorle</a>
<div class="navbar-right">
<div class="navbar-item">
<button class="navbar-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/>
<path d="M13.73 21a2 2 0 0 1-3.46 0"/>
</svg>
<span class="badge">3</span>
</button>
</div>
<div class="navbar-item">
<button class="navbar-icon">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/>
<circle cx="12" cy="7" r="4"/>
</svg>
</button>
</div>
</div>
</nav>
<!-- NAVBAR — Non connecté -->
<div class="demo-section" style="margin-top:24px;">
<div class="demo-label">Navbar — non connecté</div>
<nav class="navbar" style="position:relative;">
<a href="#" class="navbar-brand">Actorle</a>
<div class="navbar-right">
<a href="#" class="btn btn-primary">Se connecter</a>
</div>
</nav>
</div>
<!-- DROPDOWN (toujours visible en preview) -->
<div class="demo-section">
<div class="demo-label">Menu utilisateur</div>
<div class="dropdown-menu" style="position:relative; display:block; top:auto;">
<div class="dropdown-header">Compte</div>
<button class="dropdown-item">Importer ses films</button>
<a href="#" class="dropdown-item">Se déconnecter</a>
</div>
</div>
<!-- GAME GRID -->
<div class="demo-section">
<div class="demo-label">Grille de jeu</div>
<div class="game-wrapper" style="padding:24px 0;">
<p class="game-header">Trouvez l'acteur — <em>4 indices</em></p>
<table id="actors">
<tbody>
<tr>
<td><input class="letter-input letter-highlighted" maxlength="1" value="M" readonly></td>
<td><input class="letter-input filled" maxlength="1" value="A" readonly></td>
<td><input class="letter-input filled" maxlength="1" value="R" readonly></td>
<td><input class="letter-input filled" maxlength="1" value="G" readonly></td>
<td><input class="letter-input filled" maxlength="1" value="O" readonly></td>
<td><input class="letter-input filled" maxlength="1" value="T" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><button class="popover-trigger">?</button></td>
</tr>
<tr>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input filled" maxlength="1" value="B" readonly></td>
<td><input class="letter-input filled" maxlength="1" value="R" readonly></td>
<td><input class="letter-input letter-highlighted" maxlength="1" value="A" readonly></td>
<td><input class="letter-input filled" maxlength="1" value="D" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><button class="popover-trigger">?</button></td>
</tr>
<tr>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input letter-highlighted" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><button class="popover-trigger">?</button></td>
</tr>
<tr>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input letter-highlighted" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><input class="letter-input" maxlength="1" readonly></td>
<td><button class="popover-trigger">?</button></td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- AUTH FORM -->
<div class="demo-section">
<div class="demo-label">Formulaire de connexion</div>
<div class="auth-container">
<h1>Bon retour</h1>
<p class="auth-subtitle">Connectez-vous pour suivre vos scores</p>
<label>Email</label>
<input type="email" placeholder="vous@exemple.fr">
<label>Mot de passe</label>
<input type="password" placeholder="••••••••">
<button type="submit">Connexion</button>
<div class="auth-link" style="margin-top:16px;">
Pas encore de compte ? <a href="#">S'inscrire</a>
</div>
</div>
</div>
<div style="height:60px;"></div>
</body>
</html>

View File

@@ -10,7 +10,7 @@ services:
- .:/app - .:/app
- vendor:/app/vendor - vendor:/app/vendor
ports: ports:
- "80:80" - "${PORT_80:-80}:80"
database: database:
ports: ports:
@@ -27,7 +27,7 @@ services:
- vendor:/app/vendor - vendor:/app/vendor
- node_modules:/app/node_modules - node_modules:/app/node_modules
ports: ports:
- "5173:5173" - "${PORT_5173:-5173}:5173"
depends_on: depends_on:
- app - app

View File

@@ -8,9 +8,9 @@ services:
node-build: docker/node node-build: docker/node
image: git.lclr.dev/thibaud-lclr/ltbxd-actorle/app:latest image: git.lclr.dev/thibaud-lclr/ltbxd-actorle/app:latest
ports: ports:
- "80:80" - "${PORT_80:-80}:80"
- "443:443" - "${PORT_443:-443}:443"
- "443:443/udp" - "${PORT_443:-443}:443/udp"
volumes: volumes:
- caddy_data:/data - caddy_data:/data
- caddy_config:/config - caddy_config:/config

View File

@@ -58,4 +58,13 @@
</div> </div>
</div> </div>
</div> </div>
{% else %}
<nav class="navbar">
<div class="navbar-left">
<a href="{{ path('app_homepage') }}" class="navbar-brand">Actorle</a>
</div>
<div class="navbar-right">
<a href="{{ path('app_login') }}" class="btn btn-primary">Se connecter</a>
</div>
</nav>
{% endif %} {% endif %}

View File

@@ -2,8 +2,11 @@
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title> <title>{% block title %}Actorle{% endblock %}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>"> <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;1,9..144,400&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
{% block stylesheets %} {% block stylesheets %}
{{ vite_entry_link_tags('app') }} {{ vite_entry_link_tags('app') }}
{% endblock %} {% endblock %}

View File

@@ -1,10 +1,10 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Log in{% endblock %} {% block title %}Connexion — Actorle{% endblock %}
{% block body %} {% block body %}
<div class="auth-container"> <div class="auth-container">
<h1>Log in</h1> <h1>Se connecter</h1>
{% if error %} {% if error %}
<div class="auth-error">{{ error.messageKey|trans(error.messageData, 'security') }}</div> <div class="auth-error">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
@@ -14,14 +14,14 @@
<label for="inputEmail">Email</label> <label for="inputEmail">Email</label>
<input type="email" value="{{ last_username }}" name="_username" id="inputEmail" autocomplete="email" required autofocus> <input type="email" value="{{ last_username }}" name="_username" id="inputEmail" autocomplete="email" required autofocus>
<label for="inputPassword">Password</label> <label for="inputPassword">Mot de passe</label>
<input type="password" name="_password" id="inputPassword" autocomplete="current-password" required> <input type="password" name="_password" id="inputPassword" autocomplete="current-password" required>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}"> <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<button type="submit">Sign in</button> <button type="submit">Connexion</button>
</form> </form>
<p class="auth-link">No account yet? <a href="{{ path('app_register') }}">Register</a></p> <p class="auth-link">Pas encore de compte ? <a href="{{ path('app_register') }}">S'inscrire</a></p>
</div> </div>
{% endblock %} {% endblock %}

View File

@@ -1,19 +1,19 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}Register{% endblock %} {% block title %}Inscription — Actorle{% endblock %}
{% block body %} {% block body %}
<div class="auth-container"> <div class="auth-container">
<h1>Register</h1> <h1>Créer un compte</h1>
{{ form_start(registrationForm) }} {{ form_start(registrationForm) }}
{{ form_row(registrationForm.email) }} {{ form_row(registrationForm.email) }}
{{ form_row(registrationForm.plainPassword.first) }} {{ form_row(registrationForm.plainPassword.first) }}
{{ form_row(registrationForm.plainPassword.second) }} {{ form_row(registrationForm.plainPassword.second) }}
<button type="submit">Create account</button> <button type="submit">S'inscrire</button>
{{ form_end(registrationForm) }} {{ form_end(registrationForm) }}
<p class="auth-link">Already have an account? <a href="{{ path('app_login') }}">Log in</a></p> <p class="auth-link">Déjà un compte ? <a href="{{ path('app_login') }}">Se connecter</a></p>
</div> </div>
{% endblock %} {% endblock %}