.profile{
width: 90%;
margin: 0px auto 0px;
outline: #6087c4 solid 1px;
background-color: rgb(255, 255, 255);
box-shadow: 0px 0px 5px 1px white;
border-radius:15px;
}
.profile h1{
outline: #6087c4 solid 1px;
background-color: #6087c4;
font-size: 17px;
color: white;
text-align: center;
border-top-left-radius:15px;
border-top-right-radius:15px;
}
.profile-info{
width: 222px;
margin: 0px auto 0px;
outline: #6087c4 solid 1px;
background-color: white;
border-radius:15px;
}
.profile-info a{
color: #6087c4;
text-decoration: none;
}
.profile-app{
width: 222px;
margin: 0px auto 0px;
}
.profile-app button{
width: 222px;
height: 30px;
color: white;
background-color: #6087c4;
outline: #6087c4 solid 1px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.profile img{
outline: #6087c4 solid 1px;
box-shadow: 0px 0px 5px 1px #6087c4;
background-color: white;
}
.profileMessages{
width: 50%;
min-height: 15px;
text-align: left;
font-family: system-ui;
margin: 0px auto 0px;
background-color: white;
outline: #6087c4 solid 1px;
box-shadow: 0px 0px 5px 1px #6087c4;
padding: 10px;
color: #6087c4;
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-word;
}
.profileMessages button{
outline: #6087c4 solid 1px;
}
.profile-buttons{
width: 222px;
margin: 0px auto 0px;
}
.profile-buttons textarea{
width: 222px;
margin: 0px auto 0px;
resize: none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.profile-buttons button{
width: 222px;
text-align: center;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline: #6087c4 solid 1px;
}
.random-users{
width: 90%;
min-height: 150px;
margin: 0px auto 20px;
color: #6087c4;
outline: #6087c4 solid 1px;
background-color: rgb(255, 255, 255);
box-shadow: 0px 0px 5px 1px white;
}
.random-users a{
color: #6087c4;
}
.post{
width: 99%;
margin: 7px auto 7px;
text-align: center;
}
.profile form{
text-align: center;
}
.profile textarea{
width: 99%;
box-sizing: border-box; 
}
.profile input{
width: 222px;
color:white;
background-color: #6087c4;
outline: #6087c4 solid 1px;
text-align: center;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius:15px;
}
.profile button{
width: 222px;
color:white;
background-color: #6087c4;
outline: #6087c4 solid 1px;
text-align: center;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius:15px;
}
.random-users {
min-height: 150px;
margin-bottom: 20px;
color: #6087c4;
margin: 0px auto 0px;
outline: #6087c4 solid 1px;
background-color: rgb(255, 255, 255);
box-shadow: 0px 0px 5px 1px white;
border-radius:15px;
}

.random-users h1 {
color: white;
outline: #6087c4 solid 1px;
background-color: #6087c4;
font-size: 17px;
margin-bottom: 10px;
text-align: center; /* titre bien centré */
border-top-left-radius:15px;
border-top-right-radius:15px;
}

.random-users-list {
display: flex;
justify-content: center;   /* centre les utilisateurs */
flex-wrap: wrap;           /* passe à la ligne si nécessaire */
gap: 20px;                 /* espace entre les avatars */
padding: 10px;
}

.random-user {
text-align: center;
text-decoration: none;
color: #6087c4;
flex: 0 1 80px;
}

.random-user img {
width: 60px;
height: 60px;
border-radius: 50%;
object-fit: cover;
border: 1px solid #6087c4;
transition: transform 0.2s;
}

.random-user img:hover {
transform: scale(1.1);
}

.friends-list{
color: #6087c4;
}
.friend-request{
color: #6087c4;
text-align: left;
margin: 10px 10px 10px;
}
.friend-request button{
width: 70px;
color: white;
background-color: #6087c4;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.friend-request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius:15px;
}

.friend-request-buttons button {
    margin-left: 5px;
    padding: 5px 5px;
    border: none;
    cursor: pointer;
    color: white;
    border-radius: 3px;
    border-radius:15px;
}

.friend-request-buttons button[name="accept_friend"] {
    background-color: green;
}

.friend-request-buttons button[name="decline_friend"] {
    background-color: darkred;
}

@media screen and (max-width: 600px) {
    .random-user {
        flex: 0 1 45px;
    }

    .random-user img {
        width: 45px;
        height: 45px;
    }

    .random-users-list {
        gap: 10px;
    }
}