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

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>