/* Logo */
.custom-logo-link img {
    max-height: 75px !important;
}

body.wp-custom-logo .headroom--not-top .custom-logo-link img {
    max-height: 70px !important;
}

/* Buttons */
.wp-block-button:hover > .wp-block-button__link {
    background: #ff5000 !important;
    color: white !important;
}

.btn:hover {
    background: #000078 !important;
    color: white !important;
}

.btn:hover a {
    color: white !important;
}

.btn-blue {
    background-color: white;
    color: #000078 !important;
    border: 1px solid #000078 !important;
    transition: all 0.4s ease-in-out;

    a {
        color: inherit !important;
    }
}

.btn-orange {
    background: #ff5000;
    color: white !important;
    border-width: 1px !important;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease-out;

    a {
        color: inherit !important;
    }
}

.btn {
    text-align: center;
    font-family: 'Work Sans', sans-serif;
    border-radius: 30px;
    cursor: pointer;
}

.btn a {
    line-height: 24px;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    padding: calc(.667em + 2px) calc(1.333em + 2px) !important;
    text-decoration: none !important;
    border: 0 !important;
    color: inherit;
}

.navbar-nav {
    align-items: center;
}

/* Forms */
.nf-form-cont {
    background-color: #f0ebeb;
    background-image: url("https://afasec-epona.fr/wp-content/uploads/2026/09/bg-masque-flip-droite.svg");
    background-position: top right;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0px 0px 50px 0px;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    font-family: "Work Sans";
    font-size: 1rem;
    line-height: 1.5;

    .nf-form-title h3 {
        text-transform: uppercase;
        text-align: center;
        margin: 0px 0px 50px 0px;

        font-family: "Work Sans", Sans-serif;
        font-size: 40px !important;
        font-weight: 700;
        line-height: 1em;

        @media (max-width: 767px) {
            font-size: 30px !important;
        }
    }

    .nf-form-wrap {
        width: 60%;
        align-self: center;

        @media (max-width: 767px) {
            width: 100%;
            padding: 20px 20px 20px 20px;
        }
    }

    .label-above .nf-field-label {
        /* margin-bottom: 0 !important; */
    }

    .nf-field-label label,
    .nf-field-label span,
    .nf-field-element label {
        font-weight: 500 !important;
        color: #000078;
    }

    textarea.ninja-forms-field {
        border: none;
        border-bottom: 1px solid rgba(0, 0, 120, 0.8);
        background: transparent;
    }

    input.ninja-forms-field {
        border: none;
        border-bottom: 1px solid rgba(0, 0, 120, 0.8);
        background: transparent;

        &:not([type="radio"]):not([type="checkbox"]):not([type="submit"]) {
            height: 2rem;
        }
    }

    select {
        border-width: 0;
    }

    input.ninja-forms-field:focus-visible,
    textarea.ninja-forms-field:focus-visible {
        border-bottom: 1px solid #000078;
        outline: none;
    }

    .nf-field-element input[type="submit"].ninja-forms-field {
        text-align: center;
        padding: 0.25rem 1.25rem;
        border-radius: 22px;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        z-index: 1;
        background: #ff5000;
        color: white;
        border: 1px solid #ff5000;
        box-shadow: none;
        transition: all 0.3s ease-out;
        @media screen and (max-width: 768px) {
            padding: 0.5rem 2rem;
        }
    }

    .nf-field-element input[type="submit"].ninja-forms-field:hover {
        background: #000078;
        border: 1px solid #fff;
    }

    .nf-form-fields-required {
        font-size: 0.875rem;
        opacity: 0.8;
    }
}

/* Lists */

li:not(.wp-block-post, .menu-item, .cat-item) {
    position: relative;
    margin-left: 1rem;
    list-style-image: url('/wp-content/uploads/2026/04/star.svg');
    padding-inline-start: 1ch;
}

