
/* EXEMPLE DE VARIABLES */
:root{
    --main-width: 90%;
    --grey: #666666;
    --light-grey: #E5E5E5;
    --yellow: #ffd912;
    --sub-margin-top: 65px;
}


*{
    padding: 0;
    margin: 0;
    box-sizing: border-box; /* Permet d'inclure le padding et border dans le width des éléments. */
}


body, html{
    position: relative;
    width: 100%;
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
    overflow-x: hidden !important;
    background-color: black;
}

a{
    color: white;
    text-decoration: none;
}

picture img{
    width: 100%;
    height: 100%;
}

p.copy{
    display:inline-block;
    width:49%;
    margin:0;
}

p.ymark{
    display:inline-block;
    width:49%;margin:0;
    text-align:right;
}


.container{
    display: flex;
}

.main-container{
    display: flex;
    width: 90%;
    margin: auto auto;

}

.flex{
    flex: 0 0 auto;
}

.grid-container{
    display: grid;
}

.btn{
    border: 1px solid #ffd912;
    padding: 13px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    transition: all ease 0.25s;
}


.btn img{
    padding-left: 7px;
    transition: all ease 0.25s;
}

.btn:hover{
    background-color: var(--yellow);
    color: black !important;
}

.btn:hover img{
    filter: brightness(0);
}

.uppercase{
    text-transform: uppercase;
}


.text-container{
    margin: auto auto;
    width: 100%;

}

p{
    line-height: 1.4em;
}
/*********************** 

    Fenetre annnonce  
    
************************/
 /* The Modal (background) */
 .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    }

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 40px 20px;
    border: 1px solid #888;
    width: 60%; /* Could be more or less, depending on screen size */
    text-align: center;
    }
.modal-content a {
    color: #000;
    font-weight: bold;
    }

/*********************** 

    MENU CSS  
    
************************/
header{
    height: auto;
    position: fixed;
    z-index: 11;
    width: 100%;
    left: 0%;
    top: 0px;
}

header .top{
    position: relative;
    font-weight: bold;
    background-color: black;
    justify-content: center;
}

.arrow {
	margin-right:10px;
}

.top .btn{
    padding: 5px 10px;
}

.top .flex:first-of-type, .top .flex:nth-of-type(3){
    display: none;
}

.top .flex{
    align-items: center;
}

.top .flex:nth-of-type(2){
    font-size: 0.9em;
}

#adresse-mobile{
    display: block;
}

#adresse-desktop{
    display: none;
}

.top a{
    display: inline-block;
    align-items: center;
    margin: 0 25px 0 5px;
}

.top a:last-of-type{
    margin: 0 10px 0 5px;
}

.top div{
    display: flex; 
    align-items: center;
}

.main-menu{
    background-color: black;
    position: relative;
    border-radius: 0px;
    width: 100%;
    /* padding-top: 10px; */
    text-transform: uppercase;
    font-weight: bold;
}

.main-menu ul{
    list-style: none;
}

.main-menu ul li{
    position: relative;
    cursor: pointer;
}

.main-menu li:not(.main-menu li:first-of-type){
    display: none;
}

.main-menu ul li:hover > div{
    border-bottom: 15px solid var(--yellow);
    color: var(--yellow);
}

.main-menu a:hover{
    color: var(--yellow);
}

.main-menu ul li.sub.margin-left1{
    margin-left: 25px;
}

.main-logo{
    width: 154px;
    height: auto;
}

.main-logo img{
    width: 100%;
}

.main-menu div{
    position: relative;
    color: white;
    height: 107px;
    line-height: 107px;
    
}

.main-menu div:hover{
    border-bottom: 15px solid var(--yellow);
    color: var(--yellow);
}

.main-menu .container{
    justify-content: space-between;
    width: 98%;
    margin: auto auto;
}

.main-menu .container{
    align-items: center;
}

.sub-menu{
    flex-direction: column;
    position: absolute;
    left: 0;
    top: 100%;
    width: 175px;
    padding: 10px;
    border: var(--yellow) 1px solid;
    background-color: black;
    display: none;
}



.sub:hover > .sub-menu{
    display: block;
    cursor: pointer;
}

li.sub-menu li{
    margin: 10px 0;
}


/************************

    MENU MOBILE  
    
*************************/

#burger{
    position: absolute;
    width: 45px;
    height: 35px;
    bottom: 20px;
    right: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10px;
}

.line{
    position: relative;
    width: 100%;
    height: 5px;
    background-color: var(--yellow);
}

.mobile-menu{
    position: fixed;
    top: 95px;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: black;
    color: white;
    z-index: 10;
    text-align: right;
    font-size: 1em;
    text-transform: uppercase;
    transition: all ease 0.5s;
}

