.background-image {
    height: 40vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-top-left-radius: var(--border-raduis-default);
    border-top-right-radius: var(--border-raduis-default);
}

.degraderover {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top-left-radius: var(--border-raduis-default);
    border-top-right-radius: var(--border-raduis-default);
    background: linear-gradient(to top,
            rgb(255, 255, 255),
            rgba(255, 255, 255, 0.959) 10%,
            rgba(255, 255, 255, 0.842) 20%,
            rgba(255, 255, 255, 0.644) 30%,
            rgba(255, 255, 255, 0.486) 40%,
            rgba(255, 255, 255, 0.13) 50%,
            rgba(255, 255, 255, 0));
}

.profile-container {
    margin-top: 70px;
    background: var(--bg-section-primary);
    border-radius: var(--border-raduis-default);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 0;
    overflow: hidden;
    position: relative;
    border: var(--size-border-solid) solid var(--color-border-section-primary);
    height: auto;
}

.profile-picture-container {
    position: relative;
    top: -80px;
}

.profile-picture {
    margin-left: 40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f5f5dc;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 3px solid white;
}

.profile-picture img {
    width: 100%;
    height: 100%;
}

.profile-info {
    text-align: left;
    padding: 5px 20px;
    border-radius: 10px;
    z-index: 5;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.profile-info .profil-name h1 {
    margin-bottom: 10px;
    color: var(--color-text-title-primary);
    font-size: 28px;
    font-weight: bold;
    line-height: 1.2;
}

.profile-info .profil-name p {
    color: var(--color-text-paragraph-primary);
    line-height: 1.5;
    font-size: 16px;
    max-width: 620px;
}

.profil-social {
    display: flex;
    align-items: center;
    flex-direction: row;
    background: var(--bg-button-primary);
    border-radius: var(--border-raduis-default);
    height: 45px;
    padding: 2px;
    width: 170px;
    cursor: pointer;
    margin-bottom: 5px;
}

.profil-social .button-social {
    position: relative;
    width: max-content;
}

.profil-social .button-social a {
    position: absolute;
    top: -10px;
    transition: transform 0.3s ease;
    border-radius: 8px;
    text-decoration: none;
    font-size: 25px;
    background: transparent;
    padding: 0;
    color: var(--color-text-button-primary);
}

.profil-social .button-social a:nth-child(1) {
    left: 10px;
    z-index: 1;
}

.profil-social .button-social a:nth-child(2) {
    left: 40px;
    z-index: 2;
    color: var(--color-text-button-primary);
}

.profil-social .button-social a:nth-child(3) {
    left: 65px;
    z-index: 3;
    color: var(--color-text-button-primary);
}

.profil-social .button-social a:nth-child(4) {
    left: 95px;
    z-index: 4;
    color: var(--color-text-button-primary);
}

.profil-social .button-social a:nth-child(5) {
    left: 130px;
    z-index: 4;
    color: var(--color-text-button-primary);
}

/* Optionnel : effet au survol */
.profil-social .button-social a:hover {
    transform: scale(1.05);
}

.content-below {
    height: 30vh;
    background-color: #f9f9f9;
    padding: 40px;
    display: flex;
    align-items: center;
}

.container-profile-more {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.container-profile-more .profil-more {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 400;
    justify-content: space-around;
}

.profil-more-item {
    font-size: 18px;
    margin-left: 5px;
    margin-right: 5px;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.profil-more-item:nth-child(1) {
    border-right: 1px solid var(--bg-button-primary);
}

.profil-more-item:nth-child(2) {
    border-right: 1px solid var(--bg-button-primary);
}

.profil-more-item span {
    margin-bottom: 10px;
    color: var(--color-text-paragraph-primary);
    font-weight: bold;
    line-height: 1.2;
}

.profil-more-item p {
    color: var(--color-text-paragraph-primary);
    line-height: 1.5;
}

.container-button-flux {
    width: auto;
}

/* Version mobile */
@media screen and (max-width: 800px) {

    .profile-container {
        margin-top: 70px;
        position: relative;
        transform: none;
    }

    .profile-picture {
        margin: 0 auto;
    }

    .content-below {
        height: auto;
        padding: 80px 20px 40px;
    }

    .profile-info {
        flex-direction: column-reverse;
        width: 100%;
        text-align: center;
    }

    .container-profile-more {
        flex-direction: column-reverse;
    }

    .container-button-flux {
        margin-bottom: 10px;
    }

    .profile-info .profil-name h1 {
        font-size: 22px;
    }
}


.card-authorswx {
    flex: 0 0 auto;
    width: 200px;
    background-color: transparent;
    border: var(--size-border-solid) solid transparent;
    border-radius: var(--border-raduis-default);
    padding: 1.2rem;
    text-align: center;
    box-shadow: none;
    transition:  box-shadow 0.3s ease;
}

.card-authorswx:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: var(--size-border-solid) solid var(--color-border-button-secondary);
    background-color: var(--color-default);
}

.author-content {
    margin: 4px;
    text-decoration: none;
}

.image-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid #f0f0f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-name {
    font-size: 1.2rem;
    color: var(--color-text-button-secondary);
    margin-bottom: 0.4rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-country {
    display: inline-block;
    background: transparent;
    color: #6c757d;
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    border: 1px solid #e9ecef;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.flag-icon {
    margin-right: 0.3rem;
    width: 16px;
    height: 11px;
}

.books-count {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.2rem;
    padding-top: 0.2rem;
}

.count-item {
    text-align: center;
}

.count-number {
    font-size: 1rem;
    font-weight: 600;
    color: #3498db;
}

.count-label {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 768px) {

    .card-authorswx {
        width: 180px;
        padding: 1rem;
    }
}

@media (max-width: 480px) {

    .card-authorswx {
        width: 160px;
    }

    .image-container {
        width: 80px;
        height: 80px;
    }
}