/* ================= VARIABLES ================= */
:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --primary: #06b6d4;
    --primary-hover: #0891b2;
    --secondary: #0ea5e9;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-glow: rgba(6, 182, 212, 0.3);
    --gradient: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Arrière-plan animé */
.bg-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    animation: pulse 10s infinite alternate;
}
.glow-1 { top: -100px; left: -100px; background: var(--primary); }
.glow-2 { bottom: -100px; right: -100px; background: var(--secondary); }

@keyframes pulse { 
    0% { transform: scale(1); opacity: 0.15; } 
    100% { transform: scale(1.2); opacity: 0.25; } 
}

/* ================= USER CARD ================= */
.user-container { 
    width: 100%; 
    max-width: 450px; 
}

.user-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.1);
    text-align: center;
}

.fade-in { 
    animation: fadeIn 0.6s ease-out; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.profile-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    margin-bottom: 15px;
}

.profile-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bio-text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
    font-style: italic;
    line-height: 1.5;
}

/* ================= FORMULAIRE ================= */
.message-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group { 
    position: relative; 
    margin-bottom: 5px; 
}

textarea {
    width: 100%;
    height: 150px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(6, 182, 212, 0.2);
    border-radius: 14px;
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: all 0.3s;
}

textarea::placeholder { 
    color: #64748b; 
}

textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    transition: color 0.3s;
}

button {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.6);
}

button:disabled { 
    opacity: 0.7; 
    cursor: not-allowed; 
}

/* Animation de succès pour la zone de texte */
textarea.success-flash {
    border-color: #10b981 !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.5s ease;
}

textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(15, 23, 42, 0.8);
}

/* ================= FOOTER LINK ================= */
.footer-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-link p { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin-bottom: 8px; 
}
.footer-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}
.footer-link a:hover { 
    color: var(--secondary); 
    text-decoration: underline; 
}

/* ================= TOAST ================= */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid var(--border-glow);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90%;
}
.toast.show { 
    transform: translateX(-50%) translateY(0); 
    opacity: 1; 
}
.toast.success { 
    border-color: rgba(16, 185, 129, 0.5); 
}
.toast.success .toast-icon { 
    color: #10b981; 
}
.toast.error { 
    border-color: rgba(239, 68, 68, 0.5); 
}
.toast.error .toast-icon { 
    color: #ef4444; 
}

/* ================= BADGE VÉRIFIÉ (Fusionné et optimisé) ================= */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #006cff;
    color: white !important;
    font-size: 11px;
    vertical-align: middle;
    position: relative;
    top: -2px;
    clip-path: polygon(
        50% 0%, 61% 12%, 78% 7%, 82% 25%, 100% 35%, 88% 50%, 100% 65%, 82% 75%, 
        78% 93%, 61% 88%, 50% 100%, 39% 88%, 22% 93%, 18% 75%, 0% 65%, 12% 50%, 
        0% 35%, 18% 25%, 22% 7%, 39% 12%
    );
}

.verified-badge i {
    -webkit-text-fill-color: white !important;
    color: white !important;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 500px) {
    .user-card { 
        padding: 30px 20px; 
    }
    .profile-header h1 { 
        font-size: 22px; 
    }
}