mirror of
https://github.com/IliesAllali/parenthese.git
synced 2026-11-11 00:02:13 +00:00
778 lines
14 KiB
CSS
778 lines
14 KiB
CSS
.app {
|
|
width: 100vw;
|
|
height: 100vh;
|
|
/* La hauteur visible réelle (barres de Safari comprises) là où le navigateur la connaît */
|
|
height: 100dvh;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: #FBFAF7;
|
|
}
|
|
|
|
.app::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: transparent;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.app-loading {
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.account-dashboard-card {
|
|
width: min(720px, 100%);
|
|
max-height: calc(100vh - 40px);
|
|
overflow: auto;
|
|
display: grid;
|
|
gap: 12px;
|
|
padding: 24px;
|
|
border-radius: 18px;
|
|
border: 1px solid #ebe6df;
|
|
background: rgba(255, 255, 255, 0.82);
|
|
box-shadow: 0 16px 38px rgba(42, 38, 34, 0.14);
|
|
}
|
|
|
|
.account-dashboard-card h1 {
|
|
font-size: 28px;
|
|
color: #2a2622;
|
|
}
|
|
|
|
.account-dashboard-card h2 {
|
|
font-size: 20px;
|
|
color: #4f4841;
|
|
}
|
|
|
|
.account-dashboard-card p {
|
|
color: #4f4841;
|
|
}
|
|
|
|
.account-form,
|
|
.create-tree-form {
|
|
display: grid;
|
|
gap: 8px;
|
|
background: rgba(255, 255, 255, 0.65);
|
|
border: 1px solid #ebe6df;
|
|
border-radius: 12px;
|
|
padding: 14px;
|
|
}
|
|
|
|
.account-form label,
|
|
.create-tree-form label {
|
|
font-size: 14px;
|
|
color: #4f4841;
|
|
}
|
|
|
|
.account-form input,
|
|
.create-tree-form input {
|
|
width: 100%;
|
|
border-radius: 10px;
|
|
border: 1px solid #e6e1da;
|
|
background: #ffffff;
|
|
color: #2a2622;
|
|
padding: 10px 12px;
|
|
outline: none;
|
|
}
|
|
|
|
.account-form input:focus,
|
|
.create-tree-form input:focus {
|
|
border-color: #d2694a;
|
|
box-shadow: 0 0 0 2px rgba(210, 105, 74, 0.15);
|
|
}
|
|
|
|
.account-form button,
|
|
.create-tree-form button {
|
|
border: 0;
|
|
border-radius: 10px;
|
|
padding: 11px 14px;
|
|
font-weight: 450;
|
|
color: #ffffff;
|
|
background: #2a2622;
|
|
cursor: pointer;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.account-form button:disabled,
|
|
.create-tree-form button:disabled {
|
|
opacity: 0.65;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.tree-name {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.tree-meta {
|
|
font-size: 14px;
|
|
color: #4f4841;
|
|
}
|
|
|
|
.wizard-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 30;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 20px;
|
|
background: rgba(34, 33, 31, 0.34);
|
|
}
|
|
|
|
.wizard-card {
|
|
width: min(460px, 100%);
|
|
max-height: calc(100vh - 40px);
|
|
overflow: auto;
|
|
display: grid;
|
|
gap: 10px;
|
|
border-radius: 18px;
|
|
border: 1px solid #f4d6c9;
|
|
background: #ffffff;
|
|
padding: 22px 20px 18px;
|
|
box-shadow: 0 24px 45px rgba(36, 33, 30, 0.34);
|
|
}
|
|
|
|
/* ── Sections personnes ── */
|
|
.wizard-persons {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.wizard-person {
|
|
display: grid;
|
|
gap: 7px;
|
|
border: 1px solid #edb6a4;
|
|
border-radius: 12px;
|
|
background: rgba(251, 250, 249, 0.9);
|
|
padding: 11px 12px;
|
|
}
|
|
|
|
.wizard-person-label {
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
color: #8a847d;
|
|
}
|
|
|
|
.wizard-person-label--self {
|
|
color: #2a2622;
|
|
}
|
|
|
|
.wizard-person-fields {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 7px;
|
|
}
|
|
|
|
.wizard-card input {
|
|
width: 100%;
|
|
border-radius: 9px;
|
|
border: 1px solid #e6e1da;
|
|
background: #ffffff;
|
|
color: #2a2622;
|
|
padding: 9px 11px;
|
|
font-size: 14px;
|
|
outline: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.wizard-card input::placeholder {
|
|
color: #a7a29c;
|
|
}
|
|
|
|
.wizard-card input:focus {
|
|
border-color: #d2694a;
|
|
box-shadow: 0 0 0 2px rgba(210, 105, 74, 0.15);
|
|
}
|
|
|
|
.wizard-year {
|
|
grid-column: 1 / -1;
|
|
font-size: 13px !important;
|
|
}
|
|
|
|
.wizard-card button {
|
|
border: 0;
|
|
border-radius: 10px;
|
|
padding: 11px 14px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: #ffffff;
|
|
background: #2a2622;
|
|
cursor: pointer;
|
|
margin-top: 4px;
|
|
transition: filter 0.15s;
|
|
}
|
|
|
|
.wizard-card button:not(:disabled):hover {
|
|
filter: brightness(1.08);
|
|
}
|
|
|
|
.wizard-card button:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.wizard-card .ghost {
|
|
margin-top: 0;
|
|
background: transparent;
|
|
color: #5f5a54;
|
|
border: 1px solid #efc7b8;
|
|
font-weight: 450;
|
|
}
|
|
|
|
.wizard-error {
|
|
background: rgba(171, 49, 49, 0.1);
|
|
border: 1px solid rgba(171, 49, 49, 0.32);
|
|
color: #862f2f;
|
|
border-radius: 10px;
|
|
padding: 10px 12px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ============================================================
|
|
Bannière de bienvenue — onboarding premier utilisateur
|
|
============================================================ */
|
|
.demo-welcome {
|
|
position: fixed;
|
|
top: 20px;
|
|
left: 20px;
|
|
z-index: 800;
|
|
max-width: 260px;
|
|
padding: 14px 16px;
|
|
background: rgba(242, 239, 234, 0.93);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(42, 38, 34, 0.1);
|
|
box-shadow:
|
|
0 4px 24px rgba(42, 38, 34, 0.14),
|
|
0 1px 4px rgba(42, 38, 34, 0.06);
|
|
font-family: 'DM Sans', system-ui, sans-serif;
|
|
font-size: 13px;
|
|
color: #2A2622;
|
|
line-height: 1.55;
|
|
pointer-events: none;
|
|
animation: demoWelcomeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
|
|
}
|
|
|
|
@keyframes demoWelcomeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-8px) scale(0.96);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
|
|
.demo-welcome strong {
|
|
color: #2a2622;
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ============================================================
|
|
Nœud vide arbre — premier arbre sans personnes
|
|
============================================================ */
|
|
.empty-tree-add {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
z-index: 100;
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
|
|
border: 1.5px solid rgba(147, 64, 42, 0.38);
|
|
background: rgba(250, 250, 249, 0.92);
|
|
backdrop-filter: blur(14px);
|
|
-webkit-backdrop-filter: blur(14px);
|
|
border-radius: 14px;
|
|
padding: 13px 16px 13px 14px;
|
|
cursor: pointer;
|
|
|
|
box-shadow: 0 4px 20px rgba(52, 48, 44, 0.14), 0 1px 4px rgba(52, 48, 44, 0.08);
|
|
transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.18s;
|
|
animation: emptyAddIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
|
|
}
|
|
|
|
@keyframes emptyAddIn {
|
|
from { opacity: 0; transform: translate(-50%, -48%) scale(0.9); }
|
|
to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
|
|
}
|
|
|
|
.empty-tree-add:hover {
|
|
transform: translate(-50%, -51%);
|
|
box-shadow: 0 8px 28px rgba(52, 48, 44, 0.2), 0 2px 6px rgba(52, 48, 44, 0.1);
|
|
border-color: rgba(147, 64, 42, 0.65);
|
|
}
|
|
|
|
.empty-tree-add:active {
|
|
transform: translate(-50%, -50%) scale(0.97);
|
|
}
|
|
|
|
.empty-tree-add-icon {
|
|
width: 26px;
|
|
height: 26px;
|
|
color: #93402a;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.empty-tree-add-body {
|
|
display: grid;
|
|
gap: 2px;
|
|
text-align: left;
|
|
}
|
|
|
|
.empty-tree-add-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #2d2a27;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.empty-tree-add-hint {
|
|
font-size: 12px;
|
|
color: #8a847d;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.empty-tree-add-chevron {
|
|
width: 14px;
|
|
height: 14px;
|
|
color: #d2694a;
|
|
flex-shrink: 0;
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.media-manager-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 32;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 20px;
|
|
background: rgba(34, 33, 31, 0.3);
|
|
}
|
|
|
|
.media-manager-card {
|
|
width: min(760px, 100%);
|
|
max-height: calc(100vh - 40px);
|
|
overflow: auto;
|
|
display: grid;
|
|
gap: 10px;
|
|
border-radius: 16px;
|
|
border: 1px solid #f4d6c9;
|
|
background: #ffffff;
|
|
padding: 20px;
|
|
box-shadow: 0 24px 45px rgba(36, 33, 30, 0.34);
|
|
}
|
|
|
|
.media-manager-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.media-manager-header h1 {
|
|
font-size: 24px;
|
|
color: #2a2622;
|
|
}
|
|
|
|
.media-manager-form {
|
|
display: grid;
|
|
gap: 8px;
|
|
border: 1px solid #ebe6df;
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
background: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.media-manager-form label {
|
|
font-size: 14px;
|
|
color: #4f4841;
|
|
}
|
|
|
|
.media-manager-form input,
|
|
.media-manager-form select {
|
|
width: 100%;
|
|
border-radius: 10px;
|
|
border: 1px solid #e6e1da;
|
|
background: #ffffff;
|
|
color: #2a2622;
|
|
padding: 10px 12px;
|
|
outline: none;
|
|
}
|
|
|
|
.media-manager-form button,
|
|
.media-manager-actions button {
|
|
border: 0;
|
|
border-radius: 10px;
|
|
padding: 10px 12px;
|
|
font-weight: 450;
|
|
color: #ffffff;
|
|
background: #2a2622;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.media-manager-card .ghost {
|
|
border: 1px solid #efc7b8;
|
|
border-radius: 10px;
|
|
padding: 10px 12px;
|
|
background: transparent;
|
|
color: #2a2622;
|
|
font-weight: 450;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.media-manager-list {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.media-manager-item {
|
|
display: grid;
|
|
grid-template-columns: 74px 1fr auto;
|
|
align-items: center;
|
|
gap: 10px;
|
|
border: 1px solid #f4d6c9;
|
|
background: #ffffff;
|
|
border-radius: 10px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.media-manager-preview {
|
|
width: 74px;
|
|
height: 74px;
|
|
border-radius: 8px;
|
|
background: #f4f2ee;
|
|
overflow: hidden;
|
|
display: grid;
|
|
place-items: center;
|
|
color: #4f4841;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.media-manager-preview img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.media-manager-meta {
|
|
display: grid;
|
|
gap: 2px;
|
|
color: #4f4841;
|
|
}
|
|
|
|
.media-manager-meta span {
|
|
color: #6b645d;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.media-manager-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.media-manager-empty {
|
|
color: #4f4841;
|
|
background: rgba(255, 255, 255, 0.72);
|
|
border: 1px dashed #f4d6c9;
|
|
border-radius: 10px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.media-manager-error {
|
|
background: rgba(171, 49, 49, 0.1);
|
|
border: 1px solid rgba(171, 49, 49, 0.32);
|
|
color: #862f2f;
|
|
border-radius: 10px;
|
|
padding: 10px 12px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ── Contribution change cards ── */
|
|
|
|
/* champs modifiés */
|
|
|
|
/* Boutons décision dans le header de carte */
|
|
|
|
/* Aperçu annotations */
|
|
|
|
/* résumé décisions dans la meta */
|
|
|
|
/* footer session */
|
|
|
|
/* Groupement par type d'entité */
|
|
|
|
/* Confirmation "Tout approuver" inline */
|
|
|
|
/* Toast succès contribution envoyée */
|
|
|
|
@keyframes toastIn {
|
|
from { opacity: 0; transform: translateX(-50%) translateY(12px); }
|
|
to { opacity: 1; transform: translateX(-50%) translateY(0); }
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
|
|
.media-manager-item {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.media-manager-actions {
|
|
width: 100%;
|
|
}
|
|
|
|
.media-manager-actions button {
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
.account-dashboard-card.auth-only {
|
|
width: min(480px, 100%);
|
|
text-align: center;
|
|
}
|
|
|
|
.tree-created-prompt {
|
|
position: fixed;
|
|
top: 20px;
|
|
left: 20px;
|
|
z-index: 1200;
|
|
max-width: 340px;
|
|
padding: 18px 20px 20px;
|
|
display: grid;
|
|
gap: 10px;
|
|
border-radius: var(--pz-r-l);
|
|
border: 1px solid var(--pz-line);
|
|
background: var(--pz-surface);
|
|
box-shadow: var(--pz-shadow);
|
|
color: var(--pz-ink-2);
|
|
font: 400 14px/1.5 var(--pz-sans);
|
|
}
|
|
|
|
.tree-created-prompt strong {
|
|
color: var(--pz-ink);
|
|
font: 400 21px/1.15 var(--pz-serif);
|
|
letter-spacing: -.01em;
|
|
}
|
|
|
|
.tree-created-prompt .pz-btn {
|
|
justify-self: start;
|
|
min-height: 38px;
|
|
padding: 0 18px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.settings-card {
|
|
width: min(900px, 100%);
|
|
}
|
|
|
|
.settings-tabs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.settings-tabs button {
|
|
border: 1px solid #efc7b8;
|
|
border-radius: 999px;
|
|
padding: 8px 12px;
|
|
background: transparent;
|
|
color: #2a2622;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.settings-tabs button.active {
|
|
color: #ffffff;
|
|
border-color: #2a2622;
|
|
background: #2a2622;
|
|
}
|
|
|
|
.settings-share-card {
|
|
display: grid;
|
|
gap: 8px;
|
|
border: 1px solid #ebe6df;
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
background: rgba(255, 255, 255, 0.65);
|
|
}
|
|
|
|
.settings-share-card h3 {
|
|
color: #4f4841;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.settings-share-link-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.settings-share-link-row input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.settings-password-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.settings-password-row code {
|
|
border: 1px dashed #f4d6c9;
|
|
border-radius: 8px;
|
|
background: #ffffff;
|
|
padding: 6px 10px;
|
|
color: #4f4841;
|
|
}
|
|
|
|
.settings-hint {
|
|
color: #4f4841;
|
|
font-size: 14px;
|
|
border-left: 3px solid #f4d6c9;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.settings-data-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
border: 1px solid #ebe6df;
|
|
border-radius: 10px;
|
|
padding: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.settings-data-row p {
|
|
color: #6B645D;
|
|
font-size: 14px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.settings-data-row--muted {
|
|
opacity: 0.72;
|
|
}
|
|
|
|
.settings-advanced-toggle {
|
|
justify-self: start;
|
|
}
|
|
|
|
.settings-danger-box {
|
|
display: grid;
|
|
gap: 8px;
|
|
border: 1px solid rgba(171, 49, 49, 0.34);
|
|
border-radius: 12px;
|
|
background: rgba(171, 49, 49, 0.06);
|
|
padding: 12px;
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.settings-share-link-row {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.settings-data-row {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
}
|
|
|
|
.account-overlay--open {
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
opacity: 1;
|
|
}
|
|
|
|
.account-overlay--open .account-card {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
/* Écran compte : contexte de retour sur un arbre partagé + aide */
|
|
.account-pending-tree {
|
|
margin: -6px 0 14px;
|
|
font-size: 13px;
|
|
color: var(--ink-2, #6B645D);
|
|
}
|
|
|
|
.account-hint {
|
|
margin: -6px 0 10px;
|
|
font-size: 12px;
|
|
color: var(--ink-2, #6B645D);
|
|
}
|
|
|
|
/* Paramètres : contributions de la famille */
|
|
|
|
/* Écran compte : suppression du compte */
|
|
.account-delete-zone {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: 6px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid #f8e4db;
|
|
}
|
|
|
|
.account-delete-link {
|
|
border: 0;
|
|
background: transparent;
|
|
padding: 4px 0;
|
|
color: #9a6a5f;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.account-delete-link:hover:not(:disabled) {
|
|
color: #862f2f;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.account-delete-link:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.account-delete-list {
|
|
display: grid;
|
|
gap: 6px;
|
|
margin: 0;
|
|
padding-left: 18px;
|
|
list-style: disc;
|
|
color: #4f4841;
|
|
font-size: 14px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.account-delete-form {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.account-delete-form label {
|
|
font-size: 14px;
|
|
color: #4f4841;
|
|
}
|
|
|
|
.account-delete-modal .ghost {
|
|
border: 1px solid #efc7b8;
|
|
border-radius: 10px;
|
|
padding: 10px 12px;
|
|
background: transparent;
|
|
color: #2a2622;
|
|
font-weight: 450;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.account-delete-modal .ghost:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|