/* -----------Global configuration------------ */

*{
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif; 
}

:root {
    --color-primary : #3f84a5;
    --color-primary-hover: #2d7190;

    --color-bg-light: #f5f5fa8f;
    --color-text: #626262;

    --color-bg-nav-wide: rgba(0,0,0,0.3);
    --color-bg-nav-wide-hover: rgba(170, 170, 170, 0.2);
    --color-bg-nav-mobile: rgba(0,0,0,0.6);

    --bp-sm: 540px;
    --bp-md: 830px;
    --bp-lg: 1280px;
}


.no-wrap{
    white-space: nowrap;
}
/*--------------Navigation bar --------------*/

.nav{
    display:flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    height: 5rem;
    padding: 0px 30px;
    z-index: 1000;
}

.nav__logo{
    width: 200px;
}

.nav__menu ul{
    display: flex;
}

.nav__menu ul li{
    list-style-type: none;
}

.nav__item{
    color: white;
    text-decoration: none;
    padding: 20px;
}

.nav__item:hover{
    background: rgba(170, 170, 170, 0.2);
    border-radius: 3.5px;
}

/*---------- Hamburger menu -------------*/

.nav__checkbox,
.nav__toggle{
    display:none;
}

/*-----------Header----------------*/

.header{
    background-size: cover;
    background-position: center;
    color: white;
    height: 450px;
    position: relative; 
}

.header__title{
    font-size: 60px;
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}

.header--services{
    background-image: url('../img/service_background.png');
}

.header--appointment{
    background-image: url('../img/rv_background.png');
}


/*---------- Principal Layout ---------------*/

.page-wrapper{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main{
    background-color:var(--color-bg-light);
    flex:1;
    display:flex;
    align-items: center;
    justify-content: center;
}

.page-content{
    max-width: 1400px;
    margin: 50px;
}

.content-text{
    font-size: 18px;
    line-height: 20pt;
    color:var(--color-text);
}

/*------------Sections header----------------*/

.section-header {
    color:white;
    font-size:40px;
    text-shadow: 0 4px 15px rgb(0 0 0 / 14%);
    margin: 100px 0px;
    height: 280px;

    background: 
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.35)
        ),
        url('../img/crayons.jpg');

    background-size: cover;
    background-repeat: no-repeat;
    border-radius:24px;

    display:flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}


/*--------------Footer -----------------*/

