@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} 

body {
    background-image: url('../media/root-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    line-height: 1.6;
    display: flex;
    justify-content: flex-end;
    align-items: left;
    min-height: 100vh;
}

.container {
    max-width: 650px;
    position: fixed;
    top: 60px;
    left: 60px;
    padding: 20px;
}


.title {
    font-size: clamp(4rem, 8vw, 5rem);
    color: #FAFAFA;
    font-weight: 400;
    font-family: "Instrument Serif", serif;
    padding: 0px 0 10px 0;
}

.subtitle {
    text-align: left;
    text-align: justify;
    margin-bottom: 15px;
    font-size: 2em;
    color: #FAFAFA;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 300;
}

.twitter-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 10px 10px 10px 10px;
    background-color: transparent;
    transition-duration: 0.5s;
}

.twitter-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.twitter-icon:hover {
    filter: blur(2px);
}

/* --- Version Mobile --- */
@media screen and (max-width: 768px) {

    body {
        background-position: center; /* On centre l'image de fond pour les petits écrans */
    }
    
    /* On replace le conteneur pour utiliser plus d'espace */
    .container {
        top: 40px;       /* On remonte le bloc (au lieu de 60px) */
        left: 20px;      /* On le colle plus à gauche (au lieu de 60px) */
        right: 20px;     /* On sécurise la droite pour ne pas que ça déborde */
        width: auto;     /* On laisse la largeur s'adapter */
    }

    /* On réduit la taille du titre */
    .title {
        line-height: 1.1; /* Un interligne un peu plus serré est souvent plus joli sur mobile */
    }

    /* On réduit le sous-titre */
    .subtitle {
        font-size: 2em; /* Au lieu de 2em */
        margin-bottom: 10px;
    }

    /* On ajuste légèrement le bouton Twitter */
    .twitter-icon {
        bottom: 15px;
        right: 15px;
        width: 45px;      /* Un tout petit peu plus discret */
        height: 45px;
    }
}