/* -------------
    SOMMAIRE
------------- */

/*
    @AUTHOR : Nicolas BOUDOT

    NAVIGATION
    Menus et paginations
*/

/*
  01 - HEADER NAVIGATION
        Général
        Navigation secondaire
  02 - BREADCRUMB
  03 - PAGINATION
  99 - A SUPPRIMER ?
*/



/* -------------------------
  01 - HEADER NAVIGATION
        Général
------------------------- */

/* Navigation primaire + optionnel */
.header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 60px;
}

    @media (max-width: 1199px) {
        .header__nav  {
            position: absolute;
            top: 0;
            left: 0;
            background-color: var(--color-primary);
            margin-left: 0;
            height: 100vh;
            z-index: 4;
            transition: top .4s, opacity .4s;
            width: 100%;
        }
    }

    /* No Active */
    @media (max-width: 1199px) {
        .header__nav:not(.active) {
            pointer-events: none;
            top: 60%;
            opacity: 0;
        }
    }

.header__nav nav {
    width: 100%;
    height: 100%;
}

    @media (max-width: 1199px) {
        .header__nav nav {
            overflow-y: auto;
        }

        .header__nav nav > ul {
            padding-bottom: 92px;
        }
    }

/* Bouton fermeture mobile */
.btn-close {
    display: flex;
    justify-content: flex-end;
    padding: 37px 44px;
    font-size: 2.1rem;
}

    @media (min-width: 1200px) {
        .btn-close {
            display: none;
        }
    }
.btn-close span {
    color: var(--white);
}

/* Niveau 1 */
@media (min-width: 1200px) {
    .header__nav ul.firstLevel {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        height: 100%;
    }
}

.header__nav ul.firstLevel > li {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 100%;
}

    @media (max-width: 1199px) {
        .header__nav ul.firstLevel > li {
            display: block;
            padding: 0;
        }
    }

    @media (min-width: 992px) {
        /* Onglets avec enfants */
        .header__nav ul.firstLevel > li.menu-item-has-children {
            padding-right: 36px;
        }
    }

.header__nav ul.firstLevel > li > a {
    display: block;
    color: var(--white);
    font-size: 1.6rem;
    font-weight: bold;
}
@media (min-width: 1200px) {
    .header__nav ul.firstLevel > li > a {
        color: var(--color-primary);
    }
}
.home .header__nav ul.firstLevel > li > a,
.header__nav ul.firstLevel > li.menu-button > a {
    color: var(--white);
}

    @media (max-width: 1199px) {
        .header__nav ul.firstLevel > li > a {
            font-size: 2.1rem;
            padding: 20px 30px;
        }
    }

    /* Onglets avec enfants */
    .header__nav ul.firstLevel > li.menu-item-has-children > a {
        position: relative;
    }

        .header__nav ul.firstLevel > li.menu-item-has-children > a::after {
            content: "\e916";
            position: absolute;
            top: 50%;
            left: calc(100% + 12px);
            font-family: 'icomoon';
            font-size: 0.8rem;
            transform: translateY(-50%);
        }

            @media (max-width: 1199px) {
                .header__nav ul.firstLevel > li.menu-item-has-children > a::after {
                    font-size: 2.1rem;
                    right: 30px;
                    left: auto;
                }
            }

    @media (min-width: 1200px) {
        /* Hover + Active */
        .header__nav ul.firstLevel > li.current-page-ancestor > a,
        .header__nav ul.firstLevel > li.current_page_item > a,
        .header__nav ul.firstLevel > li > a:hover {
            color: var(--color-secondary);
        }
    }

/* Niveau 2 et + */
.header__nav ul.firstLevel ul {
    display: flex;
    flex-direction: column;
    background-color: var(--gray-300);
    margin: 0;
    transform: translateY(0);
    transition: transform .5s, opacity .5s;
    z-index: 1;
}

    @media (max-width: 991px) {
        .header__nav ul.firstLevel ul {
            width: 100%;
            background-color: var(--gray-500);
        }

            /* No Hover */
            .header__nav ul.firstLevel li:not(.sfhover) ul {
                pointer-events: none;
                padding: 0;
                height: 0;
                opacity: 0;
                transform: translateY(-10px);
            }
    }

    @media (min-width: 992px) {
        .header__nav ul.firstLevel ul {
            position: absolute;
            top: calc(100% + 2px);
            left: 0;
            padding: 30px 0;
            min-width: 350px;

        }

            /* No Hover */
            .header__nav ul.firstLevel li:not(:hover) > ul {
                pointer-events: none;
                opacity: 0;
                transform: translateY(-10px);
            }
    }

    /* @changelog 2024-01-11 [EVOL] (Nicolas) Création d'un ::before invisible pour garder l'effet de survol jusqu'au ul */
    .header__nav ul.firstLevel ul::before {
        content: "";
        position: absolute;
        top: -30px;
        left: 0;
        background-color: transparent;
        width: 100%;
        height: 30px;
    }

