:root {
    --color-primary: #0d534c;
    --color-primary-light: #0f635b;
    --color-primary-dark: #0a423c;
    --color-white: #c5c5c5;
}

main{
    position: relative;
    top: 6.1rem;
    width: 100%;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

main h1{
    text-align: center;
}

main .horaire__list{
    width: 97%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a423c;
}

main .horaire__list .horaire__item{
    list-style: none;
    display: inline-block;
}

main .horaire__list .horaire__item .horaire__link{
    font-size: 20px;
    color: var(--color-white);
    text-decoration: none;
    padding: 20px;
    display: block;
    transition: all .2s ease;
}

main .horaire__list .horaire__item .horaire__link:hover{
    background: var(--color-primary-light);
}

main .horaire{
    width: 80%;
    height: calc(90% - 100px);
}

main .horaire .horaire__table{
    width: 100%;
    height: 100%;
    display: none;
    transition: all 1s ease-in-out;
}

main .horaire .horaire__table h1{
    text-align: center;
    font-size: 40px;
}

main .horaire .horaire__table.active{
    display: block;
}

main .horaire .horaire__table iframe{
    width: 100%;
    height: 70%;
}

footer{
    position: relative;
    top: 10rem;
}

@media(max-width: 750px) {
    header{
        width: 100%;
    }
    .horaire__list{
        width: 100%;
    }

    main h1{
        text-align: center;
    }

    main .horaire__list .horaire__item .horaire__link{
        font-size: 15px;
        padding: 10px;
    }

    main .horaire{
        width: 100%;
    }

    main .horaire .horaire__table  h1{
        font-size: 30px;
    }

    main .horaire .horaire__table iframe{
        width: 100%;
        height: 70%;
    }

    
}

@media(max-width: 990px){

    main .horaire__list .horaire__item .horaire__link{
        font-size: 15px;
        padding: 10px;
    }

    main .horaire{
        width: 100%;
    }

    main .horaire .horaire__table h1{
        font-size: 20px;
    }

    main .horaire .horaire__table iframe{
        width: 100%;
        height: 70%;
    }

    footer{
        width: 100%;
    }
} 