.footer{
    background-color: var(--color-primary);
    color: white;
    width: 100%;
    height: 4rem;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.footer__wide{
    width:100%;
    display:flex;
    justify-content: space-between;
}

.footer__wide > p {
    padding: 10px;
}

.footer__link{
    color:white;
    text-decoration: None;
}

.footer__mobile{
    visibility:hidden;
    display:flex;
    justify-content: space-between;
    align-items:flex-end;
    position: absolute;
    width: 100%;
}

.footer__mobile p {
    font-size: 18px;
    padding: 10px;
}


/* ===================================
            SERVICE PAGE
   =================================== */

.intro-text{
    text-align:justify;
}

/*----------Support area section-------------*/

.support-areas{
    margin:20px 50px; 
    font-size: 16px;
    font-weight: 400;
}

.support-areas ul {
    margin: 0 20px;
}

.support-area{
    padding:40px;
    line-height:30pt;
    text-align:left;
}

.support-area__title{
    text-align: center;
    padding-bottom: 35px;
    font-size: 28px;
    text-shadow: 2px 1px 4px rgba(0, 0, 0, 0.1);
}

.support-area__item{
    font-size: 18px;
}

.support-area--oral,
.support-area--math{
    background-color: var(--color-primary);
    color: white;
}

.support-area--written{
    background-color: #eaf0f3;
    color: var(--color-primary);
    margin: 10px 0px;
}

.support-area--oral{
    border-radius: 10px 10px 0 0;
}

.support-area--math{
    border-radius: 0 0 10px 10px;
}

.support-area__title{
    text-align:center;
    padding-bottom: 35px;
    font-size: 28px;
    text-shadow: 2px 1px 4px rgba(0, 0, 0, 0.1);
}

.support-area__item{
    font-size:18px;
}

/*------------ Process section----------*/

.process{
    display: flex;
    justify-content: space-between;
}

.process > article{
    text-align: center;
}

.process__title{
    padding: 30px 0px;
    color: var(--color-text);
}

.process__step--call,
.process__step--meeting{
    width:25%;
}

.process__step--eval ul {
    list-style-type: none;
}


/* ------Appointement call to action------ */
.appointment-cta {
    display:flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    margin-bottom:50px;
    margin:50px;
}

.btn--primary{
    color: white;
    font-size: 22px;
    background-color: var(--color-primary);
    text-decoration: none;
    padding: 25px 45px;
    border-radius: 12px;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-align:center;
    border:none;

    transition: 
        background-color 0.3s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn--primary:hover{
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 
        0 14px 35px rgba(0, 0, 0, 0.2),
        0 0 0 6px rgba(255, 255, 255, 0.15);
}






/* ===================================
        "PRENDRE RENDEZ-VOUS" PAGE
   =================================== */

/* -------------------Form------------------------ */

.section--form{
    width: 90vw;
    background-color: white;
    margin: 50px 0px;
    max-width: 900px;
    box-shadow: 0 15px 20px #4c515736;
    border-radius: 5px;

}

.form__content {
    color:var(--color-text);
    margin: 50px 0px;
    padding: 35px 50px;

    display:flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-header{
    color:white;
    background-color: var(--color-primary);
    border-radius: 5px 5px 0px 0px;
    height:130px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.form-header__title{
    padding:30px;
    font-size: 40px;
    font-weight: 400;
}

/*-------Entry fields ---------*/
.form__input,
.form__select,
.form__textarea{
    margin: 10px 0px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: var(--color-text);
    background-color:rgb(190 207 213 / 48%);
    border: none;
}

.form__input,
.form__select{
    padding: 15px;
}

.form__textarea{
    height: 175px;
    padding:10px;
    width:95%;
}

.form__item--input,
.form__item--select{
    display:flex;
    flex-direction: column;
    margin: 0% 5%;
    width: 40%;
}

.form__item--textarea,
.form__item--availability{
    margin: 2% 5%;
}

/*------Availabilities section------*/

.availability{
    padding: 20px 0px;
    display:flex;
    justify-content: space-evenly;
}

.availability__column{
    display:flex;
    flex-direction: column;
}

.availability__option {
    padding: 10px 0px;    
    font-size:14px;
}


/*------------ Form footer -------------*/

.form__footer{
    display:flex;
    margin: 5% 5%;
    justify-content: space-between;
}

.form__agreement{
    color: #77777799;
    width: 60%;
    display: flex;
    align-items: center;

}

.form__agreement-checkbox{
    margin-left: 5px;
}

/*initial state (disabled)*/
.btn--submit{
    background-color: #b8d0db;
    pointer-events: none;
}

/*enable state (checked button clicked)*/
.is-enabled .form__agreement-label {
    color: var(--color-text);
}

.is-enabled #btn--submit {
    background-color: var(--color-primary);
    cursor: pointer;
    pointer-events: auto;
}

.is-enabled #btn--submit:hover{
    background-color: var(--color-primary-hover);
}

.availability__option,
.form__agreement-label,
.form__agreement-checkbox{
    cursor: pointer;
}

/* ===================================
          CONFIRMATION PAGE
   =================================== */

.confirmation {
    padding: 75px 75px 150px 75px;
}



/* ===================================
            RESPONSIVE - TABLETS
   =================================== */


@media (max-width:1280px){
    html,
    body{
        overflow-x: hidden;
    }

    /*----------tablets and mobile navigation----------*/
    .nav{ 
        position:fixed;
        background: rgba(0,0,0,0.6);
        width:100%;
    }

    /*hide desktop menu*/
    .nav__menu ul{
        display: none;
    }

    .nav__toggle{
        color: white;
        font-size: 1.6rem;
        line-height:4rem;
        display: block;
        position: relative;
        right: 50px;
        cursor:pointer;
        z-index: 2;
    }
    
    /*hamburger menu open*/
    .nav__menu.is-open ul{
        font-size: 36px;
        display: flex;
        flex-direction:column;
        justify-content: space-evenly;
        text-align: right;
        position: fixed;
        width: 100%;
        top:0;
        left:0;
        height:40%;
        padding-top: 20%;
        padding-bottom:100vh;
        background: rgba(0,0,0,0.9);
    }

    /*-------------General settings------------*/
    .header{
        height:50vh;
    }

    .page-content{
        margin: 40px;
    }

    /*---------Service page-----------*/
    .support-areas{
        margin: 20px 0;
    }

    .process{
        flex-direction: column;
        align-items: center;
        margin: 30px 50px;
    }

    .process > article {
        text-align:center;
        padding-bottom:35px;
        width:100%;
    }


    /*---------Form page------------*/
    .form__content {
        flex-direction: column;
        padding: 35px 90px;
    }

    .form__item {
        margin:0;
        margin-bottom:0;
        width:100%;
    }

    .availability{
        flex-direction: column;
        margin-left: 20px;
    }

}

/* ===================================
   RESPONSIVE - FOOTER
   =================================== */
@media (max-width:830px){
    .footer__wide { 
        visibility:hidden;
    }

    .footer__mobile{
        visibility:visible;
    }

 
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */

@media (max-width:540px){
    /*------------ Navigation------------------*/
    .nav{
        padding: 5px;
    }

    .nav__menu.is-open ul{
        font-size: 24px;
    }

    .nav__logo{
        margin:0;
        width: 150px;
    }

    .nav__toggle{
        right: 25px;
    }

    /*----------Header---------*/
    .header__title {
        font-size: 45px;
    }

    /*---------Service page-----------*/
    .page-content{
        margin: 10px;
    }

    .section-header{
        height: 175px;
        margin: 70px 0px;
    }

    .section-header__title{
        font-size: 36px;
        line-height:40pt;
    }

    .intro-text{
        text-align: left;
        margin:10px;
    }

    /*---------Support section --------------*/
    .support-areas{
        margin: 20px 10px;
    }

    .support-areas ul li{
        padding-bottom:10px;
    }

    .support-area{
        padding: 15px;
        line-height: 22pt;
    }

    .support-area__title{
        padding: 15px 0px;
    }


    /*----------Process section ----------*/
    .process{
        margin: 30px 20px;
    }

    /*----------- Form page ------------*/
    .section--form{
        width:100vw;
    }

    .form__content {
        padding: 0px 20px;
    }

    .form__item {
        margin-bottom: 15px;
    }

    .form__footer {
        flex-direction: column;
        align-items: center;
        margin:30px 0px;
    }

    .form__agreement {
        width: 100%;
    }

    .form__action {
        margin:30px;
    }
    
}