.header__nav ul.firstLevel ul li {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
}

    @media (max-width: 991px) {
        .header__nav ul.firstLevel ul li {
            flex-direction: column;
        }
    }

.header__nav ul.firstLevel ul li a {
    display: block;
    color: var(--gray-700);
    text-decoration: none;
    padding: 10px 45px;
    height: 100%;
    width: 100%;
}

    @media (max-width: 991px) {
        .header__nav ul.firstLevel ul li a {
            font-size: 1.6rem;
            padding: 20px 80px;
            padding-right: 0;
        }

            /* Hover */
            .header__nav ul.firstLevel ul li.current-page-ancestor > a,
            .header__nav ul.firstLevel ul li.current_page_item > a,
            .header__nav ul.firstLevel ul li.sfhover > a {
                color: var(--white);
                text-decoration: underline;
            }
    }

    @media (min-width: 992px) {
        /* Hover + Active */
        .header__nav ul.firstLevel ul li.current-page-ancestor > a,
        .header__nav ul.firstLevel ul li.current_page_item > a,
        .header__nav ul.firstLevel ul li:hover > a,
        .header__nav ul.firstLevel ul li a:hover {
            background-color: var(--gray-500);
            color: var(--white);
            text-decoration: underline;
        }
    }

/* Niveau 3 */
.header__nav ul.firstLevel ul ul {
    background-color: #B2B2B2;
    transition: transform .5s, opacity .5s;
}

    @media (min-width: 992px) {
        .header__nav ul.firstLevel ul ul {
            top: 0;
            left: 100%;
            background-color: var(--gray-500);
            margin-top: -30px;
            z-index: 1;
        }
    }

.header__nav ul.firstLevel ul ul li a {
    padding: 8px 45px;
}

    @media (max-width: 991px) {
        .header__nav ul.firstLevel ul ul li a {
            font-size: 1.4rem;
            padding: 16px 120px;
            padding-right: 0;
        }

            /* Hover */
            .header__nav ul.firstLevel ul ul li a:hover {
                color: var(--white);
                text-decoration: underline;
            }
    }



/* -----------------------------
  01 - HEADER NAVIGATION
        Navigation secondaire
----------------------------- */

.header__nav.nav-secondary {
    border-bottom: none;
    margin-left: 30px;
}

.header__nav.nav-secondary ul.firstLevel {
    justify-content: flex-start;
}

.header__nav.nav-secondary a {
    color: var(--color-tertiary);
}



/* -----------------
  02 - BREADCRUMB
----------------- */

.breadcrumb,
.breadcrumb a {
    font-size: 1.2rem;
    color: var(--black--40o);
    list-style: 2;
}

/* @changelog 2024-01-18 [EVOL] (Nicolas) Pas utilisé ici mais pratique sur d'autres sites */
/* Structure généré par YOAST */
/* .breadcrumb > span > span a {
    color: var(--color-secondary);
} */

    /* Premier élément */
    /* .breadcrumb > span > span:first-child a {
        color: var(--color-secondary);
        text-decoration: underline;
    } */

    /* Dernier élement */
    /* .breadcrumb > span > span.breadcrumb_last {
        color: var(--color-secondary);
    } */



/* -------------------------
  03 - PAGINATION
------------------------- */

.tool-pagination {
    display: flex;
    justify-content: flex-end;
    margin: 40px 0;
}

.tool-pagination .pages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
    background-color: var(--gray-200);
    border-radius: 50px;
	margin: 0;
	padding: 5px;
}

.tool-pagination .pages li {
	padding: 0;
	margin: 2px;
}

    .tool-pagination .pages li::before {
        display: none;
    }

.tool-pagination .pages li a,
.tool-pagination .pages li .dots,
.tool-pagination .pages li .page-number {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--white);
	color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.6rem;
	min-width: 30px;
	height: 30px;
}

    /* Hover */
    .tool-pagination .pages li > a:hover,
    /* Current */
    .tool-pagination .pages li .page-number.current {
        background-color: var(--color-quaternary);
        color: var(--white);
    }

/* Prev */
.tool-pagination .pages li .prev {
    transform: scaleX(-1);
}


/* -------------------------
  99 - A SUPPRIMER ?
------------------------- */

/*
    Info :
    Je ne sais pas à quoi sert cette déclaration, je la laisse dans le doute
*/

body .mm-menu_offcanvas {
	max-width: 80vw;
}
