*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background-color: #e4e4e7;
    font-family: Amazon Ember, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;
    display: flex; /* Utilisation de flexbox pour centrer le contenu */
    justify-content: center;
    align-items: center;
}

#main {
    width: 91.67%;
    min-width: 250px;
    max-width: 384px;
    margin: 0 auto;
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: main 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes main {
    0% {
        opacity: 0;
        transform: translateY(-2rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries pour les écrans plus larges */
@media (min-width: 640px) {
    #main {
        width: 80%;
    }
}

/* Styles pour la partie supérieure */
#main-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1.25rem 2rem;
    background-image: linear-gradient(150deg, rgba(57, 126, 172, 0.75), rgba(57, 172, 126, 0.85));
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%; /* Utilisation de la valeur "50%" pour un cercle parfait */
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
    transition: opacity 0.7s ease-in-out 0.2s, box-shadow 0.3s ease-in-out;
}

.avatar:hover {
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.6);
    animation: avatar 5000ms infinite ease-in-out;
}

@keyframes avatar {
    80% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.header-text {
    color: white;
    margin-left: 1rem;
}

.title {
    font-size: 1.5rem;
    margin: 0;
}

.subtitle {
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
}

/* Styles pour la partie inférieure */
#main-bottom {
    padding: 2rem;
    color: #71717a;
    text-align: center; /* Centrer le texte */
}

#main-bottom p {
    margin: 0;
}

#main-bottom p a {
    color: #2563eb;
    text-decoration: inherit;
}

/* Styles des icônes */
.icons {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.icon {
    display: block;
    position: relative;
    width: 1.25em;
    margin: 0 0.5rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.icon:hover {
    color: #212124;
}

.icon::after {
    content: attr(title);
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.25rem 0.5rem;
    color: #e4e4e7;
    background-color: #71717a;
    border-radius: 0.25rem;
    transition: opacity 0.2s, transform 0.2s;
    transform: translate(-50%, 0.4rem);
    opacity: 0;
}

.icon:hover::after {
    opacity: 1;
    transform: translate(-50%, -0.2rem);
}

.icon svg {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: -0.25em;
}

/* Styles pour le pied de page */
#footer {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-align: center;
    color: #a1a1aa;
    user-select: none;
    animation: footer 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes footer {
    0% {
        opacity: 0;
        transform: translateY(2rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#footer a {
    text-decoration: none;
    cursor: pointer;
}

#footer svg {
    display: inline;
    vertical-align: middle;
    margin: 0 0.25rem;
}

.footer-tag {
    color: #f4f4f5;
    padding: 0.25rem 0.5rem;
    background-color: #a1a1aa;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.footer-tag:hover {
    background-color: #71717a;
}

.footer-separator {
    padding-right: 1rem;
}

