/******************************** ADMINBAR  *******************************/
html {
    &:has(body) {
        &:has(#wpadminbar) {
            margin-top: 0px !important;
            margin-bottom: 32px !important;
        }
    }
}

#wpadminbar {
    position: fixed;
    top: unset !important;
    bottom: 0 !important;
}

/**************************************************************************/

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    font-family: var(--main-font);
    font-weight: var(--regular);
    font-size: 16px;
    background-color: var(--white);
    overflow-x: hidden;
    min-width: 100vw;
}

#smooth-content {
    display: flex;
    flex-direction: column;
}

* {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

main {
    flex: 1;
}

p,
button {
    margin-bottom: 16px;
}

button {
    pointer-events: all;
    cursor: pointer;
}

strong {
    font-weight: var(--bold);
}

a {
    color: var(--blue);
    text-decoration: none;
    -webkit-transition: var(--transition);
    transition: var(--transition);
}

a:hover {
    color: var(--main-color-1);
}

p[style="text-align: center;"],
p[style="text-align: center"] {
    &>.bouton {
        margin: 0 auto;
    }
}

img,
video {
    height: auto;
    max-width: 100%;
}

figure {
    background: #f2f4fa;
    max-width: 100%;
    overflow: hidden;
}

figure img.size-full {
    border-radius: 0;
}

figure figcaption {
    padding: 10px 40px;
    text-align: center;
}

iframe {
    max-width: 100%;
}

iframe[src*=youtube] {
    aspect-ratio: 16/9;
    border-radius: 8px;
    display: block;
    height: auto;
    overflow: hidden;
    width: 100%;
}

ul:not([class]),
ol:not([class]) {
    line-height: 1.5;
    margin-bottom: 24px;
    padding-left: 24px;
}

ul:not([class]) {
    list-style: none !important;
}

ul:not([class]) li::before {
    background: var(--main-color-1);
    border-radius: 100%;
    content: "";
    display: inline-block;
    height: 5px;
    margin: -2px 7px 0 -12px;
    vertical-align: middle;
    width: 5px;
}

ol li::marker {
    font-weight: var(--bold) !important;
    color: black !important;
}

b,
strong {
    font-weight: var(--bold);
}

[type=text],
[type=email],
[type=number],
[type=tel],
[type=password],
textarea,
select {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--white);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 12.5px 0;
    width: 100%;
}

textarea {
    border: 1px solid var(--white);
    padding: 16px;
}

.aligncenter,
.alignleft,
.alignright {
    display: block;
    margin: 0 auto 15px;
}

.txtcenter {
    text-align: center;
}

.txtright {
    text-align: right;
}

.txtjustify {
    text-align: justify;
}

blockquote {
    border-left: 2px solid #28385a;
    color: #28385a;
    font-size: 1.5rem;
    font-weight: 600;
    max-width: calc(600px + 2rem);
    padding-left: 2rem;
}

blockquote p {
    line-height: 2.25rem;
}

.cta:not(.menu-cta, .surtitre) {
    margin-top: 32px;
}

@media (max-width: 768px) {
    .cta {
        text-align: center;
    }
}

.wp-pagenavi {
    grid-column: 1 / -1;
}

.wp-pagenavi .pages {
    border: 0px !important;
}

.wp-pagenavi {
    border-top: 0px solid;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    margin-top: 60px;
    padding-top: 40px;
    position: relative;
    text-align: center;
}

.wp-pagenavi a,
.wp-pagenavi span {
    border: 1px solid var(--main-color-1) !important;
    border-radius: 2rem;
    color: var(--main-color-1);
    display: inline-block;
    font-weight: 500;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0 5px 10px;
    text-align: center;
}

.wp-pagenavi .page,
.wp-pagenavi .current {
    height: 40px;
    padding: 8px 2px;
    width: 40px;
}

.wp-pagenavi .page:hover {
    background: var(--main-color-1);
    color: var(--white);
}

.wp-pagenavi .current {
    background: var(--main-color-1);
    color: var(--white);
}

.wp-pagenavi [class*=postslink] {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-color: var(--main-color-1);
    color: var(--main-color-1);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 40px;
    padding: 4px 1rem;
}

.wp-pagenavi [class*=postslink]:hover {
    background: var(--main-color-1);
    color: var(--white);
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
    margin: 0 auto 10px;
}

.socials {
    margin: 0;
    padding: 0;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0.5rem;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.socials li {
    list-style: none;
    margin: 0px;
    line-height: normal;
    font-size: 0px;
}

.socials li::before {
    display: none;
}

.socials__item a {
    height: 16px;
    width: 16px;
    display: inline-block;
}

.socials__item a:not(:hover) {
    color: #fff;
}

.socials__item a::before {
    content: '';
    width: 100%;
    height: 100%;
    filter: invert(1);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: inline-block;
}

.socials__item a:hover {
    color: #28385a;
}

.socials__item a[data-social*=facebook]::before {
    background-image: url('../../img/facebook.svg');

}

.socials__item a[data-social*=twitter]::before {
    background-image: url('../../img/x.svg');
}

.socials__item a[data-social*=linkedin]::before {
    background-image: url('../../img/linkedin.svg');
}

.socials__item a[data-social*=instagram]::before {
    background-image: url('../../img/instagram.svg');
}

.socials__item a[data-social*=youtube]::before {
    background-image: url('../../img/youtube.svg');
}

.socials__item a[data-social*=whatsapp]::before {
    background-image: url('../../img/whatsapp.svg');
}

.socials__item a[data-social*=mail]::before {
    background-image: url('../../img/mail.svg');
}

.sharing {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-top: 1px solid #e8eaf0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 16px 12px 32px;
    text-align: right;
}

.sharing__list {
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
}

.sharing__list li {
    list-style: none;
}

.sharing__list li::before {
    display: none;
}

.sharing__icon {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border: 1px solid #50a0f0;
    border-radius: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 32px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 3px;
    width: 32px;
}

.sharing__icon::before {
    content: "";
    display: block;
    font-family: "FontAwesome";
    font-size: 1rem;
}

.sharing__item[data-rs*=facebook] .sharing__icon::before {
    content: "\f39e";
}

.sharing__item[data-rs*=twitter] .sharing__icon::before {
    content: "\e61b";
}

.sharing__item[data-rs*=linkedin] .sharing__icon::before {
    content: "\f0e1";
}

.sharing__item[data-rs*=instagram] .sharing__icon::before {
    content: "\f16d";
}

.sharing__item[data-rs*=youtube] .sharing__icon::before {
    content: "\f167";
}

.sharing__item[data-rs*=vimeo] .sharing__icon::before {
    content: "\f27d";
}

.twitter-tweet {
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .alignleft {
        float: left;
        margin-right: 20px;
    }

    .alignright {
        float: right;
        margin-left: 15px;
    }

    .wp-pagenavi {
        padding-left: 150px;
        padding-right: 150px;
    }

    .wp-pagenavi [class*=postslink] {
        position: absolute;
        top: 40px;
        width: 135px;
    }

    .wp-pagenavi .previouspostslink {
        left: 0;
        margin-right: 1rem;
        margin-bottom: 0;
    }

    .wp-pagenavi .nextpostslink {
        margin-left: 1rem;
        margin-top: 0;
        right: 0;
    }

    ul:not([class]),
    ol:not([class]) {
        padding-left: 2rem;
    }
}

.single-post {
    .builder.content {
        h2 {
            &:has(>img) {

                img {
                    max-height: 600px !important;
                    object-fit: contain !important;
                }
            }
        }
    }
}