Refonte de la direction artistique : accent terracotta, landing, app et démo

- Landing refaite : nouvelle palette claire, Newsreader et DM Sans, logo validé,
  sections (garanties, trois gestes, démo, pour qui, engagements, guides, bloc final).
  Illustration du hero conservée et recolorée, portraits alignés sur les âges.
- App : couleurs et typographie passées à la nouvelle DA, structure et fonctionnalités inchangées.
  Composants communs dans src/styles/pz.css.
- Refaits de zéro : fiche d'une personne (souvenirs, infos, liens, panneau mobile),
  connexion, création de compte, liste des arbres, accès par mot de passe, recherche,
  barre d'actions, menu du compte, zoom, et toutes les fenêtres (compte, création d'arbre,
  contributions, envoi, sortie d'édition, brouillon, ajout de personne, souvenirs, visionneuse,
  paramètres de l'arbre).
- Arbre : chaque personne garde sa forme de cadre tirée au hasard, cadre vertical pour une photo carrée.
- Démo : photos d'époque libres de droits hébergées dans public/demo (sources et licences
  dans sources.json et CREDITS.md), famille Dupont crédible, Isabelle née à Fort-de-France.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
IliesAllaliandClaude Opus 5.5 committed 2026-09-25 11:21:04 +02:00
1 parent cf74644309
commit 5b5636e1be
104 files changed
+3659 -7947

No files matched your search