/* Category lists */
.wp-block-categories-list {
    margin: 0 0 4rem 0 !important;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;

    li {
        margin: 0 !important;
        list-style: none !important;
    }

    a {
        text-align: center;
        font-family: 'Work Sans', sans-serif;
        border-radius: 30px;
        cursor: pointer;
        line-height: 24px;
        font-size: 16px !important;
        font-weight: 700 !important;
        text-transform: none !important;
        padding: calc(.667em + 2px) calc(1.333em + 2px) !important;
        text-decoration: none !important;
        background-color: white;
        color: #000078 !important;
        border: 1px solid #000078 !important;
        transition: all 0.4s ease-in-out;

        &:hover {
            background-color: #000078 !important;
            color: white !important;
        }
    }
}

/* Category page */
.category .site-content {
    padding-top: 0 !important;
}

.category .entry-cover-image {
    position: relative;
    height: 450px;
    overflow: hidden;

    .single-featured-image-header {
        position: relative;
        height: 100%;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    &::after {
        content: " ";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(to bottom, rgba(0, 0, 0, .1) 0, rgba(0, 0, 0, .5) 100%);
        background-repeat: repeat-x;
    }
}

.category .entry-cover-image .entry-header {
    position: absolute;
    bottom: 5%;
    width: 100%;
    z-index: 5;

    .entry-title {
        font-size: 24px;
        font-weight: 600;
        line-height: 1.4;
        text-align: left;
        color: #fff;
        margin-top: 10px;
        margin-bottom: 10px;
        padding: 0;

        @media screen and (min-width: 1025px) {
            font-size: 45px;
        }
    }

    .inner-wrap {
        margin-bottom: 0;
        @media screen and (min-width: 48em) {
            max-width: var(--container-width);
        }
    }
}
.category .entry-content {
    margin: 2.8125em auto;
    max-width: var(--container-width);
}

/* Carrousel banner */
.absolute {
    position: absolute;
    z-index: 10;
}

.bottom-1\/2 {
    bottom: 40px;
    left: 40px;
}

.relative {
    position: relative;
}

.carousel-banner .cb-slide.swiper-slide.swiper-slide-active::after {
    background: linear-gradient(0deg, #000078, transparent);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.carousel-banner {
    .cb-slide {
        box-sizing: border-box;
        display: flex;
        justify-content: stretch;
        align-items: stretch;
        min-height: 430px;
        overflow: hidden;
        overflow: clip;
        position: relative;

        figure, img {
            height: stretch !important;
            width: 100%;
            object-fit: cover;
        }
    }
}

.cb-carousel-block {
    .swiper-button-prev, .swiper-rtl .swiper-button-next {
        left: 10px !important;
    }

    .swiper-button-next, .swiper-rtl .swiper-button-prev {
        right: 10px !important;
    }
}

/* Accordéon */
.wp-block-accordion {
    .wp-block-accordion-item.is-open .wp-block-accordion-heading,
    .wp-block-accordion-item:hover .wp-block-accordion-heading .wp-block-accordion-heading__toggle {
        color: #ff5000 !important;
    }
}


/* Menu */
.navbar {
    background: #f0ebeb !important;
}

/* Footer */
@media screen and (min-width: 48em) {
    .site-footer .widget-columns-3 .widget-column {
        flex: 0 0 calc(100% / 2) !important;
    }

    .site-footer .widget-columns-3 .widget-column:last-of-type {
        flex: 0 0 100% !important;
    }
}

.site-footer {
    background-image: url("https://afasec-epona.fr/wp-content/uploads/2026/09/bg-masque-flip-droite.svg") !important;
    background-position: top right !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    border: none !important;
}

.site-footer a:not(.wp-block-social-link-anchor) {
    color: white !important;
}

.copyright {
    justify-content: center;

    & > span:first-child {
        flex: 1 !important;
        text-align: left;
        display: flex;
        width: 100%;
        justify-content: space-between;

        @media (max-width: 767px) {
            flex-direction: column;
        }
    }
}

/* CSS correctifs */
main {
    overflow: hidden;
}
