html{
    --bgmain: #001933;
    --bgsecond:  #000c1a;
    --accent: #007BFF;
    --accent-unsaturated: #667F99;
    --text: #E5F2FF;
}

* {
    padding: 0;
    margin: 0;
    max-width: 100vw;
    box-sizing: border-box;
    font-family: "Asap", sans-serif;
    letter-spacing: 0.5px;
}

html, body{
    height: 100%;
    width: 100vw;
    min-width: fit-content;
    max-width: 100vw;
    background-color: var(--bgmain);
    overflow-x: hidden;
}

.main{
    background-color: var(--bgmain);
    background-image: radial-gradient(circle, var(--bgmain) 0%, var(--bgsecond) 80%, var(--bgsecond));
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card{
    flex:1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.content{
    flex: 1;
    padding: 30px 20px;
    gap:25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.picture{
    width: 30%;
    min-width: 150px;
    border-radius: 100%;
    position: relative;
}

.picture-image{
    width: 100%;
    height: auto;
    border-radius: 100%;
    border: 10px solid var(--text);
}

.informations{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:15px;
}

h1{
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text);
    font-size: 24px;
}

h2{
    text-align: center;
    font-size: 18px;
    font-weight: normal;
    color: var(--text);
}

.social{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 295px;
}

.bubble {
    width: 85px;
    height: 40px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    background-color: var(--accent);
    color: var(--text);
    transition: background-color .5s, transform 0.5s;

}

.bubble:hover{
    background-color: var(--text);
    color: var(--accent);
    transform: scale(1.05);
    transition: background-color .5s, transform 0.5s;
}

.bubble:active{
    transform: scale(0.95);
    transition: background-color .2s, transform 0.3s;
}

footer{
    height: 20px;
    color: var(--accent-unsaturated);
    margin-bottom: 5px;
}

/* Positionnement de la bulle */
.dialog-container {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    bottom: 110%; /* Ajuste la distance au-dessus de la photo */
    left: 50%;
    opacity: 0; /* Initialement invisible */
    animation: fadeIn 0.4s ease-out 1s forwards; /* Animation avec un délai */
}

.dialog-bubble {
    position: relative;
    max-width: 250px;
    background-color: var(--accent);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 15px;
    font-family: sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

}

/* Flèche de la bulle */
.dialog-bubble .bubble-arrow {
    position: absolute; /* Position absolue par rapport à la bulle */
    bottom: -10px; /* Place la flèche juste sous la bulle */
    left: 50%; /* Centre horizontalement par rapport à la bulle */
    transform: translateX(-50%); /* Centrage précis */
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--accent); /* Même couleur que la bulle */
}

/* Animation fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        scale: 0.2;
        translate: -50% 50px;
    }
    to {
        opacity: 1;
        scale: 1;
        translate: -50% 0px;
    }
}

/* Masquer la bulle par défaut */
.hidden {
    display: none;
}

/* Afficher la bulle (active dans le DOM) */
.content:hover #dialog-bubble {
    display: block;
}


/* Animation pour l'opacité et le déplacement vers le haut */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classes pour animer chaque élément */
.picture, .informations h2, .informations h3, .social {
    opacity: 0; /* Initialement invisible */
    animation: fadeInUp 1s ease-out forwards;
}

.picture {
    animation-delay: 0.2s; /* Délai pour la photo */
    position: relative;
}

.informations h2 {
    animation-delay: 0.4s; /* Délai pour le nom */
}

.informations h3 {
    animation-delay: 0.6s; /* Délai pour le titre */
}

.social {
    animation-delay: 0.8s; /* Délai pour les icones */
}
