diff --git a/.claude/skills/photobooth-da/SKILL.md b/.claude/skills/photobooth-da/SKILL.md index 9899a3f..a29142b 100644 --- a/.claude/skills/photobooth-da/SKILL.md +++ b/.claude/skills/photobooth-da/SKILL.md @@ -1,33 +1,65 @@ --- name: photobooth-da -description: Applique la direction artistique "Polaroid Néon" du projet Rêves Liquides Photobooth. À utiliser pour tout écran, composant ou style visuel de cette appli — scan, upload, galerie invité, admin. +description: Applique la direction artistique « Tablée — Faire-part » (ivoire / encre / bordeaux, Cormorant Garamond + Inter) du projet photobooth-qr, marque Tablée. À utiliser pour tout écran, composant ou style visuel de l'appli — landing, page invité, galerie de la fête, admin, générateur QR, carton imprimé. --- -# Direction artistique — Polaroid Néon +# Direction artistique — Tablée « Faire-part » -## Palette -- Fond principal : #12100E (noir chaud, jamais #000 pur) -- Accent corail : #FF5E5B (CTA, boutons principaux) -- Accent jaune : #FFD166 (badges, highlights) -- Accent vert : #06D6A0 (succès, validation) -- Blanc cassé : #FAF6F0 (cadre polaroid, textes clairs) -- Beige poudré : #E8DFD3 (bordures, séparateurs) +Validée par Kévin le 2026-10-15 (remplace « Polaroid Néon »). Référence vivante : +`src/landing/style.css` — en reprendre les tokens tels quels, ne pas en inventer. +Nom de marque visible : **Tablée** (jamais « photobooth » à l'écran ; les URLs et chemins ne changent pas). -## Typographie -- Titres/display : Clash Display ou General Sans (bold arrondie) -- Légendes manuscrites : Caveat ou Permanent Marker -- UI/corps de texte : Inter ou Satoshi +## Esprit +Un faire-part de mariage : beaucoup d'air, filets fins, petites capitales espacées, +titres serif légers, boutons rectangulaires encre. Sobre, chaleureux, jamais « tech ». +Pas de dégradé, de néon, de glow, de confettis, d'ombre lourde, de coin arrondi sur les boutons. -## Composant signature : cadre polaroid -- Fond blanc cassé, marge basse épaisse pour la légende -- Rotation aléatoire entre -4° et +4° par carte -- Ombre douce (box-shadow léger), jamais de glow/neon CSS artificiel -- Prénom + message en typo manuscrite dans la zone basse +## Palette (tokens `:root`) +| Token | Clair | Nuit « encre » | Rôle | +|---|---|---|---| +| `--bg` | #F5F0E6 | #1E1A16 | fond de page | +| `--paper` | #FBF8F2 | #27221D | cartes, cartons | +| `--tint` | #EDE6D8 | #2F2923 | fond teinté (mention RGPD, bandeaux) | +| `--ink` | #1E1A16 | #ECE4D6 | texte, boutons pleins | +| `--on-ink` | #FBF8F2 | #1E1A16 | texte sur bouton plein | +| `--muted` | #5F564C | #A99E8F | texte secondaire, labels | +| `--accent` | #7A2B22 | #D39A8C | bordeaux : petites capitales, filets du carton, focus, erreurs | +| `--line` | #CFC3B0 | #4A4239 | filets décoratifs uniquement | +| `--field` | #8C8173 | #857A6C | trait de champ, bord de bouton secondaire | -## Écran admin = exception -Sobre, sombre, data-first. Pas de confettis, pas de rotation polaroid. -Cartes en #1E1B18. Accent corail réservé aux CTA uniquement. +Variante nuit = `@media (prefers-color-scheme: dark)` sur les écrans invités seulement +(`src/e/`, `src/galerie/`) : utilisés de nuit en salle. Texte clair assourdi (#ECE4D6) contre l'éblouissement. -## Règle non négociable -Vérifier systématiquement le contraste texte/fond sur #12100E avant -de livrer un écran (norme WCAG AA minimum). +## Typographie (locale, `/vendor/fonts/…`, chemins absolus, aucun CDN) +- **Cormorant Garamond** (variable 300-700, droit seulement) : titres (400), noms, petits mots, légendes. +- **Inter** (variable 400-700) : texte, interface. +- Petites capitales composées : 0.6875–0.75rem, uppercase, letter-spacing 0.12–0.2em, graisse 500. +- Pas d'italique (aucun fichier : l'italique synthétique est laid). Pas de police manuscrite. +- Précharger seulement Cormorant (``). + +## Composants +- **Bouton** : rectangle, `min-height` ≥ 44 px (3–3.5rem côté invité), fond `--ink`, texte `--on-ink` + en petites capitales ; survol → fond `--accent`. Secondaire : transparent + bord `--ink`/`--field`. +- **Lien** : souligné 1px, `text-underline-offset: .3em`, cible ≥ 44 px. +- **Champ** (invité) : trait bas `--field` seul, focus = trait 2px `--accent`. Admin : cadre 1px `--field`. +- **Carton** (états, succès, modale) : `--paper` + bord `--line` + second filet `outline-offset: -.5rem`, ombre courte. +- **En-tête invité** : « TABLÉE » en petites capitales bordeaux, titre Cormorant, filet centré de 2.5rem, sous-titre `--muted`. +- **Tirage (galerie de la fête)** : le polaroid survit avec retenue — papier ivoire (#E9E2D5 la nuit), + inclinaison = `--rot` posé par le JS × 0.35 (±1,4°), légende Cormorant, ombre courte, aucun ruban. +- **Carton de table imprimé** (`src/admin/print-template/`) : A5, double filet bordeaux, « ALBUM DES INVITÉS », + noms en Cormorant, « Partagez vos photos » bordeaux, QR encre sans cadre blanc, mention J+7, « Tablée » en pied. + Cotes en `--mm` (100cqi/148). Fond non imprimé, filets en bordures (s'impriment sans « arrière-plans »). + +## Exception admin +Galerie organisateur, générateur QR : même palette **claire uniquement**, data-first, grille droite, +aucune inclinaison ni ornement ; bordeaux réservé aux alertes et au retrait définitif. + +## Règles non négociables +- Contraste WCAG 2.1 AA **calculé** pour chaque couple texte/fond, consigné en tête du CSS + (texte ≥ 4.5:1, composants UI ≥ 3:1). Valeurs de référence : encre/fond 15.2, gris/fond 6.3, + bordeaux/fond 8.4, nuit texte/fond 13.7, nuit gris/fond 6.6, nuit vieux rose/fond 7.2. + `--line` n'est jamais seul porteur d'information. +- Focus visible partout (`outline: 2px solid var(--accent)`), `prefers-reduced-motion` respecté, + cibles tactiles ≥ 44 px. +- `[hidden] { display: none !important; }` dans chaque feuille (bug `display` vs `[hidden]` déjà vécu 4 fois). +- Écoconception : pas de lib, pas d'image décorative, polices locales, une feuille CSS par écran. diff --git a/src/admin/gallery/index.html b/src/admin/gallery/index.html index 64a93cb..9cea65f 100644 --- a/src/admin/gallery/index.html +++ b/src/admin/gallery/index.html @@ -3,7 +3,7 @@ -Galerie événement — admin +Espace organisateur · Tablée - - - + + +
@@ -58,14 +52,9 @@ Actualiser - + + diff --git a/src/admin/gallery/style.css b/src/admin/gallery/style.css index b3ab11a..f18a0b5 100644 --- a/src/admin/gallery/style.css +++ b/src/admin/gallery/style.css @@ -1,370 +1,211 @@ -/* Galerie admin — direction artistique "Polaroid Néon" - (.claude/skills/photobooth-da/SKILL.md), variante "écran admin" du skill : - sobre, sombre, data-first. Pas de confettis, pas de rotation façon - polaroid sur les cartes photo (grille classique) — l'accent corail est - réservé aux CTA (boutons), jamais décoratif. +/* Galerie organisateur (admin) — DA « Tablée — Faire-part », exception admin + (.claude/skills/photobooth-da/SKILL.md) : sobre, data-first, palette claire unique (outil + consulté de jour, souvent sur ordinateur). Grille droite, aucune inclinaison, aucun + ornement ; bordeaux réservé aux alertes et au retrait définitif. - Tokens repris de src/galerie/style.css (écran de référence de cette DA) - pour la cohérence de couleurs/typo entre écrans invité et admin ; les - cartes utilisent #1E1B18 comme demandé par l'exception admin du skill - (plus clair que --color-bg, pour distinguer une "carte" du fond de - page, sans jamais recourir au blanc cassé des polaroids invité). + Contrastes WCAG 2.1 calculés : encre #1e1a16 / fond #f5f0e6 15.2:1, / papier #fbf8f2 16.3:1 · + gris #5f564c / fond 6.3:1, / papier 6.8:1, / teinte #ede6d8 5.8:1 · bordeaux #7a2b22 / papier 9.0:1, + / teinte 7.7:1 · papier sur bouton encre 16.3:1 · bord de bouton/champ #8c8173 / papier 3.6:1. */ - Contrastes vérifiés par calcul WCAG AA (même méthode que - src/galerie/style.css) : texte clair sur #12100E et sur #1E1B18 passe - très largement ; texte sombre (#12100E) sur les couleurs d'accent - pleines (utilisé uniquement sur les CTA .btn) passe confortablement - (6.3:1 à 13.2:1). */ - -@font-face { - font-family: "General Sans"; - src: url("/vendor/fonts/generalsans-700.woff2") format("woff2"); - font-weight: 700; - font-style: normal; - font-display: swap; -} - -@font-face { - font-family: "Inter"; - src: url("/vendor/fonts/inter-latin-variable.woff2") format("woff2"); - font-weight: 400 700; - font-style: normal; - font-display: swap; -} +@font-face { font-family: "Cormorant Garamond"; src: url("/vendor/fonts/cormorantgaramond-latin-variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; } +@font-face { font-family: "Inter"; src: url("/vendor/fonts/inter-latin-variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; } :root { - color-scheme: dark; - - --color-bg: #12100e; - --color-ink: #12100e; - --color-text: #faf6f0; - --color-muted: #e8dfd3; - --color-muted-2: #a89e90; - - --color-coral: #ff5e5b; - --color-yellow: #ffd166; - --color-mint: #06d6a0; - - /* Exception admin du skill : cartes sombres, jamais blanc cassé. Un peu - éclairci par rapport à la version initiale (#1E1B18 -> #241F1A) lors de - la passe "polaroid poussé à fond" (2026-09-18) : l'écart avec - --color-bg restait trop faible pour se voir sans l'aide d'une ombre, - qui elle-même ne portait pas sur un fond aussi sombre — repéré en - capture d'écran, pas en théorie. */ - --color-card: #241f1a; - --color-card-muted: #2c2621; - --color-border-ui: rgba(250, 246, 240, 0.14); - --color-border-ui-strong: rgba(250, 246, 240, 0.26); - - --color-error-bg: rgba(255, 94, 91, 0.14); - --color-warning-bg: rgba(255, 209, 102, 0.16); - - --radius-ui: 14px; - --radius-pill: 999px; - - --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.35); - --shadow-card: 0 16px 32px rgba(0, 0, 0, 0.5); - - --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); - --ease-standard: cubic-bezier(0.22, 1, 0.36, 1); - - --font-display: "General Sans", -apple-system, BlinkMacSystemFont, sans-serif; - --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; - - /* Rim light : voir le commentaire détaillé dans src/e/style.css. Même - nécessité ici (#1E1B18 sur #12100E, écart de luminance faible : une - ombre noire classique n'y est presque pas visible). */ - --inset-rim: inset 0 1px 0 0 rgba(255, 255, 255, 0.05); - --inset-rim-btn: inset 0 1px 0 0 rgba(255, 255, 255, 0.16); + color-scheme: light; + --bg: #f5f0e6; + --paper: #fbf8f2; + --tint: #ede6d8; + --ink: #1e1a16; + --muted: #5f564c; + --accent: #7a2b22; + --line: #cfc3b0; + --field: #8c8173; + --ease: cubic-bezier(0.22, 1, 0.36, 1); + --serif: "Cormorant Garamond", "Iowan Old Style", Garamond, Georgia, serif; + --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; } -* { - box-sizing: border-box; -} - -html { - -webkit-text-size-adjust: 100%; -} +*, *::before, *::after { box-sizing: border-box; } +/* Garde-fou : une règle `display` d'auteur passe devant [hidden] (bug déjà vécu 4 fois ici). */ +[hidden] { display: none !important; } +html { -webkit-text-size-adjust: 100%; } body { margin: 0; - font-family: var(--font-ui); - /* Grain identique aux écrans invité (voir src/e/style.css) : cohérence - visuelle admin/invité, casse l'aplat du fond, sans impact mesurable - sur le contraste WCAG déjà vérifié pour ce fichier. */ - background-color: var(--color-bg); - background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxODAiIGhlaWdodD0iMTgwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC44NSIgbnVtT2N0YXZlcz0iMiIgc3RpdGNoVGlsZXM9InN0aXRjaCIgcmVzdWx0PSJub2lzZSIvPjxmZUNvbG9yTWF0cml4IGluPSJub2lzZSIgdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMSAgMCAwIDAgMCAxICAwIDAgMCAwIDEgIDAgMCAwIDAuMDUgMCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCUyM24pIi8+PC9zdmc+"); - background-repeat: repeat; - background-size: 180px 180px; - color: var(--color-text); - line-height: 1.45; + font-family: var(--sans); + font-size: 1rem; + line-height: 1.55; + color: var(--ink); + background: var(--bg); } +:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; } + .page { - max-width: 960px; + max-width: 72rem; margin: 0 auto; - padding: 1.5rem 1.1rem 3rem; + padding: 1.75rem 1rem 3rem; min-height: 100dvh; } +/* ---------- En-tête ---------- */ .page__header { - text-align: center; + padding-bottom: 1.5rem; margin-bottom: 1.5rem; + border-bottom: 1px solid var(--line); } .brand { - display: flex; - align-items: center; - justify-content: center; - gap: 0.4rem; - margin-bottom: 0.6rem; - color: var(--color-muted-2); -} - -/* Pastille corail derrière la marque, cohérente avec les écrans invité - (src/e/style.css, src/galerie/style.css) — un détail de marque, pas une - décoration : reste discret, n'entre pas en conflit avec l'exception - admin (sobre, data-first). */ -.brand__mark { - width: 22px; - height: 22px; - padding: 4px; - box-sizing: border-box; - flex-shrink: 0; - color: var(--color-coral); - background: rgba(255, 94, 91, 0.14); - border-radius: 50%; -} - -.brand__name { - font-size: 0.7rem; - font-weight: 700; - letter-spacing: 0.13em; + margin: 0 0 1rem; + font-size: 0.6875rem; + font-weight: 500; text-transform: uppercase; + letter-spacing: 0.2em; + color: var(--accent); } -/* Écran admin = data-first, sobre : titre en texte plein (pas de dégradé - décoratif), contrairement à ce que faisait l'ancienne DA. */ .page__header h1 { - font-family: var(--font-display); - font-size: 1.5rem; - font-weight: 700; + font-family: var(--serif); + font-weight: 400; + font-size: clamp(2rem, 6vw, 2.75rem); + line-height: 1.05; letter-spacing: -0.01em; - margin: 0.15rem 0 0; - color: var(--color-text); + margin: 0; + overflow-wrap: break-word; + font-variant-numeric: oldstyle-nums; } .event-meta { - color: var(--color-muted-2); - font-size: 0.9rem; - margin: 0.4rem 0 0; + margin: 0.6rem 0 0; + font-size: 0.875rem; + color: var(--muted); + font-variant-numeric: tabular-nums; } -/* Liseré haut plein plutôt qu'un fond entièrement teinté (l'ancien - .state-block--error en rgba coral 0.14% se distinguait à peine de - --color-card une fois les deux sombres) : reste "sobre" (aucune couleur - décorative sur toute la surface) tout en rendant la carte repérable. */ +/* ---------- États ---------- */ .state-block { - position: relative; + margin: 0 0 1.25rem; + padding: 1.5rem 1.25rem; text-align: center; - padding: 1.5rem 1rem 1.25rem; - border-radius: var(--radius-ui); - margin-bottom: 1rem; - background: var(--color-card); - box-shadow: var(--shadow-card); - overflow: hidden; + background: var(--paper); + border: 1px solid var(--line); } -.state-block::before { - content: ""; - display: block; - position: absolute; - inset: 0 0 auto 0; - height: 3px; - background: var(--accent-color, var(--color-coral)); -} +.state-block--error { border-left: 3px solid var(--accent); text-align: left; } +.state-block p { margin: 0 0 1rem; } +.state-block p:last-child { margin-bottom: 0; } -.state-block--error { - color: var(--color-text); -} - -.state-block p { - margin: 0 0 0.75rem; -} - -.state-block p:last-child { - margin-bottom: 0; -} +#status-loading { color: var(--muted); } .spinner { display: inline-block; - width: 26px; - height: 26px; - margin-bottom: 0.6rem; - border: 3px solid rgba(255, 94, 91, 0.22); - border-top-color: var(--color-coral); + width: 1.5rem; + height: 1.5rem; + margin-bottom: 0.5rem; + border: 1px solid var(--line); + border-top-color: var(--accent); border-radius: 50%; - animation: spin 0.8s linear infinite; + animation: spin 1s linear infinite; } -@keyframes spin { - to { - transform: rotate(360deg); - } -} +@keyframes spin { to { transform: rotate(360deg); } } .status-banner { - background: var(--color-warning-bg); - color: var(--color-text); - border-radius: var(--radius-ui); - padding: 0.85rem 1rem; margin: 0 0 1.25rem; - font-size: 0.9rem; + padding: 0.9rem 1rem; + background: var(--tint); + border-left: 3px solid var(--accent); + font-size: 0.9375rem; } +/* ---------- Barre d'actions ---------- */ .toolbar { display: flex; flex-wrap: wrap; - gap: 0.6rem; - margin-bottom: 0.75rem; + gap: 0.75rem; + margin-bottom: 1rem; } -/* Boutons — l'accent corail est réservé au CTA principal (télécharger le - ZIP) ; le bouton secondaire (Actualiser) reste sobre, sans couleur. */ +/* Parties du ZIP : les liens se rangent dans la .toolbar (flex-wrap). */ +.zip-parts { display: contents; } + .btn { display: inline-flex; align-items: center; justify-content: center; - gap: 0.45rem; - font: inherit; - font-weight: 700; - border: none; - border-radius: var(--radius-pill); - padding: 0.75rem 1.15rem; - min-height: 46px; + gap: 0.55rem; + min-height: 2.75rem; + padding: 0.7rem 1.25rem; + border: 1px solid var(--ink); + border-radius: 0; + background: var(--ink); + color: var(--paper); + font: 500 0.8125rem/1.2 var(--sans); + letter-spacing: 0.1em; + text-transform: uppercase; + text-decoration: none; cursor: pointer; - background: var(--color-coral); - color: var(--color-ink); - box-shadow: var(--shadow-card), var(--inset-rim-btn); - transition: transform 0.12s var(--ease-standard), background 0.12s ease, box-shadow 0.12s ease; + transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease); } -.btn-icon { - width: 18px; - height: 18px; - flex-shrink: 0; +.btn-icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; stroke-width: 1.5; } + +.btn--secondary, +.btn--done { + background: transparent; + color: var(--ink); + border-color: var(--field); } -.btn--secondary { - background: var(--color-card); - color: var(--color-text); - border: 1.5px solid var(--color-border-ui-strong); - box-shadow: var(--inset-rim); -} - -.btn:disabled { - opacity: 0.5; - cursor: not-allowed; -} - -.btn:active:not(:disabled) { - background: #ff7673; - transform: scale(0.97); -} - -.btn--secondary:active:not(:disabled) { - background: var(--color-card-muted); -} +.btn:disabled { opacity: 0.45; cursor: not-allowed; } @media (hover: hover) { - .btn:hover:not(:disabled) { - transform: translateY(-1px); - box-shadow: var(--shadow-soft); - } - - .btn--secondary:hover:not(:disabled) { - background: var(--color-card-muted); - border-color: var(--color-coral); - box-shadow: var(--inset-rim); - } -} - -.btn:focus-visible, -a:focus-visible { - outline: 3px solid var(--color-coral); - outline-offset: 2px; + .btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--paper); } + .btn--secondary:hover:not(:disabled), + .btn--done:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); } } .zip-status { - font-size: 0.85rem; - color: var(--color-muted-2); margin: 0 0 1.25rem; + font-size: 0.875rem; + color: var(--muted); } -.zip-status--error { - color: var(--color-coral); -} +.zip-status--error { color: var(--accent); font-weight: 500; } +/* ---------- Grille de photos : droite, dense, lisible ---------- */ .photo-grid { list-style: none; margin: 0; padding: 0; display: grid; - grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; } -/* Exception admin explicite : grille classique, cartes rectangulaires, - AUCUNE rotation façon polaroid (contrairement à src/galerie/style.css) - ni glow/neon — juste une carte sobre en #1E1B18. */ +@media (min-width: 48rem) { .photo-grid { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1.25rem; } } + .photo-card { - position: relative; - background: var(--color-card); - border-radius: var(--radius-ui); - overflow: hidden; display: flex; flex-direction: column; - box-shadow: var(--shadow-card), var(--inset-rim); - transition: box-shadow 0.2s var(--ease-standard), transform 0.2s var(--ease-standard); + background: var(--paper); + border: 1px solid var(--line); + transition: border-color 0.2s var(--ease); } -/* Liseré corail en haut de carte au survol desktop uniquement : seule - touche décorative de couleur tolérée ici, et encore, discrète et - réactive au hover plutôt que permanente. */ -.photo-card::before { - content: ""; - position: absolute; - inset: 0 0 auto 0; - height: 3px; - background: var(--color-coral); - opacity: 0; - transition: opacity 0.2s var(--ease-standard); - z-index: 1; -} - -@media (hover: hover) { - .photo-card:hover { - box-shadow: var(--shadow-soft), var(--inset-rim); - transform: translateY(-3px); - } - - .photo-card:hover::before { - opacity: 1; - } -} +@media (hover: hover) { .photo-card:hover { border-color: var(--field); } } .photo-card__thumb-wrap { position: relative; - width: 100%; aspect-ratio: 1 / 1; - background: var(--color-card-muted); + background: var(--tint); } .photo-card__thumb { + display: block; width: 100%; height: 100%; object-fit: cover; - display: block; } .photo-card__thumb-fallback { @@ -373,77 +214,106 @@ a:focus-visible { display: none; align-items: center; justify-content: center; + padding: 0.75rem; text-align: center; font-size: 0.75rem; - color: var(--color-muted-2); - padding: 0.5rem; + color: var(--muted); } -.photo-card--broken .photo-card__thumb { - display: none; -} - -.photo-card--broken .photo-card__thumb-fallback { - display: flex; -} +.photo-card--broken .photo-card__thumb { display: none; } +.photo-card--broken .photo-card__thumb-fallback { display: flex; } .photo-card__meta { - padding: 0.65rem 0.75rem 0.55rem; flex: 1; + padding: 0.75rem 0.75rem 0.5rem; } .photo-card__name { + margin: 0 0 0.15rem; font-weight: 600; - font-size: 0.85rem; - margin: 0 0 0.2rem; - word-break: break-word; - color: var(--color-text); + font-size: 0.875rem; + overflow-wrap: anywhere; } .photo-card__message { - color: var(--color-muted); - font-size: 0.8rem; margin: 0 0 0.35rem; - word-break: break-word; + font-family: var(--serif); + font-size: 1.0625rem; + line-height: 1.3; + overflow-wrap: anywhere; } .photo-card__date { - color: var(--color-muted-2); - font-size: 0.72rem; margin: 0; + font-size: 0.75rem; + color: var(--muted); + font-variant-numeric: tabular-nums; } +/* Actions de carte : deux lignes sobres, cible ≥ 44 px. */ .photo-card__download { display: flex; align-items: center; justify-content: center; - gap: 0.35rem; - text-align: center; - padding: 0.6rem; - background: var(--color-coral); - color: var(--color-ink); + gap: 0.45rem; + min-height: 2.75rem; + border-top: 1px solid var(--line); + color: var(--ink); text-decoration: none; - font-size: 0.82rem; - font-weight: 700; - transition: background 0.15s var(--ease-standard); + font-size: 0.75rem; + font-weight: 500; + letter-spacing: 0.1em; + text-transform: uppercase; + transition: background-color 0.2s var(--ease), color 0.2s var(--ease); } -.photo-card__download .btn-icon { - width: 15px; - height: 15px; - flex-shrink: 0; +.photo-card__download .btn-icon { width: 1rem; height: 1rem; } + +@media (hover: hover) { .photo-card__download:hover { background: var(--ink); color: var(--paper); } } + +.photo-card__download:focus-visible { outline-offset: -2px; } + +/* Retrait (B1) : discret, confirmation en ligne dans la carte. */ +.photo-card__delete { + padding: 0 0.75rem 0.4rem; + border-top: 1px solid var(--line); + font-size: 0.8125rem; + text-align: center; } -.photo-card__download:hover { - background: #ff7673; +.photo-card__confirm { padding-top: 0.6rem; } + +.photo-card__confirm p, +.photo-card__delete-msg { + margin: 0; + color: var(--ink); } +.photo-card__delete-msg:empty { display: none; } + +.photo-card__delete-btn { + min-height: 2.75rem; + padding: 0 0.6rem; + border: 0; + background: none; + font: inherit; + color: var(--muted); + text-decoration: underline; + text-decoration-thickness: 1px; + text-underline-offset: 0.3em; + cursor: pointer; +} + +.photo-card__delete-btn--danger { color: var(--accent); font-weight: 600; } + +@media (hover: hover) { .photo-card__delete-btn:hover:not(:disabled) { color: var(--ink); } .photo-card__delete-btn--danger:hover:not(:disabled) { color: var(--accent); text-decoration-thickness: 2px; } } + +.photo-card__delete-btn:disabled { opacity: 0.45; cursor: not-allowed; } + @media (prefers-reduced-motion: reduce) { - .spinner, - .photo-card, - .photo-card::before, - .btn { - animation: none !important; - transition: none !important; + *, *::before, *::after { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; } } diff --git a/src/admin/print-template/index.html b/src/admin/print-template/index.html index 7cad506..2d8a693 100644 --- a/src/admin/print-template/index.html +++ b/src/admin/print-template/index.html @@ -3,8 +3,9 @@ -Carton imprimable — photobooth-qr (admin) +Carton de table · Tablée +
+ évite de dépendre de la mise en page d'aperçu pour le rendu papier. + Contenu synchronisé en JS. --> + + diff --git a/src/landing/style.css b/src/landing/style.css new file mode 100644 index 0000000..05bfc99 --- /dev/null +++ b/src/landing/style.css @@ -0,0 +1,309 @@ +/* Landing + pages légales — direction « Faire-part » (éditorial, ivoire / encre / bordeaux). + Contrastes calculés (WCAG 2.1) : + encre #1e1a16 / fond #f5f0e6 = 15.2:1 · gris #5f564c / fond = 6.3:1 + bordeaux #7a2b22 / fond = 8.4:1 · ivoire #fbf8f2 / bordeaux = 9.0:1 · ivoire / encre = 16.3:1 + bord de champ #8c8173 / papier = 3.6:1 (composant UI ≥ 3:1). Filets #cfc3b0 : décoratifs uniquement. */ + +@font-face { font-family: "Cormorant Garamond"; src: url("/vendor/fonts/cormorantgaramond-latin-variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; } +@font-face { font-family: "Inter"; src: url("/vendor/fonts/inter-latin-variable.woff2") format("woff2"); font-weight: 400 700; font-display: swap; } + +:root { + /* NOM DE MARQUE À VALIDER : seul endroit où le nom est écrit (affiché via .brand-name sur toutes les pages). */ + --brand: "Tablée"; + + --bg: #f5f0e6; + --paper: #fbf8f2; + --tint: #ede6d8; + --ink: #1e1a16; + --muted: #5f564c; + --accent: #7a2b22; + --line: #cfc3b0; + --field: #8c8173; + --ease: cubic-bezier(0.22, 1, 0.36, 1); + --serif: "Cormorant Garamond", "Iowan Old Style", Garamond, Georgia, serif; + --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; + --gutter: clamp(1rem, 5vw, 3rem); +} + +*, *::before, *::after { box-sizing: border-box; } +html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; } +body { + margin: 0; + font-family: var(--sans); + font-size: 1rem; + line-height: 1.65; + color: var(--ink); + background: var(--bg); + font-feature-settings: "kern"; + overflow-x: hidden; +} + +h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -0.01em; font-variant-numeric: oldstyle-nums; } +h1 { font-size: clamp(2.6rem, 9vw, 5.4rem); font-weight: 400; letter-spacing: -0.02em; } +h2 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 400; } +h3 { font-size: 1.6rem; } +p { margin: 0 0 1rem; } +em { font-style: normal; color: var(--accent); } +a { color: inherit; } + +:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; } +.section--ink :focus-visible { outline-color: var(--paper); } + +.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 10; } +.skip:focus { left: 0.5rem; } +.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } + +.brand-name::before { content: var(--brand); } + +.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-inline: var(--gutter); } + +/* Petites capitales : Inter n'a pas de smcp, on les compose (capitales réduites + interlettrage). */ +.eyebrow { + font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; + color: var(--accent); margin-bottom: 1.25rem; +} +.eyebrow--light { color: var(--paper); opacity: 0.85; } + +/* ---------- Boutons & liens ---------- */ +.btn { + display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; + padding: 0.8rem 1.6rem; border: 1px solid var(--ink); border-radius: 0; + background: var(--ink); color: var(--paper); font: 500 0.8125rem/1 var(--sans); + letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; + transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); +} +.btn:hover { background: var(--accent); border-color: var(--accent); } +.btn--line { background: transparent; color: var(--ink); } +.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } +.btn--quiet { min-height: 2.5rem; padding: 0.6rem 1rem; background: transparent; color: var(--ink); } +.btn--quiet:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } +.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); width: 100%; } +.btn--light:hover { background: transparent; color: var(--paper); border-color: var(--paper); } + +.link { + font-size: 0.9375rem; text-decoration: none; padding-block: 0.4rem; + background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; + transition: background-size 0.4s var(--ease); +} +.link:hover { background-size: 0 1px; background-position: 100% 100%; } + +/* ---------- En-tête ---------- */ +.topbar { + display: flex; align-items: center; justify-content: space-between; gap: 1rem; + max-width: 72rem; margin: 0 auto; padding: 1.1rem var(--gutter); + border-bottom: 1px solid var(--line); +} +.wordmark { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; line-height: 1; } +.topnav { display: none; gap: 2rem; font-size: 0.875rem; } +.topnav a { text-decoration: none; color: var(--muted); transition: color 0.2s; } +.topnav a:hover { color: var(--ink); } + +/* ---------- Ouverture ---------- */ +.hero { display: grid; gap: 3.5rem; padding-block: clamp(3rem, 9vw, 7rem) clamp(3rem, 8vw, 6rem); } +.hero h1 { max-width: 13ch; margin-bottom: 1.75rem; } +.lead { font-size: 1.125rem; color: var(--muted); max-width: 34rem; margin-bottom: 2.25rem; } +.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-bottom: 2.75rem; } +.facts { list-style: none; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.02em; } +.facts li { display: flex; align-items: center; } +.facts li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin-left: -0.85rem; margin-right: 0.6rem; } + +.hero__visual { margin: 0 auto; position: relative; width: 100%; max-width: 30rem; } +.hero__visual figcaption { margin: 1.5rem 0 0 4%; font-size: 0.75rem; color: var(--muted); max-width: 52%; } + +/* Carton de table : vrai papier, filet intérieur. Pas de Caveat ici : 75 Ko pour trois mots, écarté par sobriété. */ +.tablecard { + position: absolute; z-index: 1; right: 0; bottom: 1.5rem; width: 40%; max-width: 12.5rem; + padding: 1.25rem 1rem 1rem; text-align: center; color: var(--ink); + background: var(--paper); + outline: 1px solid var(--line); outline-offset: -0.45rem; + box-shadow: 0 1px 2px rgba(30, 26, 22, 0.06), 0 12px 30px -12px rgba(30, 26, 22, 0.18); + transform: rotate(3deg); +} +.tablecard__names { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; margin: 0.25rem 0 0; } +.tablecard__names span { color: var(--accent); } +.tablecard__hand { font-family: var(--serif); font-size: 0.95rem; color: var(--accent); margin: 0.1rem 0 0.6rem; } +.tablecard__qr { width: 62%; height: auto; display: block; margin: 0 auto 0.6rem; color: var(--ink); } +.tablecard__hint { font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0; } + +/* Téléphone épuré, contenu = la vraie structure du formulaire invité (src/e) recomposée dans la DA. */ +.phone { + width: 62%; max-width: 16.5rem; margin-left: 4%; + padding: 0.55rem; border-radius: 2.4rem; background: var(--ink); + box-shadow: 0 30px 60px -30px rgba(30, 26, 22, 0.45); +} +.phone__screen { + height: 100%; border-radius: 1.9rem; background: var(--paper); overflow: hidden; + padding: 2.6rem 1.25rem 1.6rem; display: flex; flex-direction: column; +} +.phone__kicker { font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); margin: 0 0 0.35rem; text-align: center; } +.phone__title { font-family: var(--serif); font-size: 1.6rem; line-height: 1; text-align: center; margin: 0; } +.phone__rule { display: block; width: 2rem; height: 1px; background: var(--line); margin: 0.9rem auto 1.1rem; } +.phone__label { font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 0.3rem; } +.phone__label span { text-transform: none; letter-spacing: 0; } +.phone__field { font-size: 0.75rem; border-bottom: 1px solid var(--field); padding-bottom: 0.35rem; margin: 0 0 0.9rem; } +.phone__slot { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; border: 1px solid var(--line); padding: 1rem 0.5rem 0.9rem; margin: 0 0 1.1rem; font-size: 0.6875rem; text-align: center; } +.phone__slot svg { width: 1.5rem; height: 1.5rem; color: var(--accent); margin-bottom: 0.2rem; } +.phone__slot span { font-size: 0.5625rem; color: var(--muted); } +.phone__btn { margin: 0.6rem 0 0.6rem; background: var(--ink); color: var(--paper); text-align: center; font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.16em; padding: 0.8rem; } +.phone__note { font-size: 0.5625rem; color: var(--muted); text-align: center; margin: 0; } + +/* ---------- Constat ---------- */ +.statement { border-block: 1px solid var(--line); background: var(--paper); } +.statement__inner { padding-block: clamp(3.5rem, 9vw, 6.5rem); display: grid; gap: 1.75rem; } +.statement__text { font-family: var(--serif); font-size: clamp(1.6rem, 4.6vw, 2.6rem); line-height: 1.2; margin: 0; max-width: 30ch; } +.statement__aside { color: var(--muted); max-width: 30rem; margin: 0; } + +/* ---------- Sections ---------- */ +.section { padding-block: clamp(4rem, 10vw, 7.5rem); } +.section__head { margin-bottom: clamp(2.5rem, 6vw, 4rem); max-width: 40rem; } +.section--tint { background: var(--tint); } +.section--narrow .section__head, .section--narrow .faq { max-width: 46rem; } +.section--ink { background: var(--ink); color: var(--paper); } + +.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; } +.steps li { border-top: 1px solid var(--ink); padding: 1.5rem 0 2.25rem; display: grid; gap: 0.4rem; } +.steps__num { font-family: var(--serif); font-size: 1.15rem; font-style: normal; color: var(--accent); } +.steps h3 { margin-bottom: 0.5rem; } +.steps p { color: var(--muted); margin: 0; max-width: 32rem; } + +.features { margin: 0; display: grid; gap: 0; } +.features div { border-top: 1px solid var(--line); padding: 1.5rem 0 1.75rem; } +.features dt { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; margin-bottom: 0.5rem; } +.features dd { margin: 0; color: var(--muted); max-width: 30rem; } + +.audience { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; } +.audience li { border-top: 1px solid var(--line); padding: 1.5rem 0; display: grid; gap: 0.5rem; } +.audience h3 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 400; } +.audience p { margin: 0; color: var(--muted); max-width: 34rem; } + +/* ---------- Tarifs ---------- */ +.launch { border: 1px solid var(--accent); padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; display: grid; gap: 0.25rem; background: var(--paper); } +.launch__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); font-weight: 500; margin: 0; } +.launch__text { margin: 0; } +.launch strong { font-weight: 600; } + +.pricing { display: grid; gap: 1.25rem; } +.plan { background: var(--paper); padding: 2rem 1.5rem; display: flex; flex-direction: column; border: 1px solid var(--line); } +.plan--main { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--accent); } +.plan h3 { font-size: 1.9rem; font-weight: 500; } +.plan__for { font-size: 0.875rem; color: var(--muted); margin: 0.35rem 0 1.5rem; } +.plan__price { margin: 0 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.5rem; } +.plan__price .num { font-family: var(--serif); font-size: 3.25rem; line-height: 1; font-variant-numeric: oldstyle-nums proportional-nums; } +.plan__price .num--text { font-size: 2.4rem; } +.plan__price .unit, .plan__price .from { font-size: 0.8125rem; color: var(--muted); } +.plan__price .from { flex-basis: 100%; } +.plan ul { list-style: none; margin: 0 0 1.75rem; padding: 0; font-size: 0.9375rem; display: grid; gap: 0.6rem; } +.plan li { padding-left: 1.1rem; position: relative; } +.plan li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.5rem; height: 1px; background: var(--accent); } +.plan__fine { font-size: 0.8125rem; color: var(--muted); margin: -0.75rem 0 1.5rem; } +.plan .btn { margin-top: auto; padding-inline: 1rem; } +.pricing__note { font-size: 0.8125rem; color: var(--muted); margin: 1.5rem 0 0; } + +/* ---------- Engagements ---------- */ +.promises { display: grid; gap: 3rem; } +.promises__yes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; } +.promises__yes li { border-top: 1px solid var(--line); padding: 1.4rem 0; color: var(--muted); } +.promises__yes strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--ink); margin-bottom: 0.4rem; } +.promises__no { border: 1px solid var(--line); padding: 1.75rem 1.5rem; align-self: start; background: var(--paper); } +.promises__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 1rem; } +.promises__no ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; font-size: 0.9375rem; } +.promises__no li { padding-left: 1.1rem; position: relative; } +.promises__no li::before { content: "—"; position: absolute; left: 0; color: var(--muted); } + +/* ---------- FAQ ---------- */ +.faq details { border-top: 1px solid var(--line); } +.faq details:last-child { border-bottom: 1px solid var(--line); } +.faq summary { + list-style: none; cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0; position: relative; + font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; +} +.faq summary::-webkit-details-marker { display: none; } +.faq summary::after { + content: ""; position: absolute; right: 0.25rem; top: 50%; width: 0.75rem; height: 0.75rem; margin-top: -0.375rem; + background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat; + transition: transform 0.35s var(--ease); +} +.faq details[open] summary::after { transform: rotate(45deg); } +.faq summary:hover { color: var(--accent); } +.faq details p { color: var(--muted); margin: 0 0 1.5rem; max-width: 40rem; } + +/* ---------- Contact ---------- */ +.contact { display: grid; gap: 3rem; } +.contact h2 { margin-bottom: 1.25rem; } +.contact__intro p { opacity: 0.88; max-width: 28rem; } +.contact__place { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; margin-top: 2rem; } +.form { display: grid; gap: 1.4rem; } +.field { display: grid; gap: 0.4rem; } +.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } +.field label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; } +.opt { text-transform: none; letter-spacing: 0; opacity: 0.8; } +.form input, .form select, .form textarea { + font: inherit; color: var(--paper); background: transparent; border: 0; border-bottom: 1px solid #a49a8c; + border-radius: 0; padding: 0.55rem 0; min-height: 2.75rem; width: 100%; color-scheme: dark; +} +.form select option { color: var(--ink); background: var(--paper); } +.form textarea { resize: vertical; } +.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: none; border-bottom: 2px solid var(--paper); } +.form__note { font-size: 0.8125rem; opacity: 0.75; margin: 0; } + +/* ---------- Pied de page ---------- */ +.footer { background: var(--ink); color: var(--paper); border-top: 1px solid #3a342d; } +.footer__inner { padding-block: 2.5rem 3rem; display: grid; gap: 1rem; font-size: 0.875rem; } +.footer__brand { font-family: var(--serif); font-size: 1.75rem; margin: 0; } +.footer__line { opacity: 0.8; margin: 0; } +.footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; } +.footer__nav a { text-decoration: none; opacity: 0.85; } +.footer__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; } + +/* ---------- Pages légales ---------- */ +.draft { background: var(--tint); border-bottom: 1px solid var(--line); text-align: center; font-size: 0.75rem; letter-spacing: 0.06em; padding: 0.6rem var(--gutter); margin: 0; color: var(--muted); } +.legal { max-width: 44rem; padding-block: clamp(3rem, 8vw, 5.5rem) clamp(4rem, 9vw, 6rem); } +.legal h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); margin-bottom: 0.75rem; } +.legal__meta { color: var(--muted); font-size: 0.875rem; margin-bottom: 3rem; } +.legal h2 { font-size: 1.75rem; font-weight: 500; margin: 2.75rem 0 0.9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); } +.legal p, .legal li { color: #3d3630; } +.legal ul { padding-left: 1.2rem; } +.legal li { margin-bottom: 0.4rem; } +.legal blockquote { margin: 1rem 0; padding: 1rem 1.25rem; border-left: 2px solid var(--accent); background: var(--paper); } +.ph { background: #f3dcc9; color: var(--accent); font-weight: 600; padding: 0 0.25em; font-size: 0.95em; white-space: nowrap; } +.back { font-size: 0.875rem; } + +/* ---------- Grandes largeurs ---------- */ +@media (min-width: 48rem) { + .topnav { display: flex; } + .tablecard { bottom: 4.5rem; width: 44%; } + .hero__visual figcaption { max-width: 26rem; margin-inline: auto; text-align: center; } + .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } + .features { grid-template-columns: repeat(2, 1fr); column-gap: 4rem; } + .features div:nth-child(n+5) { border-bottom: 0; } + .audience { grid-template-columns: repeat(2, 1fr); column-gap: 4rem; } + .pricing { grid-template-columns: repeat(2, 1fr); } + .statement__inner { grid-template-columns: 1.6fr 1fr; align-items: end; gap: 4rem; } + .launch { grid-template-columns: auto 1fr; gap: 2rem; align-items: baseline; } + .contact { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } + .footer__inner { grid-template-columns: auto 1fr auto; align-items: baseline; gap: 2rem; } +} +@media (min-width: 64rem) { + .hero { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4rem; } + .pricing { grid-template-columns: repeat(4, 1fr); gap: 1rem; } + .promises { grid-template-columns: 1.5fr 1fr; gap: 5rem; } + .audience { grid-template-columns: repeat(4, 1fr); column-gap: 2rem; } + .audience li { border-top-color: var(--ink); } +} + +/* ---------- Mouvement : une seule entrée, discrète ---------- */ +@media (prefers-reduced-motion: no-preference) { + .hero__text > *, .hero__visual { animation: rise 0.9s var(--ease) both; } + .hero__text > :nth-child(2) { animation-delay: 0.08s; } + .hero__text > :nth-child(3) { animation-delay: 0.16s; } + .hero__text > :nth-child(4) { animation-delay: 0.24s; } + .hero__text > :nth-child(5) { animation-delay: 0.32s; } + .hero__visual { animation-delay: 0.3s; animation-duration: 1.2s; } + .tablecard { transition: transform 0.6s var(--ease); } + .hero__visual:hover .tablecard { transform: rotate(1.5deg) translateY(-4px); } +} +@media (prefers-reduced-motion: reduce) { + html { scroll-behavior: auto; } + *, *::before, *::after { transition-duration: 0.01ms !important; } +} +@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } } diff --git a/src/legal/cgv.html b/src/legal/cgv.html new file mode 100644 index 0000000..7fb8ab9 --- /dev/null +++ b/src/legal/cgv.html @@ -0,0 +1,98 @@ + + + + + + Conditions générales de vente + + + + + + + +

Document en cours de validation juridique. Les éléments entre crochets restent à compléter.

+ +
+ , retour à l'accueil + Retour à l'accueil +
+ +
+

Informations légales

+

Conditions générales de vente

+ + +

1. Qui vend

+

Kévin Lecou, entrepreneur individuel (EI), [ADRESSE], SIRET [SIRET], lecoukevin@gmail.com, [TÉLÉPHONE]. TVA non applicable, art. 293 B du CGI.

+ +

2. Ce qui est vendu

+

Pour un événement donné : une galerie en ligne accessible par lien et QR code, où les invités déposent des photos (et un prénom et un message facultatifs), visibles par les invités et par le client ; l'export ZIP pour le client ; le QR code et un carton imprimable. Ouverture de la galerie à la commande, suppression automatique et définitive de tout le contenu 7 jours après la date de l'événement indiquée à la commande.

+

Limites : [nombre de photos par invité, taille] ; formats acceptés : photos uniquement, enregistrées en JPEG après compression automatique.

+ +

3. Prix et paiement

+

Particuliers : prix par événement indiqué sur la page Tarifs au jour de la commande, prix net (TVA non applicable).
+ Professionnels : selon le devis ou la formule annuelle souscrite.
+ Paiement : [à la commande / à réception de facture sous 30 jours pour les pros] par [virement / carte].

+

Professionnels, en cas de retard : pénalités au taux de [3 fois le taux d'intérêt légal] et indemnité forfaitaire de 40 € pour frais de recouvrement (art. L441-10 du Code de commerce).

+ +

4. Commande

+

La commande est confirmée par email avec le récapitulatif (événement, date, prix) et ces CGV en pièce jointe ou en lien durable.

+ +

5. Droit de rétractation (particuliers uniquement)

+

Vous disposez de 14 jours à compter de la commande pour vous rétracter, sans motif, en écrivant à lecoukevin@gmail.com (formulaire ci-dessous possible). Remboursement sous 14 jours par le même moyen de paiement.

+

Exception : si vous demandez expressément que la galerie soit ouverte avant la fin de ce délai (événement dans moins de 14 jours, ou ouverture immédiate pour tester), vous le confirmez en cochant la case prévue et vous reconnaissez que :

+ +

Texte de la case à cocher (non pré-cochée) :

+
« Je demande l'ouverture de ma galerie avant la fin du délai de rétractation de 14 jours. Je reconnais perdre ce droit une fois le service entièrement fourni. »
+

Formulaire de rétractation :

+
« À l'attention de Kévin Lecou, [ADRESSE], lecoukevin@gmail.com : je notifie par la présente ma rétractation du contrat portant sur la prestation ci-dessous. Commandée le : … Nom : … Adresse : … Date : … »
+ +

6. Annulation par le client

+

Particuliers, après le délai de rétractation : annulation possible jusqu'à [7] jours avant l'événement, remboursement de [X] %. Au-delà, pas de remboursement si la galerie a été ouverte.
+ Professionnels : selon le devis.

+ +

7. Si le service ne fonctionne pas le jour J

+

Nous surveillons le service pendant l'événement et vous fournissons un contact joignable : [TÉLÉPHONE] / lecoukevin@gmail.com.

+ +

Ne sont pas des pannes du service : absence de réseau mobile ou de Wi-Fi sur le lieu, téléphone ou navigateur de l'invité trop ancien, QR code mal imprimé ou modifié par le client.

+ +

8. Responsabilité

+

Particuliers : nous sommes responsables de la bonne exécution du service dans les conditions du Code de la consommation ; rien dans ces CGV ne limite vos droits légaux.

+

Professionnels : notre responsabilité totale, toutes causes confondues, est limitée au montant payé pour l'événement concerné (ou aux 12 derniers mois de formule annuelle), hors faute lourde ou dolosive. Pas de responsabilité pour les pertes indirectes (image, perte de chance commerciale).

+

Pour tous : le service n'est pas un archivage. Vous devez télécharger le ZIP avant J+7 : après, les photos sont définitivement supprimées, sans copie.

+ +

9. Données personnelles

+

Pour la galerie, vous (l'organisateur) décidez de la collecte des photos de vos invités et nous l'hébergeons pour votre compte. Nous nous engageons à : n'utiliser les photos que pour faire fonctionner la galerie ; ne jamais les utiliser pour notre publicité sans accord écrit des personnes concernées ; les supprimer à J+7 ; vous prévenir sans délai en cas d'incident de sécurité ; traiter avec vous les demandes de retrait des invités.

+

Vous vous engagez à informer vos invités (carton fourni) et à respecter leur droit à l'image, notamment pour le ZIP que vous récupérez. Professionnels : l'annexe « sous-traitance des données » s'applique. Nos propres traitements (facturation, contact) : voir la politique de confidentialité.

+ +

10. Contenus déposés

+

Les invités sont seuls responsables des photos et messages qu'ils déposent. Nous ne surveillons pas les galeries a priori. Tout contenu manifestement illicite (atteinte à la vie privée, contenu sexuel non consenti, haineux, violent, impliquant des mineurs…) peut nous être signalé à lecoukevin@gmail.com : nous le retirons promptement et prévenons l'organisateur. Le client peut aussi nous demander le retrait d'une photo de sa galerie.

+

Nous pouvons suspendre une galerie utilisée de façon manifestement illicite, sans remboursement.

+ +

11. Médiation et litiges

+

Particuliers : en cas de litige non résolu avec nous par écrit, vous pouvez recourir gratuitement au médiateur de la consommation : [MÉDIATEUR]. Droit français. Professionnels : tribunal de commerce de [VILLE].

+ + +
+ + + + diff --git a/src/legal/confidentialite.html b/src/legal/confidentialite.html new file mode 100644 index 0000000..c6f4ea5 --- /dev/null +++ b/src/legal/confidentialite.html @@ -0,0 +1,65 @@ + + + + + + Politique de confidentialité + + + + + + + +

Document en cours de validation juridique. Les éléments entre crochets restent à compléter.

+ +
+ , retour à l'accueil + Retour à l'accueil +
+ +
+

Informations légales

+

Vos photos et vos données

+ + +

Ce site

+

Ce site ne dépose aucun cookie, n'utilise aucun outil de mesure d'audience ni de publicité, et n'enregistre rien. Le formulaire de contact ouvre simplement votre messagerie : les informations que vous nous écrivez (prénom, date, nombre d'invités, message) servent uniquement à vous répondre et à établir un devis. Elles sont conservées [DURÉE], ou la durée légale de conservation des factures si vous devenez client.

+ +

Qui est responsable d'une galerie ?

+

L'organisateur de l'événement (affiché par l'événement) décide de la galerie. , édité par Kévin Lecou (EI, SIRET [SIRET]), l'héberge pour son compte.

+ +

Ce qui est collecté

+

Les photos déposées, ainsi que le prénom et le petit mot de l'invité s'il les remplit (facultatifs). Aucun compte, aucun email, aucun téléphone. Le navigateur de l'invité garde un identifiant anonyme (stockage local, pas un cookie de suivi) uniquement pour appliquer la limite de photos par invité fixée par l'organisateur. Aucune publicité, aucune mesure d'audience.

+ +

Pourquoi

+

Partager les souvenirs de l'événement entre ses invités et l'organisateur (intérêt légitime de l'organisateur).

+ +

Qui voit les photos

+

Les invités qui ont le lien ou le QR code de l'événement, et l'organisateur. L'organisateur peut télécharger toutes les photos : ce qu'il en fait ensuite relève de sa seule responsabilité. Nos prestataires techniques (stockage : Supabase, région [RÉGION SUPABASE] ; serveur : [HÉBERGEUR VPS]) y ont accès uniquement pour faire fonctionner le service. Rien n'est vendu, ni utilisé pour notre publicité.

+ +

Combien de temps

+

Suppression automatique 7 jours après la date de l'événement : photos, prénoms et messages. Les journaux techniques du serveur (adresse IP) sont gardés [N] jours ; les sauvegardes techniques de la base sont effacées au plus tard [N] jours après.

+ +

Vos droits

+

Accès, rectification, effacement, opposition, limitation. Écrivez à lecoukevin@gmail.com avec le lien de l'événement et la photo concernée : nous traitons la demande avec l'organisateur, sous 72 heures pour un retrait de photo pendant l'événement, sous un mois au maximum dans les autres cas. Vous pouvez aussi saisir la CNIL (cnil.fr).

+ +

Personnes visibles sur les photos

+

Si vous apparaissez sur une photo déposée par quelqu'un d'autre, vous pouvez demander son retrait de la même façon. Ne déposez pas de photo d'enfant sans l'accord de ses parents.

+ + +
+ + + + diff --git a/src/legal/mentions-legales.html b/src/legal/mentions-legales.html new file mode 100644 index 0000000..8085977 --- /dev/null +++ b/src/legal/mentions-legales.html @@ -0,0 +1,64 @@ + + + + + + Mentions légales + + + + + + + +

Document en cours de validation juridique. Les éléments entre crochets restent à compléter.

+ +
+ , retour à l'accueil + Retour à l'accueil +
+ +
+

Informations légales

+

Mentions légales

+ + +

Éditeur du site

+

Kévin Lecou, entrepreneur individuel (EI), micro-entreprise.
+ Nom commercial :
+ Adresse : [ADRESSE]
+ SIREN : [SIREN] — SIRET : [SIRET]
+ Immatriculation : Registre national des entreprises (RNE)
+ TVA non applicable, art. 293 B du CGI.
+ Email : lecoukevin@gmail.com — Téléphone : [TÉLÉPHONE]
+ Directeur de la publication : Kévin Lecou

+ +

Hébergement

+

Site : [HÉBERGEUR VPS — raison sociale, adresse, téléphone]

+

Données et photos : Supabase Inc., [ADRESSE SUPABASE], données stockées dans la région [RÉGION SUPABASE].

+ +

Données personnelles

+

Voir la politique de confidentialité.

+ +

Signaler un contenu

+

Pour signaler un contenu illicite déposé sur une galerie, écrivez à lecoukevin@gmail.com (objet « Signalement »), en indiquant le lien de la galerie, la photo concernée et le motif. Voir aussi l'article 10 des conditions générales de vente.

+ +

Propriété intellectuelle

+

Le site, son code et sa charte graphique appartiennent à Kévin Lecou. Les photos déposées restent la propriété de leurs auteurs.

+ + +
+ + + + diff --git a/src/vendor/NOTICE.md b/src/vendor/NOTICE.md index 7e790db..66e212f 100644 --- a/src/vendor/NOTICE.md +++ b/src/vendor/NOTICE.md @@ -26,38 +26,39 @@ depuis la source indiquée. a déjà transcodé le fichier en JPEG lors de la sélection) ne téléchargeront jamais ce fichier. -## General Sans, Caveat, Inter (fonts/) — direction "Polaroid Néon" +## Polices (fonts/) — DA « Tablée — Faire-part » -Trio typographique de la direction artistique du projet -(`.claude/skills/photobooth-da/SKILL.md`), appliqué à tous les écrans web -(le carton imprimable garde Caveat + General Sans mais reste en thème -clair, cf. `src/admin/print-template/`). +Depuis le 15/10/2026, **tous les écrans** (landing, pages légales, page invité, +galerie de la fête, admin, générateur QR, carton imprimable) chargent +uniquement **Cormorant Garamond + Inter** (~86 Ko au total, contre ~144 Ko +pour l'ancien trio « Polaroid Néon »). Référence : +`.claude/skills/photobooth-da/SKILL.md`. -- **General Sans** — `fonts/generalsans-700.woff2` (21,2 Ko), graisse 700 - uniquement (titres/display, "bold arrondie" demandée dans le brief — pas - besoin de graisse 600 en plus pour ce rôle). Licence Open Font License, - distribuée via Fontshare (`https://api.fontshare.com`). Fichier statique - (pas la version variable, plus légère pour une seule graisse utilisée). -- **Caveat** — `fonts/caveat-latin-variable.woff2` (74,9 Ko), légendes - manuscrites (prénom/message sur les cadres polaroid). Licence SIL Open - Font License, Google Fonts. Fichier **variable** (couvre 400-700) : Google - sert le même fichier variable pour toutes les graisses statiques - demandées à cette police via l'API CSS2, donc pas d'intérêt à en - télécharger plusieurs — un seul fichier suffit, `font-weight: 400 700` - dans le `@font-face`. -- **Inter** — `fonts/inter-latin-variable.woff2` (48,3 Ko), texte UI/corps - des écrans utilisant la nouvelle DA (remplace la pile système - `--font-sans` sur ces écrans uniquement — poids assumé, demandé - explicitement dans le brief). Licence SIL Open Font License, Google - Fonts. Fichier variable, même raison qu'au-dessus. +- **Inter** — `fonts/inter-latin-variable.woff2` (48,3 Ko), texte et + interface. Licence SIL Open Font License, Google Fonts. Fichier variable + (400-700). -Sous-ensemble « latin » uniquement pour les trois (couvre les accents -français, pas besoin de « latin-ext », plus lourd). Récupérées une fois via -l'API CSS de Fontshare/Google Fonts (`curl`) puis auto-hébergées ici — +### Fichiers devenus inutilisés (plus référencés par aucune page) + +À supprimer quand Kévin le valide (laissés en place, rien ne les charge) : + +- `fonts/generalsans-700.woff2` (21,2 Ko) — General Sans 700, titres de + l'ancienne DA « Polaroid Néon ». Licence OFL (Fontshare). +- `fonts/caveat-latin-variable.woff2` (74,9 Ko) — Caveat, légendes + manuscrites de l'ancienne DA. Licence SIL OFL (Google Fonts). + +Sous-ensemble « latin » uniquement (accents français couverts). Récupérées +une fois via l'API CSS de Google Fonts (`curl`) puis auto-hébergées ici — jamais de lien CDN live, cf. règle du projet. -⚠️ Poids cumulé si les 3 sont chargées sur un même écran : ~144 Ko. Si le -poids total devient un problème, la piste la plus simple est de retirer -Inter et revenir à la pile système pour le corps de texte (c'est la police -la plus "remplaçable" des trois, celle qui apporte le moins de personnalité -propre à la DA). +## Cormorant Garamond (fonts/) + +- **Cormorant Garamond** — `fonts/cormorantgaramond-latin-variable.woff2` + (37,6 Ko), serif display de la landing « premium » (`src/landing/`) et des + pages `src/legal/`. Fichier **variable** (graisses 300-700), style droit + uniquement (pas d'italique, pour rester à un seul fichier). Licence SIL + Open Font License 1.1 (projet Christian Thalmann / Catharsis Fonts, + `github.com/google/fonts/tree/main/ofl/cormorantgaramond`). Récupéré le + 15/10/2026 via l'API CSS2 de Google Fonts (sous-ensemble « latin », € et + Œ/œ inclus), même méthode que les polices ci-dessus. +- Utilisé par tous les écrans depuis le 15/10/2026 (voir plus haut). diff --git a/src/vendor/fonts/cormorantgaramond-latin-variable.woff2 b/src/vendor/fonts/cormorantgaramond-latin-variable.woff2 new file mode 100644 index 0000000..a1828a8 Binary files /dev/null and b/src/vendor/fonts/cormorantgaramond-latin-variable.woff2 differ