/*
    Document   : navigation
    Created on : 2 déc. 2010, 15:42:56
    Author     : meyer
    Description:
        Purpose of the stylesheet follows.
*/

/*
   TODO customize this sample style
   Syntax recommendation http://www.w3.org/TR/REC-CSS2/
*/
#language_menu {
    height: max-content;
}

#formButtons .submit, #formButtons .cancel {
    display: none;
}

.language-selector {
    display: flex;
    justify-content: end;
    border-image: conic-gradient(var(--color-secondary) 0 0) fill 0 //0 100vw;
    height: max-content;
    padding: 0.5rem;
    list-style: none;
    height: max-content;
}

#conteneur_onglets {
    height: 50px;
    background: #fafafa url(images/fond_liste_onglets.png) repeat-x;
}

#conteneur_onglets ul {
    padding-top: 30px;
}

#conteneur_onglets li {
    float: left;
    list-style: none;
    background: url(images/fond_onglet_gauche.png) no-repeat right;
    padding-left: 16px;
    margin-bottom: -11px;
}

#conteneur_onglets li span {
    padding-top: 5px;
    display: block;
    height: 19px;
    background: url(images/fond_onglet_droite.png) no-repeat right;
    padding-right: 16px;
}

#conteneur_onglets li.active {
    background: url(images/fond_onglet_gauche_active.png) no-repeat right;
}

#conteneur_onglets li.active span {
    background: url(images/fond_onglet_droite_active.png) no-repeat right;
}

#conteneur_onglets li.active,
#conteneur_onglets li.active a {
    color: #e6142d;
    font-weight: bold;
}

.conteneur_liste .tri a.asc {
    padding-left: 12px;
    background: url(images/asc.png) no-repeat 3px 50%;
}
.conteneur_liste .tri a.desc {
    padding-left: 12px;
    background: url(images/desc.png) no-repeat 3px 50%;
}

#bottom_links {
    display: flex;
    flex-direction: column;
    clear: both;
}

#bottom_links ul {
    list-style: none;
    padding-top: 10px;
    padding-bottom: 10px;
}
#bottom_links ul.level_0 {
    border-top: dashed 1px #686868;
}
#bottom_links ul.top {
    border-top: dashed 1px #686868;
}
#bottom_links li {
    display: inline;
    white-space: nowrap;
    border-left: solid 1px #686868;
    padding: 0 10px;
}
#bottom_links li.first {
    border-left: 0;
}

table.navig {
    clear: left;
    width: 100%;
    background: #d2d2d2;
    color: #525252;
}
table.navig td {
    padding: 5px 15px;
}
table.navig a {
    color: #525252;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    border-image: conic-gradient(var(--color-brand) 0 0) fill 0 // 0 100vw;;
    font-size: 1em;
    padding: 0;
}

@media screen and (max-width: 744px) {
    .header-nav {
        align-items: start;
    }
}

.header-nav ul {
    display: flex;
    width: max-content;
}


@media screen and (max-width: 880px) {
    .header-nav {
        width: 100%;
    }

    #menu_main {
        width: 100%;
    }

    .header-nav ul {
        flex-direction: column-reverse;
        width: 100%;
    }

    .header-nav #menu_main #menu_main_2 ul{
        width: 100%;

        & li {
            padding: 5px;
            padding-left: 1.5rem;
        }

        & li:first-child {
            padding-top: 10px;
        }

        & li:last-child {
            padding-bottom: 10px;
        }
    }

    .connecte-burger-menu {
        width: 100%;
    }
}

.header-nav li {
    list-style: none;
    cursor: pointer;
}

.header-nav li:hover>a,
.header-nav li a:focus {
    color: var(--color-secondary);
    background: var(--color-white);
    text-decoration: underline;
}

.header-nav li a {
    text-transform: uppercase;
    font-family: var(--font-extra-bold);
    font-size: 1.1em;
    display: block;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 800;
    padding: 14px;
}

.header-nav li a:hover,
.header-nav li:hover a
{
    color: var(--color-text);
    background: var(--color-white);
}

.header-nav li.has_children > a:focus
{
    color: var(--color-text);
    background: var(--color-white);
}

.header-nav li ul {
    margin-left: 0;
    border-top: solid 1px #0000;
}

.header-nav li ul li {
    border-left: 0;
    background: #fff;
}

.header-nav li ul.cache {
    display: none;
}
.header-nav li ul.affiche {
    display: block;
}

.header-nav li
{
    position: relative;
}

.header-nav li ul {
    position: absolute;
    left: -10000em;
}

.header-nav li:hover ul {
    left: 0;
    z-index: 1;
    box-shadow: var(--medium-shadow);
    flex-direction: column;
    row-gap: 0.2rem;
    background-color: var(--color-white);
}

.header-nav li:has(* ul a:focus) {
    background: var(--color-white);
}

.header-nav li:has(* ul a:focus) a {
    color: var(--color-secondary);
}

.header-nav li a:focus ~ * ul {
    left: 0;
    z-index: 1;
    flex-direction: column;
}

.header-nav li ~ * ul:has(a:focus) {
    left: 0;
    z-index: 1;
    flex-direction: column;
}

.header-nav li ~ * ul:has(a:focus) a {
    color: var(--color-text);
    background: var(--color-white);
}

.header-nav li a:focus ~ * ul a {
    color: var(--color-text);
    background: var(--color-white);
}

.header-nav .connecte {
    font-family: var(--font-semi-bold);
    color: var(--color-white);
    padding: 0 14px 5px;
}

@media screen and (max-width: 744px) {
    .header-nav .connecte {
        padding: 14px;
    }
}

.navigation .cptr,
.navigation .prev,
.navigation .next,
.navigation .numbers {
    padding-right: 1em;
}
