adam-hassen
version finale avec modele des news
7f997f8
Raw
History Blame Contribute Delete
18 kB
/* ================================================================
PROFIL.CSS — Page "Mon Profil" ENSIM
================================================================ */
/* ── Variables locales ── */
:root {
--p-cyan: #00f0ff;
--p-cyan-dim: rgba(0, 240, 255, 0.12);
--p-green: #00ff87;
--p-green-dim: rgba(0, 255, 135, 0.12);
--p-red: #ff4d6d;
--p-red-dim: rgba(255, 77, 109, 0.12);
--p-gold: #ffd700;
--p-gold-dim: rgba(255, 215, 0, 0.12);
--p-bg: #010214;
--p-glass: rgba(255, 255, 255, 0.04);
--p-border: rgba(255, 255, 255, 0.08);
--p-text: #e0e8ff;
--p-muted: #6a7a9a;
--p-radius: 20px;
--p-radius-sm: 12px;
}
/* ── Page wrapper ── */
.profil-page {
min-height: 100vh;
padding-top: 90px;
font-family: 'Inter', 'Segoe UI', sans-serif;
color: var(--p-text);
}
/* ================================================================
HERO
================================================================ */
.profil-hero {
text-align: center;
padding: 44px 24px 28px;
}
.profil-hero-badge {
display: inline-flex;
align-items: center;
gap: 9px;
background: var(--p-glass);
border: 1px solid var(--p-border);
border-radius: 50px;
padding: 5px 16px;
font-size: 0.7rem;
letter-spacing: 2.5px;
color: var(--p-cyan);
text-transform: uppercase;
margin-bottom: 18px;
}
.profil-pulse-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--p-cyan);
box-shadow: 0 0 8px var(--p-cyan);
animation: profil-pulse 1.8s infinite;
}
@keyframes profil-pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.4; transform: scale(0.7); }
}
.profil-hero-title {
font-size: clamp(1.8rem, 4vw, 2.8rem);
font-weight: 800;
letter-spacing: -0.5px;
background: linear-gradient(135deg, #fff 40%, var(--p-cyan) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin: 0 0 14px;
}
.profil-neon-line {
width: 60px;
height: 3px;
background: linear-gradient(90deg, transparent, var(--p-cyan), transparent);
margin: 0 auto;
border-radius: 2px;
}
/* ================================================================
LAYOUT PRINCIPAL
================================================================ */
.profil-layout {
display: grid;
grid-template-columns: 280px 1fr;
gap: 24px;
max-width: 1200px;
margin: 32px auto 80px;
padding: 0 24px;
align-items: start;
}
@media (max-width: 900px) {
.profil-layout { grid-template-columns: 1fr; }
}
/* ================================================================
SIDEBAR
================================================================ */
.profil-sidebar {
display: flex;
flex-direction: column;
gap: 16px;
position: sticky;
top: 100px;
}
/* Carte identité */
.profil-id-card {
background: var(--p-glass);
border: 1px solid var(--p-border);
border-radius: var(--p-radius);
padding: 32px 24px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
transition: border-color 0.3s;
}
.profil-id-card:hover {
border-color: rgba(0, 240, 255, 0.25);
}
/* Avatar */
.profil-avatar-wrap {
position: relative;
display: inline-block;
margin-bottom: 4px;
}
.profil-avatar {
width: 88px;
height: 88px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.9rem;
font-weight: 900;
color: #fff;
box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
background: linear-gradient(135deg, #0a3060, #00f0ff55);
letter-spacing: -1px;
position: relative;
z-index: 1;
}
.profil-avatar-ring {
position: absolute;
inset: -4px;
border-radius: 50%;
border: 2px solid transparent;
background: linear-gradient(135deg, var(--p-cyan), transparent 60%) border-box;
-webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: destination-out;
mask-composite: exclude;
animation: profil-ring-spin 6s linear infinite;
}
@keyframes profil-ring-spin {
to { transform: rotate(360deg); }
}
.profil-full-name {
font-size: 1.2rem;
font-weight: 700;
color: var(--p-text);
margin: 0;
line-height: 1.2;
}
.profil-email {
font-size: 0.8rem;
color: var(--p-muted);
margin: 0;
word-break: break-all;
}
.profil-badges {
display: flex;
flex-wrap: wrap;
gap: 6px;
justify-content: center;
}
/* Badge variants */
.profil-badge {
display: inline-flex;
align-items: center;
padding: 4px 11px;
border-radius: 50px;
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.5px;
}
.profil-badge-gold {
background: var(--p-gold-dim);
color: var(--p-gold);
border: 1px solid rgba(255, 215, 0, 0.25);
}
.profil-badge-cyan {
background: var(--p-cyan-dim);
color: var(--p-cyan);
border: 1px solid rgba(0, 240, 255, 0.25);
}
.profil-badge-green {
background: var(--p-green-dim);
color: var(--p-green);
border: 1px solid rgba(0, 255, 135, 0.25);
}
.profil-badge-muted {
background: rgba(106, 122, 154, 0.1);
color: var(--p-muted);
border: 1px solid rgba(106, 122, 154, 0.2);
}
.profil-member-info {
font-size: 0.78rem;
color: var(--p-muted);
display: flex;
align-items: center;
gap: 6px;
}
/* Bouton modifier profil */
.profil-edit-toggle-btn {
width: 100%;
padding: 13px;
background: var(--p-cyan-dim);
color: var(--p-cyan);
border: 1px solid rgba(0, 240, 255, 0.3);
border-radius: var(--p-radius-sm);
font-size: 0.88rem;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: background 0.2s, box-shadow 0.2s;
}
.profil-edit-toggle-btn:hover {
background: rgba(0, 240, 255, 0.2);
box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
}
/* ================================================================
MAIN (colonne droite)
================================================================ */
.profil-main {
display: flex;
flex-direction: column;
gap: 20px;
}
/* ── KPI row ── */
.profil-kpi-row {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 14px;
}
@media (max-width: 640px) { .profil-kpi-row { grid-template-columns: repeat(2, 1fr); } }
.profil-kpi-card {
background: var(--p-glass);
border: 1px solid var(--p-border);
border-radius: var(--p-radius-sm);
padding: 18px 16px;
display: flex;
align-items: center;
gap: 13px;
transition: border-color 0.2s, box-shadow 0.2s;
}
.profil-kpi-card:hover {
border-color: rgba(0, 240, 255, 0.22);
box-shadow: 0 4px 20px rgba(0, 240, 255, 0.08);
}
.profil-kpi-icon {
width: 38px;
height: 38px;
border-radius: 10px;
background: var(--p-cyan-dim);
display: flex;
align-items: center;
justify-content: center;
color: var(--p-cyan);
font-size: 1rem;
flex-shrink: 0;
}
.profil-kpi-body {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.profil-kpi-lbl {
font-size: 0.68rem;
color: var(--p-muted);
text-transform: uppercase;
letter-spacing: 0.7px;
}
.profil-kpi-val {
font-size: 1.1rem;
font-weight: 700;
color: var(--p-text);
font-variant-numeric: tabular-nums;
}
.profil-kpi-pos { color: var(--p-green) !important; }
.profil-kpi-neg { color: var(--p-red) !important; }
/* ================================================================
CARD GÉNÉRIQUE
================================================================ */
.profil-card {
background: var(--p-glass);
border: 1px solid var(--p-border);
border-radius: var(--p-radius);
padding: 28px;
transition: border-color 0.25s;
}
.profil-card:hover {
border-color: rgba(0, 240, 255, 0.15);
}
.profil-card-hdr {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 22px;
flex-wrap: wrap;
gap: 10px;
}
.profil-card-title {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.95rem;
font-weight: 700;
color: var(--p-cyan);
}
.profil-card-link {
font-size: 0.78rem;
color: var(--p-cyan);
text-decoration: none;
display: flex;
align-items: center;
gap: 6px;
opacity: 0.7;
transition: opacity 0.2s;
}
.profil-card-link:hover { opacity: 1; }
/* Mode badge (lecture / édition) */
.profil-mode-badge {
font-size: 0.68rem;
font-weight: 600;
padding: 3px 10px;
border-radius: 50px;
text-transform: uppercase;
letter-spacing: 0.8px;
}
.profil-mode-read {
background: rgba(106, 122, 154, 0.15);
color: var(--p-muted);
border: 1px solid rgba(106, 122, 154, 0.2);
}
.profil-mode-edit {
background: var(--p-cyan-dim);
color: var(--p-cyan);
border: 1px solid rgba(0, 240, 255, 0.3);
}
/* ================================================================
INFORMATIONS PERSONNELLES — MODE LECTURE
================================================================ */
.profil-info-read {
display: flex;
flex-direction: column;
gap: 14px;
}
.profil-info-field {
display: flex;
align-items: center;
gap: 14px;
padding: 14px 16px;
background: rgba(255, 255, 255, 0.03);
border-radius: var(--p-radius-sm);
border: 1px solid var(--p-border);
}
.profil-field-icon {
width: 34px;
height: 34px;
border-radius: 9px;
background: var(--p-cyan-dim);
display: flex;
align-items: center;
justify-content: center;
color: var(--p-cyan);
font-size: 0.9rem;
flex-shrink: 0;
}
.profil-field-body {
display: flex;
flex-direction: column;
gap: 2px;
}
.profil-field-lbl {
font-size: 0.68rem;
color: var(--p-muted);
text-transform: uppercase;
letter-spacing: 0.8px;
}
.profil-field-val {
font-size: 0.95rem;
font-weight: 500;
color: var(--p-text);
}
/* ================================================================
INFORMATIONS PERSONNELLES — MODE ÉDITION
================================================================ */
.profil-info-edit {
display: flex;
flex-direction: column;
gap: 16px;
}
.profil-input-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 14px;
}
@media (max-width: 560px) { .profil-input-row { grid-template-columns: 1fr; } }
.profil-input-grp {
display: flex;
flex-direction: column;
gap: 7px;
}
.profil-input-lbl {
font-size: 0.73rem;
color: var(--p-muted);
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.7px;
}
.profil-input-wrap {
position: relative;
display: flex;
align-items: center;
}
.profil-input-icon {
position: absolute;
left: 14px;
color: var(--p-cyan);
font-size: 0.85rem;
pointer-events: none;
}
.profil-input {
width: 100%;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--p-border);
border-radius: 10px;
color: var(--p-text);
padding: 12px 14px 12px 40px;
font-size: 0.9rem;
font-family: inherit;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
box-sizing: border-box;
}
.profil-input:focus {
border-color: var(--p-cyan);
box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}
.profil-input::placeholder { color: var(--p-muted); }
.profil-phone-prefix {
position: absolute;
left: 40px;
color: var(--p-cyan);
font-size: 0.9rem;
font-weight: 700;
pointer-events: none;
z-index: 1;
}
.profil-input.profil-phone-input {
padding-left: 82px;
}
.profil-save-btn {
align-self: flex-start;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 13px 24px;
background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 160, 220, 0.15));
color: var(--p-cyan);
border: 1px solid rgba(0, 240, 255, 0.4);
border-radius: 10px;
font-size: 0.88rem;
font-weight: 600;
cursor: pointer;
transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
margin-top: 4px;
}
.profil-save-btn:hover {
background: rgba(0, 240, 255, 0.25);
box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
transform: translateY(-1px);
}
/* Feedback messages */
.profil-feedback-ok {
margin-top: 12px;
display: flex;
align-items: center;
gap: 8px;
font-size: 0.85rem;
color: var(--p-green);
background: var(--p-green-dim);
border: 1px solid rgba(0, 255, 135, 0.25);
border-radius: 9px;
padding: 10px 14px;
}
.profil-feedback-err {
margin-top: 12px;
display: flex;
align-items: center;
gap: 8px;
font-size: 0.85rem;
color: var(--p-red);
background: var(--p-red-dim);
border: 1px solid rgba(255, 77, 109, 0.25);
border-radius: 9px;
padding: 10px 14px;
}
/* ================================================================
VISIBILITÉ PUBLIQUE
================================================================ */
.profil-visibility-body {
display: flex;
flex-direction: column;
gap: 14px;
}
.profil-toggle-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 18px;
background: rgba(255, 255, 255, 0.03);
border-radius: var(--p-radius-sm);
border: 1px solid var(--p-border);
}
.profil-toggle-text {
flex: 1;
}
.profil-toggle-title {
font-size: 0.92rem;
font-weight: 600;
color: var(--p-text);
margin: 0 0 5px;
}
.profil-toggle-desc {
font-size: 0.78rem;
color: var(--p-muted);
margin: 0;
line-height: 1.5;
}
/* Toggle switch CSS */
.profil-toggle-switch {
position: relative;
display: inline-flex;
align-items: center;
cursor: pointer;
flex-shrink: 0;
}
.profil-toggle-check {
position: relative;
}
/* Hide the native Dash checklist styling */
.profil-toggle-check .form-check {
padding: 0;
margin: 0;
}
.profil-toggle-input {
position: relative;
width: 52px !important;
height: 28px !important;
appearance: none;
-webkit-appearance: none;
background: rgba(255, 255, 255, 0.1);
border: 2px solid rgba(255, 255, 255, 0.15);
border-radius: 14px;
cursor: pointer;
transition: background 0.3s, border-color 0.3s;
flex-shrink: 0;
}
.profil-toggle-input::before {
content: '';
position: absolute;
left: 2px;
top: 50%;
transform: translateY(-50%);
width: 20px;
height: 20px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.5);
transition: left 0.3s, background 0.3s;
}
.profil-toggle-input:checked {
background: var(--p-cyan-dim);
border-color: var(--p-cyan);
box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}
.profil-toggle-input:checked::before {
left: 26px;
background: var(--p-cyan);
}
/* Hint */
.profil-hint-on {
display: flex;
align-items: center;
gap: 9px;
font-size: 0.8rem;
color: var(--p-green);
background: var(--p-green-dim);
border: 1px solid rgba(0, 255, 135, 0.2);
border-radius: 9px;
padding: 10px 14px;
}
.profil-hint-off {
display: flex;
align-items: center;
gap: 9px;
font-size: 0.8rem;
color: var(--p-muted);
background: rgba(106, 122, 154, 0.08);
border: 1px solid rgba(106, 122, 154, 0.15);
border-radius: 9px;
padding: 10px 14px;
}
/* ================================================================
ACTIVITÉ RÉCENTE
================================================================ */
.profil-no-activity {
display: flex;
align-items: center;
gap: 10px;
padding: 24px;
color: var(--p-muted);
font-size: 0.85rem;
background: rgba(255, 255, 255, 0.02);
border-radius: var(--p-radius-sm);
border: 1px dashed var(--p-border);
}
.profil-trades-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.profil-trade-row {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: rgba(255, 255, 255, 0.03);
border-radius: var(--p-radius-sm);
border: 1px solid var(--p-border);
flex-wrap: wrap;
transition: border-color 0.2s;
}
.profil-trade-row:hover {
border-color: rgba(0, 240, 255, 0.18);
}
.profil-trade-symbol {
font-size: 0.95rem;
font-weight: 700;
color: var(--p-text);
min-width: 48px;
}
.profil-sig-badge {
font-size: 0.65rem;
font-weight: 700;
padding: 3px 9px;
border-radius: 50px;
text-transform: uppercase;
letter-spacing: 0.8px;
}
.profil-sig-bull {
background: rgba(0, 255, 135, 0.12);
color: var(--p-green);
border: 1px solid rgba(0, 255, 135, 0.25);
}
.profil-sig-bear {
background: rgba(255, 77, 109, 0.12);
color: var(--p-red);
border: 1px solid rgba(255, 77, 109, 0.25);
}
.profil-sig-neutral {
background: rgba(120, 120, 120, 0.12);
color: #aaa;
border: 1px solid rgba(120, 120, 120, 0.2);
}
.profil-trade-qty {
font-size: 0.85rem;
color: var(--p-muted);
min-width: 70px;
}
.profil-trade-pnl {
font-size: 0.9rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
margin-left: auto;
}
.profil-trade-pct {
font-size: 0.78rem;
font-weight: 600;
}
.profil-pnl-pos { color: var(--p-green); }
.profil-pnl-neg { color: var(--p-red); }
.profil-trade-date {
font-size: 0.75rem;
color: var(--p-muted);
white-space: nowrap;
}
/* ================================================================
SÉCURITÉ
================================================================ */
.profil-security-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
@media (max-width: 560px) { .profil-security-grid { grid-template-columns: 1fr; } }
.profil-sec-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 14px 16px;
background: rgba(255, 255, 255, 0.03);
border-radius: var(--p-radius-sm);
border: 1px solid var(--p-border);
}
.profil-sec-icon {
width: 32px;
height: 32px;
border-radius: 8px;
background: var(--p-cyan-dim);
display: flex;
align-items: center;
justify-content: center;
color: var(--p-cyan);
font-size: 0.82rem;
flex-shrink: 0;
}
.profil-sec-body {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.profil-sec-lbl {
font-size: 0.68rem;
color: var(--p-muted);
text-transform: uppercase;
letter-spacing: 0.7px;
}
.profil-sec-val {
font-size: 0.88rem;
color: var(--p-text);
font-weight: 500;
word-break: break-all;
}
.profil-sec-note {
font-size: 0.7rem;
color: var(--p-muted);
opacity: 0.7;
font-style: italic;
}