*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    user-select: none;
}
header{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding: 10px 50px;
    align-items: center;
    border-bottom: 1px solid rgb(228, 223, 223);
}
main h1{
    padding: 50px 0 10px 50px;
    z-index:98;
    position: relative;
    font-size: 2.6em;
}
main p{
    padding: 0 0 10px 50px;
}

#src{
    width:400px;
    position: absolute;
    right: 20px;
    bottom: 10px;
}
#main{
    background-color: #fffaee;
    padding-bottom: 50px;
    position: relative;
    padding: 20px 0;
}
#dropdown{
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 5px gray;
    z-index: 16115;
    position: absolute;
    top:65px;
    right: 10px;
    width: 250px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    background-color: #fff;
}
#dropdown.show {
  opacity: 1;
  visibility: visible;
}
#dropdown span{
    margin: 5px 0;
    width: 100%;
    padding: 15px;
}
#dropdown span:hover{
    background-color: rgba(247, 247, 247, 0.781);
    cursor: pointer;
}
#second{
    display: flex;
    margin-right: 15px;
    align-items: center;
    position: relative;
}
#second i{
    font-size: 1.4em;
}
#second>i{
    margin-right: 20px;
}
#third{
    border: 1px solid rgb(202, 196, 196);
    border-radius: 30px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}
#third:hover{
    background-color: rgba(128, 128, 128,0.2);
    cursor: pointer;
}
.fa-user{
    background-color: #ecf7fd;
    padding: 5px;
    border-radius:50%;
}
#cours{
    font-size:1.3em;
    margin-left:20px;
    padding: 5px 10px;
    cursor: pointer;
}
#cours:hover{
    background-color: #e9e3fc;
}
#typ{
    display: flex;
    justify-content: center;
}
.type:nth-child(1){
    background-color: #fdfbe0;
    border-top:14px solid #f8e80b;
}
.type:nth-child(2){
    background-color: #ebeefb;
    border-top:14px solid #032ff5;
}
.type{
    padding: 30px 20px;
    width: 500px;
    position: relative;
    bottom: 20px;
    box-shadow: 0px 0px 5px gray;
    margin: 10px;
}
.creer{
    background-color: #7451eb;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
    cursor: pointer;
    border-radius:7px ;
}
#cous{
    margin-top: 10px;
    color: #7451eb;
    font-weight: bold;
    cursor: pointer;
}
#sav{
    text-align: center;
}
a,a:visited{
    color: black;
    text-decoration: none;
}
#mains{
    text-align:center;
    z-index:10;
}
#mains form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#mains form input{
    width: 200px;
    margin: 10px;
    padding: 10px 3px;
    font-size: 1.6em;
}
#mains form label{
    font-size: 1.3em;
}
.error{
    color:red;
    display: none;
}
input{
    cursor: pointer;
    padding: 2px 5px;
}
#mains{
    background-color: #fffaee;
    padding-bottom: 50px;
    position: relative;
    padding: 70px 0;
}

.h1{
    padding: 20px;
    text-align: center;
}
.h2{
    padding: 0px;
    text-align: center;
}

#boite{
    display:none;
    z-index: 10000;
    position:fixed;
    top:30%;
    left:50%;
    transform:translateX(-50%);
    background:white;
    padding:20px;
    border:1px solid #ccc;
    box-shadow:0 0 10px #aaa;
}
#overlay{
    width:100%;
    height: 100vh;
    z-index:99;
    background-color: rgb(238, 236, 236);
    opacity: 0.5;
    position: fixed;
    top:0;
    bottom: 0;
    display: none;
}
button{
    padding:5px;
    border:none;
    cursor: pointer;
  }

.cates{
    margin:5px;
    border:1px solid green;
    padding:5px;
}
a>div{
    box-shadow:0 0 10px #aaa;
    cursor:pointer;
    margin:50px;
    padding:20px;
}
#table{
    position: sticky; 
    overflow-y: scroll;
    top: 0; 
    bottom:0;
    max-width: 30%; 
    width: 30%; 
    min-width: 30%;
    height:100vh;
    padding:15px;
    box-shadow: 0 0 15px #eee;
}
#cont{
    width:70%;
    margin:0 20px;
}
#mat{
    position: fixed;
    z-index: 100;
    background-color: red;
    color: white;
    opacity: 1;
    right:10px;
    top:80px;
    padding: 5px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 0 5px #ccc;
    display: none;
}
#lal{
    margin:20px 0;
    display:flex;
}
@media all and (max-width:1024px){
    .oc-video{
        width:unset !important;
    }
    .oc-video__iframe{
        width: -webkit-fill-available !important ;
        height: -webkit-fill-available !important;
    }
    figcaption{
        width:unset !important;
    }
    .oc-imageLink{
        width:unset !important;
    }
    #mat{
        display: block;
    }
    #lal{
        display: unset;
    }
    #cont{
        width:100%;
        margin:0px;
        overflow:hidden;
    }
    #one{
        display: flex;
        align-items: center;
    }
    #cours{
        margin-left: 0px;
        padding: 5px 0px;
    }
    #dropdown{
        z-index:130;
    }
    #main > h1{
        z-index:5;
        position: relative;
    }
    #main > p{
        z-index: 2;
        position: relative;
        font-weight: bold;
        margin-bottom: 20px;
    }
    #main>img{
        z-index:1;
        display: none;
    }
    #typ .type{
        width:90%;
        margin: 10px 0;
    }
    #typ{
        flex-direction: column;
        align-items: center;
    }
    header{
        padding: 10px;
    }
    #main{
        padding: 0;
    }
    #boite{
        width:95%;
    }
    #sav{
        margin-bottom: 20px;
    }
    main h1,main p{
        padding-left: 15px;
        padding-right: 5px;
    }
    .cates{
        display: inline-block;
    }
    
    a > div{
        margin: 20px 0;
        width: 95%;
    }
    #table{
        display: none;
        width: 100%;
        min-width:100%;
        max-width:100%;
    }
    select,option{
        width: 100%;
        display: inline-block;
    }
}