/* =========================================================
   7) HEADER STICKY
   ========================================================= */
#masthead {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.site,
.site-primary-header-wrap,
.ast-builder-grid-row-container,
.ast-builder-grid-row {
    overflow: visible !important;
}


/* ================================
   PADDING PAGES PLEINE LARGEUR
   Fix sections flush left
   - acc-acteurs, acc-faq (autoconsommation-collective)
   - rj-label, rj-h2, rj-profils (rejoindre-un-projet)
   - cr-process (creer-une-operation)
   ================================ */
.acc-acteurs,
.acc-faq,
.rj-label,
.rj-h2,
.rj-profils,
.cr-process {
    padding-left: 48px !important;
    padding-right: 48px !important;
}

@media (max-width: 768px) {
    .acc-acteurs,
    .acc-faq,
    .rj-label,
    .rj-h2,
    .rj-profils,
    .cr-process {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ================================
   Bouton Espace client ACC (header)
   ================================ */
.ast-header-button-1 .ast-custom-button {
    white-space: nowrap;
    padding: 10px 20px !important;
    line-height: 1.2;
}
@media (max-width: 480px) {
    .ast-header-button-1 .ast-custom-button {
        padding: 8px 14px !important;
    }
}
@media (min-width: 922px) {
    #ast-hf-menu-1 > li > a.menu-link {
        padding-left: 14px;
        padding-right: 14px;
    }
}
@media (min-width: 922px) and (max-width: 1299px) {
    #ast-hf-menu-1 > li > a.menu-link {
        font-size: 15px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .ast-header-button-1 .ast-custom-button {
        padding: 9px 16px !important;
    }
}

/* Logo portrait : conserver les proportions */
#masthead .site-logo-img img.custom-logo {
    height: auto !important;
    max-height: none !important;
}