html, body {
    scroll-padding-top: 0 !important;
}
body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Header principal */
div.max-w-6xl.mb-4.mx-auto.px-4.md\:px-2.py-3.flex.items-center.justify-between {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    min-height: 76px !important;
}

/* Bloc gauche */
div.max-w-6xl.mb-4.mx-auto.px-4.md\:px-2.py-3.flex.items-center.justify-between > div.flex.items-center.space-x-4 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    min-height: 68px !important;
    flex: 1 1 auto !important;
}

/* Branding DocuSeal d'origine masqué dans le header */
a.text-2xl.font-bold.items-center.flex.space-x-2 svg {
    display: none !important;
}
a.text-2xl.font-bold.items-center.flex.space-x-2 > span:not(.lgf-branding-text) {
    display: none !important;
}

/* Badge Speedbits masqué */
.badge.badge-primary.font-bold.text-xs.ml-2 {
    display: none !important;
}

/* Nouveau branding header */
a.text-2xl.font-bold.items-center.flex.space-x-2 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    min-height: 68px !important;
    min-width: 0 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    white-space: normal !important;
    margin: 0 auto !important;
    position: relative !important;
    flex-direction: row !important;
}

/* Bannière */
a.text-2xl.font-bold.items-center.flex.space-x-2::before {
    content: "";
    display: inline-block;
    width: 320px;
    height: 86px;
    background: url("/assets/lgf-banniere.png") no-repeat center center;
    background-size: contain;
    flex: 0 0 320px;
    order: 1;
}

a.text-2xl.font-bold.items-center.flex.space-x-2::after {
    content: none !important;
    display: none !important;
}

/* Texte après bannière */
a.text-2xl.font-bold.items-center.flex.space-x-2 .lgf-branding-text {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin-left: 6px;
    order: 2;
}

a.text-2xl.font-bold.items-center.flex.space-x-2 .lgf-branding-title {
    display: block !important;
    font-size: 22px;
    font-weight: 800;
    color: #2b1243;
    line-height: 1.1;
    margin: 0;
}

a.text-2xl.font-bold.items-center.flex.space-x-2 .lgf-branding-subtitle {
    display: none !important;
}

/* Bloc droit */
div.max-w-6xl.mb-4.mx-auto.px-4.md\:px-2.py-3.flex.items-center.justify-between > div.flex.space-x-2 {
    display: flex !important;
    align-items: center !important;
    margin-left: 18px !important;
    flex: 0 0 auto !important;
}

/* ===== Page d'accueil : on masque seulement le hero DocuSeal ===== */
div.relative.flex.flex-col.items-center > svg,
div.relative.flex.flex-col.items-center h1.text-6xl.font-bold.mt-4.mb-4,
div.relative.flex.flex-col.items-center a.badge.badge-outline.badge-lg.block.mx-auto {
    display: none !important;
}

div.relative.flex.flex-col.items-center::before {
    content: "";
    display: block;
    width: 220px;
    height: 110px;
    margin: 0 auto 10px auto;
    background: url("/assets/logo-lgf.png") no-repeat center center;
    background-size: contain;
}

@media (max-width: 1200px) {
    a.text-2xl.font-bold.items-center.flex.space-x-2::before {
        width: 220px;
        height: 60px;
        flex-basis: 220px;
    }

    a.text-2xl.font-bold.items-center.flex.space-x-2 .lgf-branding-title {
        font-size: 17px;
    }

    div.relative.flex.flex-col.items-center::before {
        width: 180px;
        height: 90px;
    }
}
