@import url('https://fonts.googleapis.com/css2?family=Yusei+Magic&display=swap');

*{
    margin:0; padding:0;
    box-sizing: border-box;
    font-family: "Yusei Magic", sans-serif;
}
:root{
    --background:#191919;
    --topbar:#2c2c2c;
}
a{
    text-decoration: none;
    color: inherit;
}
body{
    background: var(--background);
    padding-top: 70px;
}

/* TOPBAR */
.topbar{
    background: var(--topbar);
    border-bottom:1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    height: 70px;
    line-height: 70px;
    padding: 0 20px;
    position: fixed;
    top:0; right:0; left:0;
    z-index: 7000;
}
.topbar .logo{
   height:50px;
   margin-top: 10px;
}

.topbar .navbar > ul{
    display: flex;
    list-style: none;
}
.topbar .navbar li a{
    padding: 8px;
    display: block;
    line-height: 55px;
    color:rgba(255,255,255,0.5);
    transition: all 0.5s;
}
.topbar .navbar li a:hover{
    color:#fff;
    text-decoration: underline;
    text-underline-offset:6px;
}
.topbar .navbar .sous-menu{
    list-style: none;
    background: var(--topbar);
    height: 80px;
    padding: 0 10px;
    position: absolute;
    border: 1px solid rgba(255,255,255,0.5);
    top:60px;
    right: 332px;
    display: none;
}
.topbar .navbar .sous-menu a{
    height: 30px;
    line-height: 30px;
}
.a-sous-menu:hover .sous-menu{
    display: block;
}
.topbar .navbar-mobile{
    display: none;
}

/* BANNIERE */
.banniere img{
    height: 350px;
    width: 100%;
    border-bottom:1px solid rgba(255,255,255,0.1);
    object-fit: cover;
}