.active-menu{
    right: 0;
}

.mobile-menu ul{
    list-style: none;
}

.mobile-menu .container{
    width: 100%;
}

.mobile-menu div a{
    color: var(--yellow);
}

.mobile-menu li{
    margin: 12px 0;
    width: 100%;
    
}

.sub-mobile li{
    margin: 10px 0;
}

.mobile-menu a, .mobile-menu div{
    padding-right: 25px;
}

.sub-menu-mobile{
    background-color: var(--yellow);
    padding: 2px 0;
    display: none;
}

.active-sub{
    display: block;
}

.sub-menu-mobile a{
    color: black
}

.mobile-menu .container{
    flex-direction: column;
}



/************************

    FOOTER
    
*************************/

footer {
    background-color: white;
    padding: 50px 0;
    text-align: center;
}

footer ul{
    list-style: none;
}

footer img{
    max-width: 100%;
}

footer .main-container{
    width: var(--main-width);
    margin: auto auto;
    flex-direction: column;
}

footer .flex1{
    width: 100%;
}

footer .flex2{
    width: 100%;
}


footer .btn{
    display: inline-block;
}

.infos-top{
    background-color: black;
    height: auto;
    padding: 8px 12px;
    border-radius: 10px;
    flex-direction: row;
    align-items: center;
    display: none;
    font-size: 0.8em;
}

footer .telephone{
    margin-left: 5% ;
    margin-right: 1% ;
}

footer .langue{
    margin: 0 10px 0 auto;
}

footer nav{
    text-transform: uppercase;
    display: none;
}

.infos-top a{
    align-items: center;
}

.menu-footer{
    margin-top: 50px;
}

.menu-footer a{
    color: black;
    font-weight: bold;
}

.menu-footer ul ul{
    padding-top: 10px;
}

.menu-footer ul ul li{
    font-size: 0.9em;
}

.menu-footer .container{
    flex-direction: row;
    justify-content: space-between;
}

footer .footer-nouvelles{
    margin-left: 0px;
}

footer p a{
    display: block;
    color: black;
}

footer a:hover{
    color: var(--yellow);
	
}
/*************************************************************************** 

    MEDIA QUERIES 
    
****************************************************************************/


@media only screen and (min-width: 768px) {
    
   
}
    
@media only screen and (min-width: 1024px) {

    .mobile-menu{
        right: -100%;
    }

    #burger{
        display: none;
    }

    .text-container{
        width: 85%;
    }

    header{
        width: var(--main-width);
        left: 5%;
        padding-top: 15px;
        transition: all ease 1s;
    }

    .scroll-on{
        background-color: black;
        border-end-end-radius: 10px;
        border-end-start-radius: 10px;
    }

    header .top{
        position: relative;
        top :unset; left: unset; background-color: rgba(0, 0, 0, 0);
    }

    header .top a:hover{
        color: var(--yellow);
    }

    .top .flex:first-of-type, .top .flex:nth-of-type(3){
        display: flex;
    }

    .top .flex:nth-of-type(2){
        margin-left: 50px;
    }

    .top .flex:nth-of-type(3){
        margin-left: auto;
    }

    #adresse-mobile{
        display: none;
    }
    
    #adresse-desktop{
        display: block;
    }
    

    .main-menu li:not(.main-menu li:first-of-type){
        display: block;
    }
    
    .main-menu{
        background-color: black;
        border-radius: 10px;
        width: 100%;
        margin-top: 25px;
    }
    
    .main-menu ul li.margin-left2{
        margin-left: 0;
    }
    
    
}

@media only screen and (min-width: 1280px) {
    .main-menu ul li.margin-left2{
        margin-left: 50px;
    }

    .main-logo{
        width: 254px;
        height: auto;
    }

    /***** FOOTER *****/
    .infos-top{
        display: flex;
    }

    footer{
        text-align: left;
    }

    footer .flex1{
        width: 22%;
        margin-right: 3%;
    }
    
    footer .flex2{
        width: 75%;
    }

    footer nav{
        display: block;
    }

    footer .telephone{
        margin-left: 15%;
    }

    footer .footer-nouvelles{
        margin-left: 50px;
    }

    footer .main-container{
        flex-direction: row;
    }

    footer p a{
        display: inline;
        color: black; margin-left: 50px;
    }
}

@media only screen and (min-width: 1500px) {
    .main-menu ul li.sub.margin-left1{
        margin-left: 150px;
    }

    .infos-top{
        font-size: 1rem;
    }
}

@media only screen and (min-width: 1920px) {
    
    
}

  

@media only print{
    h1,h2,h3,h4,p,a,li{color:#000 !important;}
    nav{display:none;}
} 