.titre-page,
.message,
.bulle-blanche,
.lien-page {
    /* Largeur commune des elements principaux */
    width: 100%;
    max-width: 318px;
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    /* Barre blanche en haut comme sur le Figma */
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
    padding: 4px 20px;
    background: var(--blanc);
}

.site-header-vide {
    /* Barre haute conservee vide pour garder le rendu Figma */
    justify-content: center;
}

.site-header + .titre-page {
    /* Espace entre la nav du haut et la premiere bulle */
    margin-top: 34px;
}

.histoires-grille {
    /* Grille de cartes d'histoires en deux colonnes */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: calc(100% - 36px);
    max-width: 366px;
    margin: 12px auto 0;
}

@media (max-width: 360px) {
    /* Ajustements pour les petits telephones */
    body {
        width: 100%;
    }

    .formulaire {
        padding-right: 22px;
        padding-left: 22px;
    }

    .site-header {
        padding-right: 24px;
        padding-left: 24px;
    }

    .histoires-grille {
        grid-template-columns: 1fr;
        width: calc(100% - 48px);
    }
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: min(100%, 402px);
    min-height: 62px;
    transform: translateX(-50%);
    background: var(--blanc);
}

.bottom-nav-lien {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 48px;
    text-decoration: none;
}

.bottom-nav-lien img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.bottom-nav-logo img {
    width: 48px;
    height: 48px;
}

.bottom-nav-profil img {
    width: 46px;
    height: 46px;
}