+76 -383
View File
@@ -1,413 +1,106 @@
/* ============================================================
Add Person Panel - Slide-in gauche ajout de personne
400px desktop, 90% mobile
Ajouter une personne (DA terracotta)
Panneau flottant à gauche, de la même famille que la fiche.
Sur téléphone, panneau qui monte par le bas.
============================================================ */
.add-person-panel {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 400px;
top: 24px;
left: 24px;
bottom: 24px;
z-index: 1050;
background: rgba(254, 249, 237, 0.98);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
border-right: 1px solid rgba(166, 124, 82, 0.15);
box-shadow: 6px 0 32px rgba(93, 82, 75, 0.15);
transform: translateX(-100%);
transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
width: 400px;
display: flex;
flex-direction: column;
overflow: hidden;
gap: 18px;
padding: 22px 20px 18px;
background: var(--pz-surface);
border: 1px solid var(--pz-line);
border-radius: var(--pz-r-l);
box-shadow: var(--pz-shadow-lg);
transform: translateX(calc(-100% - 40px));
opacity: 0;
visibility: hidden;
transition: transform 320ms var(--pz-ease), opacity 220ms ease, visibility 0s linear 320ms;
}
.add-person-panel--open {
transform: translateX(0);
transform: none;
opacity: 1;
visibility: visible;
transition: transform 320ms var(--pz-ease), opacity 220ms ease, visibility 0s;
}
/* --- Header --- */
.apn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.apn-close { flex: none; margin: -6px -6px 0 0; }
.add-person-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 24px 16px;
border-bottom: 1px solid rgba(166, 124, 82, 0.1);
flex-shrink: 0;
}
.apn-form { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.apn-scroll { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 16px; align-content: start; margin: 0 -6px; padding: 2px 6px 4px; scrollbar-width: thin; scrollbar-color: var(--pz-line) transparent; }
.add-person-header-title {
display: flex;
align-items: center;
gap: 10px;
color: #5D524B;
}
.apn-optional { font-weight: 400; color: var(--pz-faint); margin-left: 4px; }
.apn-input--error { border-color: var(--pz-danger) !important; box-shadow: 0 0 0 3px var(--pz-danger-bg) !important; }
.apn-error-text { margin: -8px 0 0; font: 500 12.5px var(--pz-sans); color: var(--pz-danger); }
.add-person-header-title h2 {
font-family: 'Red Hat Mono', ui-monospace, monospace;
font-size: 18px;
font-weight: 700;
margin: 0;
color: #5D524B;
}
.apn-section { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--pz-line-soft); }
.apn-types .pz-tab { font-size: 13px; padding: 0 6px; }
.add-person-close {
width: 32px;
height: 32px;
border-radius: 50%;
border: none;
background: transparent;
color: #8B7355;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.apn-relation { position: relative; }
.apn-search { position: relative; display: flex; align-items: center; }
.apn-search input { padding-left: 38px !important; padding-right: 36px !important; }
.apn-search-icon { position: absolute; left: 13px; color: var(--pz-muted); pointer-events: none; }
.apn-search-chevron { position: absolute; right: 13px; color: var(--pz-faint); pointer-events: none; }
.add-person-close:hover {
background: rgba(93, 82, 75, 0.1);
color: #5D524B;
}
/* --- Form --- */
.add-person-form {
flex: 1;
overflow-y: auto;
padding: 20px 24px 24px;
display: flex;
flex-direction: column;
gap: 16px;
}
.add-person-field {
display: flex;
flex-direction: column;
gap: 6px;
}
.add-person-label {
font-family: 'Red Hat Mono', ui-monospace, monospace;
font-size: 14px;
font-weight: 450;
color: #8B7355;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.add-person-required {
color: #C0392B;
}
.add-person-input {
padding: 10px 14px;
border-radius: 10px;
border: 1.5px solid rgba(166, 124, 82, 0.2);
background: rgba(255, 255, 255, 0.6);
font-family: 'Red Hat Mono', ui-monospace, monospace;
font-size: 14px;
color: #5D524B;
transition: all 0.2s ease;
outline: none;
}
.add-person-input::placeholder {
color: #B8A898;
}
.add-person-input:focus {
border-color: #A67C52;
box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.12);
}
.add-person-input--error {
border-color: rgba(192, 57, 43, 0.5);
}
.add-person-input--error:focus {
border-color: #C0392B;
box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}
.add-person-error-text {
font-size: 14px;
color: #C0392B;
}
.add-person-row {
display: flex;
gap: 12px;
}
.add-person-row .add-person-field {
flex: 1;
}
/* --- Section Relations --- */
.add-person-section {
margin-top: 8px;
padding-top: 16px;
border-top: 1px solid rgba(166, 124, 82, 0.1);
display: flex;
flex-direction: column;
gap: 12px;
}
.add-person-section-title {
font-family: 'Red Hat Mono', ui-monospace, monospace;
font-size: 14px;
font-weight: 700;
color: #5D524B;
margin: 0;
}
/* Relation type pills */
.relation-type-pills {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.relation-type-pill {
padding: 5px 12px;
border-radius: 20px;
border: 1.5px solid rgba(166, 124, 82, 0.2);
background: transparent;
font-family: 'Red Hat Mono', ui-monospace, monospace;
font-size: 14px;
font-weight: 450;
color: #8B7355;
cursor: pointer;
transition: all 0.2s ease;
}
.relation-type-pill:hover {
border-color: rgba(166, 124, 82, 0.4);
background: rgba(166, 124, 82, 0.05);
}
.relation-type-pill--active {
border-color: #A67C52;
background: rgba(166, 124, 82, 0.1);
color: #A67C52;
}
/* Relation search */
.relation-search-wrapper {
position: relative;
}
.relation-search-icon {
.apn-dropdown {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
color: #B8A898;
pointer-events: none;
}
.relation-search-input {
padding-left: 32px !important;
padding-right: 28px !important;
}
.relation-search-chevron {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
color: #B8A898;
pointer-events: none;
}
/* Relation dropdown */
.relation-dropdown-wrapper {
position: relative;
}
.relation-dropdown-list {
position: absolute;
top: 100%;
top: calc(100% + 6px);
left: 0;
right: 0;
z-index: 10;
margin: 4px 0 0;
padding: 4px;
z-index: 5;
list-style: none;
background: rgba(254, 249, 237, 0.99);
backdrop-filter: blur(16px);
border: 1px solid rgba(166, 124, 82, 0.2);
border-radius: 12px;
box-shadow: 0 8px 24px rgba(93, 82, 75, 0.15);
max-height: 200px;
margin: 0;
padding: 5px;
max-height: 260px;
overflow-y: auto;
background: var(--pz-surface);
border: 1px solid var(--pz-line);
border-radius: var(--pz-r-m);
box-shadow: var(--pz-shadow-lg);
animation: pz-rise 160ms var(--pz-ease) both;
}
.apn-dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 5px 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; }
@media (hover: hover) and (pointer: fine) { .apn-dropdown-item:hover { background: var(--pz-a50); } }
.apn-avatar { width: 30px; height: 30px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--pz-a100); color: var(--pz-a700); font: 400 14px/1 var(--pz-serif); }
.apn-avatar img { width: 100%; height: 100%; object-fit: cover; }
.apn-dropdown-name { flex: 1; min-width: 0; font: 400 16px/1.2 var(--pz-serif); color: var(--pz-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apn-dropdown-name em { font-style: italic; font-weight: 300; }
.apn-dropdown-date { flex: none; font: 400 12px var(--pz-sans); color: var(--pz-muted); font-variant-numeric: tabular-nums; }
.relation-dropdown-item {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 8px 12px;
border: none;
background: transparent;
border-radius: 8px;
cursor: pointer;
transition: background 0.15s ease;
text-align: left;
}
.apn-links { display: grid; gap: 6px; }
.apn-link { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--pz-a50); border: 1px solid var(--pz-a100); }
.apn-link-type { flex: none; font: 500 12px var(--pz-sans); color: var(--pz-a700); }
.apn-link-name { flex: 1; min-width: 0; font: 400 15px/1.2 var(--pz-serif); color: var(--pz-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apn-link-remove { width: 30px; min-height: 30px; color: var(--pz-muted); }
.relation-dropdown-item:hover {
background: rgba(166, 124, 82, 0.08);
}
.relation-dropdown-name {
font-family: 'Red Hat Mono', ui-monospace, monospace;
font-size: 14px;
font-weight: 450;
color: #5D524B;
}
.relation-dropdown-date {
font-family: 'Red Hat Mono', ui-monospace, monospace;
font-size: 14px;
color: #B8A898;
}
/* Relation tags */
.relation-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.relation-tag {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 6px 4px 10px;
border-radius: 20px;
background: rgba(166, 124, 82, 0.08);
border: 1px solid rgba(166, 124, 82, 0.15);
}
.relation-tag-type {
font-family: 'Red Hat Mono', ui-monospace, monospace;
font-size: 12px;
font-weight: 700;
color: #A67C52;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.relation-tag-name {
font-family: 'Red Hat Mono', ui-monospace, monospace;
font-size: 14px;
font-weight: 450;
color: #5D524B;
}
.relation-tag-remove {
width: 18px;
height: 18px;
border-radius: 50%;
border: none;
background: transparent;
color: #8B7355;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s ease;
}
.relation-tag-remove:hover {
background: rgba(192, 57, 43, 0.1);
color: #C0392B;
}
/* --- Error --- */
.add-person-error {
padding: 10px 14px;
border-radius: 10px;
background: rgba(192, 57, 43, 0.08);
border: 1px solid rgba(192, 57, 43, 0.2);
color: #C0392B;
font-family: 'Red Hat Mono', ui-monospace, monospace;
font-size: 14px;
}
/* --- Actions --- */
.add-person-actions {
margin-top: auto;
padding-top: 16px;
border-top: 1px solid rgba(166, 124, 82, 0.1);
display: flex;
flex-direction: column;
gap: 8px;
}
.add-person-submit {
padding: 12px 20px;
border-radius: 12px;
border: none;
background: #A67C52;
color: #FEF9ED;
font-family: 'Red Hat Mono', ui-monospace, monospace;
font-size: 14px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s ease;
}
.add-person-submit:hover:not(:disabled) {
background: #96703E;
box-shadow: 0 4px 16px rgba(166, 124, 82, 0.3);
}
.add-person-submit:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.add-person-cancel {
padding: 10px 20px;
border-radius: 12px;
border: none;
background: transparent;
color: #8B7355;
font-family: 'Red Hat Mono', ui-monospace, monospace;
font-size: 14px;
font-weight: 450;
cursor: pointer;
transition: all 0.2s ease;
}
.add-person-cancel:hover {
background: rgba(93, 82, 75, 0.08);
color: #5D524B;
}
/* --- Responsive Mobile --- */
.apn-actions { flex: none; display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; border-top: 1px solid var(--pz-line); }
@media (max-width: 768px) {
.add-person-panel {
width: 90vw;
}
.add-person-header {
padding: 16px 18px 12px;
}
.add-person-form {
padding: 16px 18px 20px;
top: auto;
left: 0;
right: 0;
bottom: 0;
width: auto;
max-height: 90dvh;
border-radius: 26px 26px 0 0;
border-bottom: 0;
padding: 18px 18px calc(16px + env(safe-area-inset-bottom));
transform: translateY(100%);
transition: transform 400ms var(--pz-ease-drawer), opacity 220ms ease, visibility 0s linear 400ms;
}
.add-person-panel--open { transform: none; transition: transform 400ms var(--pz-ease-drawer), opacity 220ms ease, visibility 0s; }
}
@media (prefers-reduced-motion: reduce) {
.add-person-panel, .add-person-panel--open { transform: none; transition: opacity 180ms ease, visibility 0s linear 180ms; }
.add-person-panel--open { transition: opacity 180ms ease, visibility 0s; }
}