/***COLORS CODES***/
/*
    BLACK       : #222;
    YELLOW      : #E2B731;
    BLUE        : #28A1ED;
    PINK        : #F82360;
    GRIS        : lightgray;
*/

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
body {
    font-family: sans-serif;
    width: 70%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}
nav {
    background: #222;
    padding: 5px;
    position: fixed;
    top: 0;
    width: 70%;
    z-index: 1;
    font-size: 1vw;
}
nav ul {
    list-style-type: none;
}
nav a{
    color: white;
    text-decoration: none;
}
#boxItem a{
    justify-content: center;
    color: white;
    transition: color 1s;
}
.navLogo a{
    justify-content: center;
    font-size: 25px;
    font-family: 'Saira Stencil One', cursive;
    transition: color 1s;
}
.navLogo a:hover{
    color: greenyellow;
}
#boxItem a:hover{
    color: white;
    background-color: #F82360;
    border-radius: 5px;
}
/* Menu mobile */
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.toggle {
    order: 1;
}
.item {
    width: 100%;
    text-align: center;
    order: 2;
    display: none;
}
.item.active {
    display: block;
}
.toggle {
    cursor: pointer;
}
.bars {
    background: white;
    display: inline-block;
    height: 2px;
    position: relative;
    width: 18px;
}
.bars::after,
.bars::before {
    background: white;
    content: "";
    display: inline-block;
    height: 2px;
    position: absolute;
    width: 18px;
}
.bars::before {
    top: 5px;
}
.bars::after {
    top: -5px;
}
.imgNavbar {
    height: auto;
    width: 3em;
}
/* Desktop Part*/
@media screen and (min-width: 1205px) {
    main {
        margin-top: 70px;
        padding: 0;
    }
    .item {
        display: block;
        width: auto;
    }
    .bars {
        display: none;
    }
    .item {
        order: 1;
    }
    /* Menu animé ...Etc */
    .menu, .menu ul{
        padding:0;
        margin:0;
        list-style:none;
        text-align:center;
    }
    .menu li{
        display:inline-block;
        position:relative;
        border-radius:8px 8px 0 0;
    }
    .menu ul li{
        display:inherit;
        border-radius:0;
    }
    .menu ul li:hover{
        border-radius:0;
    }
    .menu ul li:last-child{
        border-radius:0 0 8px 8px;
    }
    .menu ul{
        position:absolute;
        z-index: 1000;
        max-height:0;
        left: 0;
        right: 0;
        overflow: hidden;
        transition: .3s all .1s;
    }
    .menu li:hover ul{
        max-height:15em;
    }
/* background des liens sous menus */
    .menu li:nth-child(3) li{
        background: #222;
    }
    .menu li:nth-child(4) li{
        background: #222;
    }
/* background des liens menus et sous menus au survol */
    .menu li:nth-child(3):hover, .menu li:nth-child(3) li:hover{
        background:#E2B731;
    }
    .menu li:nth-child(4):hover, .menu li:nth-child(4) li:hover{
        background: #28A1ED;
    }
/* les a href */
    .menu a{
        text-decoration:none;
        display:block;
        padding:8px 32px;
        color:#fff;
    }
    .menu ul a{
        padding:8px 0;
    }
    .menu li:hover li a{
        color:#fff;
        text-transform:inherit;
    }
}

/* Mobile Part */
@media screen and (max-width: 1204px){
    body {
        font-family: sans-serif;
        width: 100%;
    }
    nav {
        background: #222;
        padding: 0px;
        position: fixed;
        top: 0;
        width: 100%;
    }
    .imgNavbar {
        margin-right: 30px;
        padding: 0;
        width: 50px;
    }
    .navLogo {
        margin-right: 60px;
        padding: 0;
    }
    .navLogo a{
        font-size: 15px;
    }
    .subMenu {
        display: flex;
        justify-content: center;
        padding: 20px 0;
        font-size: 0.6em;
    }
    .subItem{
        margin: 0 10px;
        padding: 0;
        font-size: 15px;
    }
    .item {
        font-size: 4em;
    }
    .menu {
        width: 100%;
        justify-content: space-around;
    }
    .menu li {
        padding: 5px;
    }
    .bars{
        display: flex;
    }
}
@media screen and (max-width: 320px){
    .navLogo a{
        font-size: 12px;
    }
    .subItem{
        margin: 0 10px;
        padding: 0;
        font-size: 13px;
    }
    .item {
        font-size: 5em;
    }
}

/***BOUTONS PAGES BACK-FRONT***/
@media screen and (min-width: 800px) {
    .buttons-liens {
        display: flex;
        justify-content: flex-end;
        text-align: center;
        margin: 30px;
    }
    .button-par-ici {
        font-size: 15px;
        font-weight: bold;
        width: 300px;
        padding: 10px;
        height: 36px;
        border-radius: 18px;
    }
}
@media screen and (max-width: 800px) {
    .buttons-liens {
        display: flex;
        justify-content: center;
        text-align: center;
        margin: 30px;
    }
    .button-par-ici {
        font-size: 12px;
        font-weight: bold;
        width: 300px;
        padding: 9px;
        height: 30px;
        border-radius: 15px;
    }
}
.button-front {
    background-color: #E2B731;
}
.button-back {
    background-color: #28A1ED;
}
.title-fb {
    display: grid;
    grid-template-columns: 1fr 6fr ;
    background-color: lightgray;
    align-items: center;
    text-align: left;
    margin-top: 30px;
    font-size: 20px;
}
@media screen and (max-width: 800px) {
    .title-fb {
        font-size: 15px;
    }
}
@media screen and (min-width: 800px) {
    .triangle-front {
        width: 100px;
        height: 0;
        border-bottom: 40px solid #E2B731;
        border-right: 40px solid transparent;
    }
}
@media screen and (max-width: 800px) {
    .triangle-front {
        width: 80px;
        height: 0;
        border-bottom: 30px solid #E2B731;
        border-right: 30px solid transparent;
    }
}
@media screen and (min-width: 800px) {
    .triangle-back {
        width: 100px;
        height: 0;
        border-bottom: 40px solid #28A1ED;
        border-right: 40px solid transparent;
    }
}
@media screen and (max-width: 800px) {
    .triangle-back {
        width: 80px;
        height: 0;
        border-bottom: 30px solid #28A1ED;
        border-right: 30px solid transparent;
    }
}
/***TITRES DES PAGES***/

.title-page {
    font-family: 'Saira Stencil One', cursive;
}

@media screen and (min-width: 1205px) {
    .title-page {
        font-size: 3.5rem;
        margin: 1rem;
    }
    .nav-carousel {
        text-align: center;
        margin-top: 0;
        padding: 30px 20px 20px 20px;
    }
}
@media screen and (max-width: 1205px) {
    .title-page {
        font-size: 3rem;
        margin: 1rem;
    }
    .nav-carousel {
        text-align: center;
        margin-top: 1rem;
        padding: 60px 20px 20px 20px;
    }
}
@media screen and (max-width: 800px) {
    .title-page {
        font-size: 2.5rem;
        margin: 1rem;
    }
}
@media screen and (max-width: 600px) {
    .title-page {
        font-size: 2rem;
        margin: 1rem;
    }
}
@media screen and (max-width: 400px) {
    .title-page {
        font-size: 1.5rem;
        margin: 1rem;
    }
}
