/* 
Theme Name: PDP.fr
Description: Thème sur mesure par Elodie Dardé
Author: Elodie Dardé
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/


main {
    padding: 20px 0px 0px;
}


/* SCROLL */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
html:has(#wpadminbar) {
    scroll-padding-top: 120px;
}

/* ADMIN */

html:has(#wpadminbar),
html:has(#wpadminbar) header {
    padding-top: var(--wp-admin--admin-bar--height);
}
html:has(#wpadminbar) header .elementor-nav-menu--dropdown {
    padding: 120px 0px 0px;
} 


/* HEADER */

header {
    z-index: 1000;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    background: #FFFFFF;
}
header .elementor-nav-menu--dropdown {
    z-index: -1;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    padding: 80px 0px 0px;
}


/* NEWSLETTER */

.newsletter .elementor-form-fields-wrapper {
    margin: 0px;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    padding: 4px;
    border-radius: 80px;
}
.newsletter .elementor-field-type-email {
    flex: 1!important;
    margin: 0px!important;
    padding: 0px!important;
    width: 100%!important;
}
.newsletter .e-form__buttons {
    flex: none!important;
    margin: 0px!important;
    padding: 0px!important;
    width: fit-content!important;
}


/* ICON */

.icon:before {
    content: "";
    display: inline-block;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

h1 .icon:before,
h2 .icon:before {
    margin: 0px 4px 0px 0px;
    width: 32px;
    height: 32px;
    transform: translateX(-2px);
}

@media screen and (max-width: 767px) {
    h1 .icon:before,
    h2 .icon:before {
        margin: 0px 2px 0px 0px;
        width: 20px;
        height: 20px;
    }
}

.icon-calendar:before {
    background-image: url("https://reforme-facturation.com/wp-content/uploads/2025/03/rf-icon-calendar.png");
}
.icon-invoice:before {
    background-image: url("https://reforme-facturation.com/wp-content/uploads/2025/03/rf-icon-invoice.png");
}
.icon-lightning:before {
    background-image: url("https://reforme-facturation.com/wp-content/uploads/2025/03/rf-icon-lightning.png");
}
.icon-list:before {
    background-image: url("https://reforme-facturation.com/wp-content/uploads/2025/03/rf-icon-list.png");
}
.icon-search:before {
    background-image: url("https://reforme-facturation.com/wp-content/uploads/2025/03/rf-icon-search.png");
}
.icon-user:before {
    background-image: url("https://reforme-facturation.com/wp-content/uploads/2025/03/rf-icon-user.png");
}


/* CHECKLIST */

.checklist,
#article-main ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
}
.checklist li,
#article-main li {
    position: relative;
    padding: 0px 0px 0px 24px;
}
.checklist li:before,
#article-main li:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0px;
    display: block;
    width: 14px;
    height: 14px;
    background-image: url("https://reforme-facturation.com/wp-content/uploads/2025/03/rf-checklist-navy.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/* ARTICLE PREVIEW */

.article-preview a:has(.attachment-large) {
    width: 100%;
}

/* ARTICLE SIDEBAR */
#article-sidebar {
    position: sticky;
    top: 80px;
}
html:has(#wpadminbar) #article-sidebar {
    top: 120px;
}

/* ARTICLE MAIN */

#article-main a {
    color: var(--e-global-color-primary);
    font-weight: 700;
}
#article-main a:after {
    content: "↗";
    margin: 0px 0px 0px 4px;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}
#article-main a:hover {
    text-decoration: underline;
}
#article-main a:hover:after {
    transform: translateY(-4px);
}

#article-main h2:after {
    content: "";
    margin: 28px 0px;
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, rgba(255, 135, 101, 0.08), rgba(255, 135, 101, 0.28));
    border-radius: 20px;
}