/* ========================================
   MEMBER PROFILE - Against Stones
   Design épuré, moderne et minimaliste
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Gold */
    --gold-primary: #FFD700;
    --gold-secondary: #D4AF37;

    /* Backgrounds */
    --bg-primary: #0A0A0A;
    --bg-card: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 215, 0, 0.3);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-subtle: #64748B;
}

/* ========================================
   MEMBER PROFILE PAGE
   ======================================== */
.member-profile-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* ========================================
   PROFILE HEADER - Avatar + Nom
   ======================================== */
.profile-header {
    text-align: center;
    padding: 48px 40px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: 24px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Glow subtil en haut */
.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: radial-gradient(circle at 50% 0%,
                rgba(255, 215, 0, 0.08) 0%,
                transparent 70%);
    pointer-events: none;
}

/* Avatar container */
.avatar-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 24px auto;
    z-index: 1;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-avatar:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8),
                0 0 0 4px rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

/* Nom du profil */
.profile-name {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg,
                var(--gold-primary) 0%,
                #FFFFFF 40%,
                #FFFFFF 60%,
                var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Username */
.profile-username {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ========================================
   PROFILE INFO GRID - Métadonnées
   ======================================== */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.info-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.info-item strong {
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 4px;
}

.info-item .points {
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 16px;
}

/* ========================================
   MESSAGE SECTION - Formulaire
   ======================================== */
.message-section {
    padding: 32px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.message-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-primary);
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-secondary));
    border-radius: 2px;
}

/* Message form */
.message-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-form textarea {
    width: calc(100% - 48px);
    min-height: 150px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid var(--border-subtle);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
    resize: vertical;
}

.message-form textarea::placeholder {
    color: var(--text-subtle);
    font-weight: 300;
}

.message-form textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1),
                inset 0 2px 6px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.message-form textarea:hover:not(:focus) {
    border-color: rgba(255, 215, 0, 0.2);
}

/* Send button */
.btn-send {
    width: 100%;
    height: 56px;
    padding: 0 32px;
    background: linear-gradient(135deg,
                var(--gold-primary) 0%,
                var(--gold-secondary) 100%);
    border: none;
    border-radius: 14px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Shine effect */
.btn-send::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
                transparent 0%,
                rgba(255, 255, 255, 0.4) 50%,
                transparent 100%);
    transition: left 0.6s ease;
}

.btn-send:hover::before {
    left: 100%;
}

.btn-send:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-send:active {
    transform: translateY(-1px);
}

/* ========================================
   ERROR MESSAGE
   ======================================== */
.error-message {
    padding: 32px;
    background: rgba(239, 68, 68, 0.1);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    color: #EF4444;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

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

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 768px) {
    .member-profile-page {
        padding: 60px 32px;
    }

    .profile-header {
        padding: 40px 32px;
        border-radius: 20px;
    }

    .avatar-container {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }

    .profile-avatar {
        border-width: 3px;
    }

    .profile-name {
        font-size: 32px;
    }

    .profile-username {
        font-size: 15px;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .info-item {
        padding: 18px 20px;
    }

    .message-section {
        padding: 28px;
        border-radius: 16px;
    }

    .message-section h3 {
        font-size: 18px;
    }

    .message-form textarea {
        min-height: 130px;
        font-size: 14px;
    }

    .btn-send {
        height: 52px;
        font-size: 15px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 480px) {
    .member-profile-page {
        padding: 40px 20px;
    }

    .profile-header {
        padding: 32px 24px;
        border-radius: 18px;
    }

    .avatar-container {
        width: 120px;
        height: 120px;
        margin-bottom: 16px;
    }

    .profile-name {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .profile-username {
        font-size: 14px;
    }

    .profile-info-grid {
        gap: 12px;
    }

    .info-item {
        padding: 16px 18px;
        font-size: 13px;
    }

    .info-item svg {
        width: 18px;
        height: 18px;
    }

    .message-section {
        padding: 24px;
        border-radius: 16px;
    }

    .message-section h3 {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .message-form {
        gap: 16px;
    }

    .message-form textarea {
        padding: 14px 18px;
        min-height: 120px;
        font-size: 14px;
        border-radius: 12px;
    }

    .btn-send {
        height: 50px;
        font-size: 14px;
        border-radius: 12px;
    }

    .error-message {
        padding: 24px 20px;
        font-size: 14px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.btn-send:focus-visible,
.message-form textarea:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .profile-header,
    .message-section,
    .info-item {
        border-width: 2px;
    }

    .profile-avatar {
        border-width: 3px;
    }

    .message-form textarea {
        border-width: 2px;
    }
}

/* ========================================
   LOADING STATE (optionnel)
   ======================================== */
.btn-send.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-send.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    z-index: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .message-section {
        display: none;
    }

    .profile-header {
        box-shadow: none;
        border: 1px solid #333;
    }

    .info-item {
        box-shadow: none;
        border: 1px solid #333;
    }
}









/* ========================================
   TWO COLUMNS LAYOUT - MEMBER DETAIL
   ======================================== */

.profile-two-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .profile-two-columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ====================== COLONNE GAUCHE - MUR DES ŒUVRES ====================== */
.profile-left {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    padding: 32px;
    min-height: 600px;
}

.profile-left h2 {
    font-size: 22px;
    color: #FACC15;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    font-weight: 600;
}

/* Mur des œuvres */
.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.artwork-card {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.artwork-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 215, 0, 0.3);
}

.artwork-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.artwork-info {
    padding: 14px 16px;
    text-align: center;
}

.artwork-info strong {
    font-size: 14px;
    color: #E0C070;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ====================== COLONNE DROITE - FORMULAIRE ====================== */
.profile-right {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    padding: 32px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.message-section {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.message-section h3 {
    margin-bottom: 24px;
    color: #FACC15;
    font-size: 20px;
}

/* Amélioration du formulaire existant */
.message-form textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.2);
    min-height: 220px;
    font-size: 15px;
}

.message-form textarea:focus {
    border-color: #FACC15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.15);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
    .profile-two-columns {
        grid-template-columns: 1fr;
    }
    
    .profile-right {
        position: static;
    }
}

@media (max-width: 640px) {
    .profile-left,
    .profile-right {
        padding: 24px 20px;
    }
    
    .artworks-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .artwork-card img {
        height: 140px;
    }
}

/* ====================== SUPPRESSION DES FILETS BLEUS ====================== */

/* Supprime le soulignement bleu par défaut sur tous les liens */
a {
    text-decoration: none !important;
    color: inherit;
}

/* Style propre pour les titres cliquables */
.artwork-card {
    text-decoration: none;
}

.artwork-card:hover {
    text-decoration: none;
}

/* Style spécifique pour les titres des œuvres */
.artwork-info strong {
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.artwork-card:hover .artwork-info strong {
    border-bottom: 2px solid #FACC15;   /* Ligne dorée fine au hover */
    color: #FACC15;
}

/* Pour le titre principal "Mes Œuvres" */
.profile-left h2 {
    text-decoration: none;
    border-bottom: 3px solid #FACC15;
    padding-bottom: 8px;
    display: inline-block;
}