/*
 * Lproject Web — CSS personnalisé
 * Palette de départ basée sur le logo.
 */

:root {
    --lp-bg: #0d0d0f;
    --lp-bg-soft: #151518;
    --lp-card: rgba(255,255,255,.045);
    --lp-border: rgba(255,255,255,.09);
    --lp-text: #f7f7f7;
    --lp-muted: #9d9da3;
    --lp-orange: #ff6a00;
    --lp-orange-2: #ff8c1a;
    --lp-shadow: 0 30px 80px rgba(0,0,0,.45);
}

body {
    background: var(--lp-bg);
    color: var(--lp-text);
}

/* Elementor / Astra cleanup pour la home */
.home .site-content,
.home .ast-container,
.home .entry-content,
.home .elementor,
.home .elementor-section-wrap {
    max-width: none !important;
    width: 100% !important;
}

.home .site-content .ast-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.home .entry-header {
    display: none;
}

/* =========================================================
   RESET ELEMENTOR / ASTRA — ACCUEIL
========================================================= */

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

body.home,
body.home #page,
body.home #content,
body.home .site-content,
body.home .ast-container,
body.home .content-area,
body.home .site-main,
body.home .entry-content,
body.home .elementor {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home .elementor > .e-con,
body.home .elementor > .elementor-element {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.home .elementor-widget-html,
body.home .elementor-widget-html > .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

body.home .lp-hero {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}
/* =========================================================
   RETOUR EN HAUT — ICÔNE PROPRE
========================================================= */

#ast-scroll-top {
    position: fixed !important;
    right: 24px !important;
    left: auto !important;
    bottom: 120px !important;

    width: 46px !important;
    height: 46px !important;

    padding: 0 !important;

    border: 1px solid rgba(255,106,0,.65) !important;
    border-radius: 50% !important;

    background: rgba(10,10,12,.96) !important;

    color: transparent !important;

    box-shadow:
        0 12px 35px rgba(0,0,0,.55),
        0 0 25px rgba(255,106,0,.08) !important;

    z-index: 99999 !important;
}


/* On masque complètement l'icône Astra */

#ast-scroll-top .ast-icon,
#ast-scroll-top svg {
    display: none !important;
}


/* Notre vraie flèche */

#ast-scroll-top::before {
    content: "↑";

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -52%);

    color: #ff6a00;

    font-size: 20px;
    font-weight: 300;
    line-height: 1;

    font-family: Arial, sans-serif;

    pointer-events: none;
}


/* Hover */

#ast-scroll-top:hover {
    background: rgba(255,106,0,.10) !important;
    border-color: #ff6a00 !important;
}

#ast-scroll-top:hover::before {
    transform:
        translate(-50%, -62%);
}


/* MOBILE */

@media (max-width: 650px) {

    #ast-scroll-top {
        width: 42px !important;
        height: 42px !important;

        right: 14px !important;
        bottom: 100px !important;
    }

    #ast-scroll-top::before {
        font-size: 17px;
    }

}

/* Cache le footer Astra d'origine */

.site-footer,
.ast-footer-overlay,
.site-above-footer-wrap,
.site-primary-footer-wrap,
.site-below-footer-wrap {
    display: none !important;
}

/* =========================================================
   SUPPRESSION BANDE ENTRE CONTENU ET FOOTER
========================================================= */

html,
body,
#page,
.site,
.site-content,
#content,
.content-area,
.site-main,
.entry-content {
    background: #0a0a0c !important;
}

/* Aucun espace après le contenu de la home */
body.home #content,
body.home .site-content,
body.home .content-area,
body.home .site-main,
body.home article,
body.home .entry-content,
body.home .elementor {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Dernier conteneur Elementor */
body.home .elementor > .e-con:last-child,
body.home .elementor > .elementor-element:last-child,
body.home .elementor-widget:last-child,
body.home .elementor-widget:last-child > .elementor-widget-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Le footer doit commencer immédiatement */
.lp-site-footer {
    margin-top: 0 !important;
}