@font-face	{
    font-family: "MuseoSans_500";
    src: url("polices/MuseoSans_500.woff") format("woff");
}

.jws * {
    padding: 0;
    margin: 0;
/*    font-family: "MuseoSans_500", "Segoe UI";*/
}
/* Styles communs aux onglets et aux sous-onglets du menu de navigation*/
.jws {
    z-index: 11;
}

.jws li {
    list-style: none;
}
.jws a,
.jws a:visited {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.jws a:hover {
    color: #ef4123;
    font-style: italic;
}
  
  /* NAVBAR */
.jws nav {
    background: #eeeeee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    font-size: calc(0.9rem + 0.2vw);
    font-weight: 700;
}

@media (min-width: 1024px) {
    .jws #nav2 {
        margin-left: 5%;
        margin-right: 5%;
    }
    .jws .barrenav {
        margin-left: 8%;
        margin-right: 8%;
        width:90%;
    }
  }
  
.jws nav ul {
    display: flex;
    justify-content: space-between;
    width: 80%;
}

.jws .barrenav {
    justify-content: space-between;
    justify-self: center;
}

.jws #icons {
    cursor: pointer;
    display: none;
}

.jws #nav3 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size : calc(0.5rem + 1vw); 
}

.jws #nav3 a {
    text-decoration: underline;
}

.jws .nav-links a {
    border: 2px solid; 
    border-radius: 10px;
    transition: border-color 0.3s ease-in-out;
    font-size: calc(0.8rem + 0.4vw); 
}

.jws .nav-links a {
    border-color: #ffcc00;
    color: black;
    background-color: #ffcc00;
}

.jws .nav-links a:nth-child(2) {
    border-color: #ef4123;
    color: #ffffff;
    background-color: #ef4123;
}

.jws .nav-links a:nth-child(3) {
    border-color: #53cfd1;
    color: black;
    background-color: #53cfd1;
}

.jws .nav-links a:nth-child(4) {
    border-color: transparent;
    color: black;
    background-color: transparent;
}

.jws .nav-links a:hover {
    border-color: #ffcc00; 
    background-color: #ffcc00;
    font-style:italic;
}

.jws .nav-links a:nth-child(2):hover {
    border-color: #ef4123;
    background-color: #ef4123;
    font-style: italic;
}

.jws .nav-links a:nth-child(3):hover {
    border-color: #53cfd1;
    background-color: #53cfd1;
    font-style: italic;
}

.jws .nav-links a:nth-child(4):hover {
    border-color: transparent;
    background-color: transparent;
}

/* Barre de recherche */

.jws #search {
    display: flex;
    align-items: center;
}

:where(#search , #formulaire_recherche) button.loupe:hover { /*s'applique aussi donc au champs de recherche hors nav de la page tous-les-articles-ter.html */
    color: #ef4123;
    font-size: 2rem;
}

:where(#search , #formulaire_recherche) input::placeholder {
    color: rgba(0, 0, 0, 0.5);
    font-size: calc(0.9rem + 0.3vw);
    font-weight: 300;
    padding-left: 2px;
}

:where(#search , #formulaire_recherche) #recherche {
    border-radius: 44px;
    padding: 5px; 
    line-height: 1.5rem;
    transition: width 0.2s;
}

.jws #search #recherche {
	width: 110px;
}

#formulaire_recherche .recherche-hors-nav {
	width: 20%;
	min-width: 200px;
}

.jws #search #recherche:where(:hover , :focus) {
    width: 250px;
}

button.loupe {
    height: 50px;
    width: 50px;
    font-size: 1.5rem;
    outline: none;
    cursor: pointer;
    background-color: transparent;
    pointer-events: painted;
    transition: 0.2s;
    margin: auto;
    border: none;
}


/* Sous-onglets */
.jws .tab {
    position: relative;
    width: 100%;
    margin-right: 5px;
}

.jws .sub-tabs {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: 100%;
    background-color: #eeeeee;
    z-index: 11;
    transition: transform 0.3s ease-in-out;
    transform-origin: top;
}

.jws .sub-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jws .sub-tabs li {
    border-bottom: 1px solid #fff;
}

.jws .sub-tabs a {
    display: block;
    padding: 10px;
    color: black;
    text-decoration: none;
}

.jws .sub-tabs a:hover {
    color: #E53011;
    font-style: italic;
}

.jws .sub-tabs.show {
    display: block;
}

/*Responsive*/

@media (min-width: 650px) {
    .jws #search input {
        display: inline-block;
    }
}

@media (max-width: 650px) {
    .jws #nav {
        width: 100%;
    }
    .jws #icons {
        display: block;
        z-index: 12;
    }
    .jws #icons:before {
        content: "\2630";
        font-size: 1.5rem;
    }
    .jws .active #icons:before {
        content: "\2715";
        font-size: 0.8rem;
        position: fixed;
        top: 15%;
        right: 4%;
    }
    .jws nav ul {
        position: fixed;
        left: -100%;
        top: 18%;
        flex-direction: column;
        background: #eeeeee;
        width: 100%;
        text-align: left;
        padding-left: 10%;;
        transition: 0.25s;
        z-index: 11;
    }
    .jws nav li {
        padding: 3px 0;
    }
    .jws nav li:hover {
        background: rgb(157, 217, 240);
    }
    .jws nav.active ul {
        left: 0;
    }

    .jws .nav-links {
        width: 100%;
    }

    .jws .has-subtabs::after {
        content: "\25B8"; /* Code Unicode pour la flèche vers la droite */
        color: black;
        margin-left: 10px;
        font-size: 14px;
        display: inline-block;
    }
    .jws .has-subtabs.opened::after {
        transform: rotate(90deg);
    }
    
	:where(#search , #formulaire_recherche) #recherche {
	line-height: 1.2rem;
	}
    
    .jws #search #recherche:hover,
    .jws #search #recherche:focus {
        display:inline-block;
        width:calc(60vw);
        transition: display 0.5s;
    }
}