/* SITE CONTAINER */
.site-container{
    padding: 0 20px;
    margin-top: 10px;
}
.site-container h1{
    color:#fff;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* CHOIX GLACE OU FRITES */
.choix{
    display: flex;
    justify-content: space-between;
    margin:0 auto;
    margin-top: -50px;
    width: 750px;
}
.choix .div{
    border:1px solid #f1f1f1;
    height: 200px;
    width: 350px;
    background: #2c2c2c;
    text-align: center;
    color:#fff;
    padding: 10px;
}
.choix .div:hover{
    cursor: pointer;
}
.choix img{
    width: 30%;
    margin-top: 15px;
}
.choix .desserts img{
    width: 15%;
}
.choix .desserts:hover{
    transform: scale(1.1) rotate(4deg);
}
.choix .snack:hover{
    transform: scale(1.1) rotate(-4deg);
}
.choix .snack img{
    margin-top: 30px;
}

/* LES HORAIRES */
.horaires{
    color:#fff;
    width: 750px;
    margin:0 auto;
}
.horaires h3{
    font-size: 22px;
    border-bottom: 1px solid #fff;
    margin-bottom: 10px;
    margin-top: 20px;
}
.horaires-container{
    display: flex;
    letter-spacing: 1px;
}
.horaires-container img{
    width: 100%;
    margin-top: 20px;
}
.horaires-container .close{
    color:#ff3838;
}
.horaires-container p{
    color:rgba(255,255,255,0.8)
}
.horaires-container .times{
    margin-left: 20px;
}
.horaires-container .times p{
    margin-bottom: 10px;
}
.horaires-container .times p:last-child{
    margin-top: -10px;
}
.horaires-container .days p{
    margin-bottom: 10px;
}

/* LES MENUS */
.menus{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.menu{
    width: 24%;
    opacity: 0.7;
    margin-bottom: 10px;
    cursor: pointer;
}
.menu:hover{
    opacity: 1;
}
.menu h3{
    text-align: center;
    color:#fff;
    font-weight: 400;
}
.menu img{
    width: 100%;
    border:1px solid #fff;
}

/* Galerie */ 
.galerie{
    display: flex;
    flex-wrap: wrap;
}
.galerie p{
    color:#fff;
    font-size: 18px;
    margin-top: 5px;
    text-align: center;
    width: 100%;
}
.galerie .photo{
    width: 20%;
    padding: 0 3px;
}
.galerie .photo img{
    width: 100%;
    object-fit: cover;
    height: 400px;
}
.gateaux{
    width: 800px;
    margin:0 auto;
}
.gateaux h3{
    color:#f1f1f1;
    margin-bottom: 15px;
}
.gateaux p{
    color:#f1f1f1b4;
    text-align: justify;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Sous-Menu */
.submenu{
    position: absolute;
    top:50px;
    background: var(--topbar);
    padding: 5px 15px;
    border:1px solid rgba(255,255,255,0.1);
    display: none;
}
.submenu a{
    display: block;
    height: 25px;
    line-height: 25px;
}
.submenu a:after{
    display: none;
}

/* CONTACT */
.form-contact{
    border:1x solid #fff;
    width: 500px;
    margin:0 auto;
}
.form-contact label{
    display: block;
    color:#fff;
    padding-left: 5px;
}
.form-contact input[type=text], input[type=email], textarea{
    width: 100%;
    height: 35px;
    padding-left: 10px;
    margin-bottom: 10px;
    background: #f1f1f1;
    border:none;
    border-radius: 5px;
}
.form-contact textarea{
    padding-top: 7px;
    height: 100px;
}
.form-contact input[type=submit]{
    background: #2c2c2c;
    color:#fff;
    border:1px solid rgba(255,255,255,0.5);
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}
.site-container .errors{
    background: rgb(255, 203, 203);
    padding: 10px;
    color:red;;
    width: 500px;
    margin:0 auto;
    margin-bottom: 10px;
    border-radius: 5px;
    border:1px solid red;
}
.success{
    background: rgb(203, 255, 219);
    padding: 10px;
    color:rgb(0, 170, 9);
    width: 500px;
    margin:0 auto;
    margin-bottom: 10px;
    border-radius: 5px;
    border:1px solid rgb(0, 170, 9);
}

@media (max-width:1450px) {
    .galerie .photo{
        width: 25%;
    }
    .menu{
        width: 24%;
    }
}

@media (max-width:1250px) {
    .galerie .photo{
        width: 33.3%;
    }
    .menu{
        width: 32.3%;
    }
}

@media (max-width:1050px) {
    .galerie .photo{
        width: 50%;
    }
    .menu{
        width: 49%;
    }
}

@media (max-width:800px){
    .choix{
        width: 90%;
    }
    .choix a{
        width: 47%;
    }
    .choix .div{
        width: 100%;
        height: 180px;
    }
    .horaires{
        width: 90%;
    }
    .gateaux{
        width: 100%;
    }
    .form-contact{
        width: 100%;
    }
    .site-container .errors{
        width: 100%;
    }
    
}
@media (max-width:700px){
    .topbar .navbar-mobile{
        display: block;
        color:#fff;
    }
    .topbar .navbar-mobile ul{
        list-style: none;
        font-size: 30px;
    }
    .topbar .navbar{
        position: absolute;
        right:20px;
        top:60px;
        background: #191919;
        border:1px solid rgba(255,255,255,0.5);
        width: 200px;
        border-radius: 3px;
        display: none;
    }
    .topbar .navbar.show{
        display: block;
    }
    .topbar .navbar ul{
        display: block;
    }
    .topbar .navbar .sous-menu{
        position: static;
        border-right:none;
        border-left:none;
        background: #2c2c2c;
        display: block;
    }
    .topbar .navbar li a{
        height: 50px;
        line-height: 30px;
        padding-left: 20px;
    }
}

@media (max-width:650px) {
    .galerie .photo{
        width: 100%;
    }
    .choix .div{
        width: 100%;
        height: 150px;
    }
    .menu{
        width: 100%;
    }
}