:root {
    --primary-color: #5d9ac5;
    --secondary-color: #7DCD85;
    --third-color: #2b272b;
    --white: #fffafb;
    --background-light: rgba(251, 251, 251, 0.6);
    --text-color: #000;
}

body{
    font-family: 'Poppins', sans-serif;
    background-color: #2B272B;
}

header {
    padding-top: 30%;
    padding-bottom: 20%;
    position: relative;
    color: var(--white);
    max-width: 400px;
    margin: 0 auto;
}

.avatar {
    width: 100px;         /* Taille de l'image */
    height: 100px;
    border-radius: 50%;   /* Rend l'image toute ronde */
    margin-bottom: 15px;  /* Espace sous l'image */
    border: 4px solid var(--primary-color); /* Petit bord coloré */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* Ombre portée */
    object-fit: cover;    /* Évite que l'image soit déformée */
}

h1{
    color: var(--primary-color);
    margin: 0;
}

.liens{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.box{
    height: 70px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
    transition-duration: 15ms;
    transition-timing-function: ease-in-out;
}

.box:hover{
    transform: scale(1.05);
    cursor: pointer;
}

.box i{
    font-size: 32px;
    transition-duration: 15ms;
    transition-timing-function: ease-in-out;
}

.box:hover i{
    transform: scale(0.8);
}

.large{
    flex-direction: row;
    background-color: var(--primary-color);
    grid-column: span 2;
}

.twitter{
    background-color: #1da1f2;
}

.instagram{
    background: #833ab4;
    background: linear-gradient(
        to right,
        #833ab4,#fd1d1d,#fcb045
  );
}

.snapchat{
    background-color: #fffc00;
    color: black;
}

.spotify{
    background-color: #1ed760;
    justify-content: flex-start;
    padding: 0 20px;
    gap: 15px;
}

.music-title{
    font-weight: normal;
    font-size: small;
}

.soundcloud{
    background-color: #ff7700;
}

.linkedin{
    background-color: #0072b1;
}

.cv{
    background-color: var(--primary-color);
    justify-content: flex-start;
    padding: 0 20px;
    gap: 15px;
}

.username{
    font-weight: normal;
    font-size: 10px;
    margin-top: 5px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.box:hover .username {
    display: block;
    opacity: 1;
}