@import url('./css/clash-display.css');



body {
margin: 0;
font-family: 'ClashDisplay-Bold', Arial, sans-serif;
background: linear-gradient(135deg, #ff007a, #E32929, #ff007a);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh; /* Ajuste la hauteur minimale pour l'extension */
position: relative;
}

.container {
width: calc(100% - 30px);
max-width: 600px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 40px; /* Réduction pour éviter de couper le bouton */
overflow-y: auto; /* Permet le défilement si nécessaire */
opacity: 0;
transition: opacity 0.5s ease-in-out; /* Animation fluide */
}

.avatar {
left: calc(50% - 30px); /* Centrer */
width: 80px;
height: 80px;
border-radius: 50%;
margin-bottom: -70px; /* Chevauchement avec .header */
margin-right : 10px;
z-index: 2; /* S'assurer que l'avatar est au-dessus de .header */
}
                       

.avatar-img {
width: 100%;
height: 100%;
border-radius: 50%;
border: 5.5px solid #fff; /* Bordure blanche */
object-fit: cover;
}

.skip {
position: absolute;
top: 20px;
right: 20px;
font-size: 18px;
color: white;
text-decoration: none;
font-family: 'ClashDisplay-SemiBold', Arial, sans-serif;
z-index: 10; /* Ensures back button is always on top */
}

.header {
background: #000;
padding: 20px;
border-radius: 12px;
font-size: 22px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
width: calc(100% - 40px);
margin-top: 60px;
font-family: 'ClashDisplay-SemiBold', Arial, sans-serif; /* ClashDisplay-Bold pour la police Bold */
}

.input-section {
margin-top: 35px;
display: flex;
flex-direction: column;
align-items: center;
}

.label {
font-size: 30px;
font-family: 'ClashDisplay-Bold', Arial, sans-serif; /* ClashDisplay-Bold */
margin-bottom: 10px;
}

.input {
width: calc(100% - 30px);
max-width: 400px;
height: 58px;
padding: 10px 15px;
border: none;
border-radius: 40px;
font-size: 26px;
font-family: 'ClashDisplay-Bold', Arial, sans-serif; /* ClashDisplay-Bold */
outline: none;
text-align: center;
}

.input::placeholder {
font-weight: bold; /* Placeholder en gras */
color: #aaa; /* Couleur du placeholder */
font-family: 'ClashDisplay-Bold', Arial, sans-serif; /* ClashDisplay-Bold */
}

.button {
background: #000;
color: white;
font-size: 22px;
padding: 15px;
border-radius: 36px;
border: none;
cursor: pointer;
width: calc(100% - 30px);
max-width: 400px;
height: 72px;
margin-top: 100px;
font-family: 'ClashDisplay-SemiBold', Arial, sans-serif; /* ClashDisplay-Bold */
}

.anonymous {
margin-top: 5px;
font-size: 22px;
text-decoration: underline;
font-family: 'ClashDisplay-SemiBold', Arial, sans-serif; /* ClashDisplay-SemiBold */
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 20px;
}
                            
.checkbox-section {
    margin-top: 10px;
    font-size: 18px;
    font-family: 'ClashDisplay-SemiBold', Arial, sans-serif;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Masque l’input par défaut */
.checkbox-section input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Création d'un élément personnalisé avec ::before */
.checkbox-section label {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: #fff url('checked.png') no-repeat center center;
    background-size: cover;
    border-radius: 5px;
    transition: background 0.1s ease-in-out;
    cursor: pointer;
}

/* Change l’image et la couleur quand la case est cochée */
.checkbox-section input[type="checkbox"]:checked + label {
    background: #000 url('checked.png') no-repeat center center;
    background-size: cover;
}