/* ===============================
   PROFIL – VERSION PRO / CLEAN
================================ */
html, body {
    overflow-x: hidden;
}


.profile-page {
    max-width: 1100px;
    padding: 120px 20px 60px;
    color: #fff;

    position: relative;
    z-index: 1;

    min-height: calc(100vh - 120px - 60px);

    margin-left: auto;
    margin-right: auto;
}




.profile-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 100vw;
    height: 100%;

    background-image: url("../img/fond-profile.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: -1;
}






/* TITLE */
.profile-title h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.profile-subtitle {
    color: #aaa;
    margin-bottom: 40px;
}

/* CARD */
.profile-card {
    background: linear-gradient(180deg, rgba(15,15,22,.95), rgba(8,8,12,.95));
    border-radius: 16px;
    border: 1px solid rgba(252,213,80,.12);
    box-shadow: 0 30px 80px rgba(0,0,0,.8);
}

/* HEADER */
.profile-header-card {
    padding: 30px;
}

.profile-header-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    align-items: center;
}

.profile-avatar-block {
    text-align: center;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid #fcd550;
    box-shadow: 0 0 25px rgba(252,213,80,.4);
}

.profile-role-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

/* INFOS */
.profile-username {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.profile-infos {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.profile-infos li {
    padding: 6px 0;
    color: #ccc;
    font-size: .95rem;
}

/* ACTIONS */
.profile-actions .btn {
    margin-right: 10px;
    margin-top: 5px;
}

/* BUTTONS */
.btn-gold {
    background: linear-gradient(135deg, #fcd550, #ffea9f);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
}

.btn-gold-outline {
    background: transparent;
    border: 1px solid #fcd550;
    color: #fcd550;
    border-radius: 10px;
    padding: 8px 16px;
}

/* FORMS */
.profile-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.profile-form-card {
    background: rgba(12,12,18,.95);
    border-radius: 14px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,.05);
}

.profile-form-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.profile-form-card input {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.profile-form-card input:focus {
    outline: none;
    border-color: #fcd550;
    box-shadow: 0 0 0 2px rgba(252,213,80,.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .profile-header-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* DECORATION CARD PROFIL */
.profile-header-card {
    position: relative;
    overflow: hidden;
}

.profile-card-deco {
    position: absolute;
    top: -30px;
    right: 15px;

    width: 140px;
    height: 140px;

    background-image: url("../img/coeur-profile.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;

    pointer-events: none;
    z-index: 2;

    animation: softShake 4.5s ease-in-out infinite;
}

@keyframes softShake {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        transform: translate(1px, -1px) rotate(-0.4deg);
    }
    40% {
        transform: translate(-1px, 1px) rotate(0.4deg);
    }
    60% {
        transform: translate(1.5px, 1px) rotate(-0.3deg);
    }
    80% {
        transform: translate(-1px, -1.5px) rotate(0.3deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}


/* DECORATION CARD PROFIL */
.live-header-card {
    position: relative;
    overflow: hidden;
}

.live-card-deco {
    position: absolute;
    top: -10px;
    left: 10px;

    width: 60px;
    height: 60px;

    background-image: url("../img/live-profile.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;

    pointer-events: none;
    z-index: 2;

    animation: livePulse 2.5s ease-in-out infinite;
}
@keyframes livePulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.3;
    }
}
/* DECORATION CARD PROFIL */
.spider-card {
    position: relative;
    overflow: hidden;
}

.spider-deco {
    position: absolute;
    top: 80px;
    right: 0;

    width: 440px;
    height: 440px;

    background-image: url("../img/toile-droite-angle-haut-profile.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;

    pointer-events: none;
    z-index: 2;
}
/* DECORATION CARD PROFIL */
.skin-angle-deco {
    position: relative;
    overflow: hidden;
}

.skin-angle-deco {
    position: absolute;
    bottom: 50px;
    right: -10px;

    width: 340px;
    height: 340px;

    background-image: url("../img/skin-droite-profile.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;

    pointer-events: none;
    z-index: 2;
}
/* DECORATION CARD PROFIL */
.toile-angle-deco {
    position: relative;
    overflow: hidden;
}

.toile-angle-deco {
    position: absolute;
    bottom: 180px;
    left: 0px;

    width: 340px;
    height: 340px;

    background-image: url("../img/toile-angle-profile.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;

    pointer-events: none;
    z-index: 2;
}

/* HIDE DECORATIONS ON HIGH ZOOM / SMALL VIEWPORT */
@media (max-width: 1600px) {
    .spider-deco,
    .skin-angle-deco,
    .toile-angle-deco {
        display: none;
    }
}
