@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=IM+Fell+English+SC&display=swap');

body
{
    margin: 0;
    background: #555;
    font-family: 'IM Fell English SC', serif;
    font-size: 1.2em;
    color: #2b1b0e;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    display: flex;
}
.fiche {
    background: url('../images/fond.png') repeat;
    border: 8px solid #5b3b1a;
    border-radius: 8px;
    width: 900px;
    min-width: 800px;
    padding: 20px 40px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    position: relative;
}
h1 {
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    color: #3c2313;
    margin-bottom: 10px;
    position: relative;
}
h1::before, h1::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 120px;
    height: 30px;
}
h1::before {
    left: 0;
    transform: translateY(-50%);
}
h1::after {
    right: 0;
    transform: translateY(-50%) scaleX(-1);
}
.top-info {
    border: 2px solid #3c2313;
    background: #f5e4c1;
    padding: 10px 20px;
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    text-align: center;
}
.top-info div label {
    display: block;
    font-size: 1.5em;
    color: #4a3219;
}
.top-info div span {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: 1.7em;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    color: #2a1a0b;
}
.section {
    margin-bottom: 20px;
}
.section h2 {
    background: #5b3b1a;
    color: #fff7ea;
    padding: 5px 10px;
    font-size: 1.5em;
    border-radius: 4px;
    margin-bottom: 8px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.competences ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.competences li {
    background: #f5e4c1;
    border: 1px solid #d8b887;
    margin-bottom: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    font-size: 1.2em;
}
.traits {
    display: inline-block;
    vertical-align: top;
    width: 49.5%;
    background: #f5e4c1;
    border: 2px solid #d8b887;
    border-radius: 6px;
    padding: 10px;
    box-sizing: border-box;
}
.background {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    background: #f5e4c1;
    border: 2px solid #d8b887;
    border-radius: 6px;
    padding: 10px;
    box-sizing: border-box;
    font-family: 'Arial';
}
.traits h3, .background h3 {
    font-size: 1.5em;
    border-bottom: 1px solid #bfa97a;
    margin-top: 0;
    font-family: 'IM Fell English SC', serif;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-align: center;
}
.avatar-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}
.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #5b3b1a;
    background: #d8b887;
}
.avatar img { width: 100%; height: 100%; object-fit: cover;
}
.scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
    margin-bottom: 30px;
}
.score {
    text-align: center;
    background: url('../images/cercle.png') no-repeat center/contain;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    position: relative;
    color: #2b1b0e;
    font-weight: bold;
}
.score span {
    position: absolute;
    top: -22px;
    font-size: 1.2em;
    background: url('../images/banniere.png') no-repeat center/contain;
    width: 300px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3c2313;
    font-weight: normal;
}
