* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}
figure.attention{width: 200px;
margin: auto}

figure.attention figcaption{background: red;
color: white;
text-align: center}

body {
    background: yellowgreen
}

header {
    height: 150px;
    width: 100%;
    background: black;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5
}

div#tel {
    text-align: center;
    position: fixed;
    top: calc(200px - 60px);
    display: block;
    padding: 20px;
    width: 100%;
    background: white;

}

div#tel a {
    color: black
}

div#tel:not(:target) {
    right: -100%;
    transition: right .5s
}

div#tel:target {
    right: 0;
    transition: right .5s
}

#space {
    margin-left: 15px
}

h1 {
    color: white
}

span {
    font-size: 60px;
    color: yellowgreen
}

nav {
    width: 780px
}

ul {
    list-style: none
}

ul li {
    display: inline-block;
    width: 150px;
    height: 80px;
    text-align: center;
    line-height: 80px;
}

a {
    text-decoration: none;
    text-transform: capitalize
}

ul li:first-child a {
    width: 50px;
    height: 80px;
    display: block;
    color: yellowgreen;
    /*    box-shadow: inset 1px 1px 10px black;*/
}

ul li a {
    color: white;
    display: block;
    width: 150px;
    height: 50px
}

ul li:first-child {
    width: 50px;
    height: 50px;
    position: relative;
    top: 14px
}

main {
    margin-top: 200px
}

section {
    width: 90%;
    margin: auto;
    display: flex;
    flex-wrap: wrap
}

article {
    width: calc(33.33% - 2px);
    height: auto;
    min-width: 320px;
    padding: 10px;
    background: white;
    border: 2px solid yellowgreen;
    flex: 1
}

article.book {
    width: calc(50% - 2px);
    flex: auto
}

article.book figure {
    width: 50%;
    margin: 10px auto
}

article.book p {
    text-align: center
}

figure {
    width: 100%;
    height: auto;
    margin: 10px 0
}

img {
    max-width: 100%
}

h2,
h3 {
    text-align: center;
    height: 60px;
    color: yellowgreen
}

h2 {
    margin-top: 10px;
    color: white
}

hr {
    border: 1px solid yellowgreen;
    margin: 10px 0
}

section:last-child article {
    min-height: 250px
}

footer {
    background: black;
    min-height: 200px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    color: white;
    margin-top: 20px
}

footer p,
footer a,
footer address {
    min-width: 320px;
    text-align: center
}

footer span {
    font-size: 20px
}

footer a {
    color: white
}

.responsive {
    display: none
}

#galerie {
    color: white
}

section.slider {
    width: 100%;
    height: 650px;
    position: relative;
    background: url('https://cdn.website-editor.net/md/dmtmpl/dms3rep/multi/desktop/businessman-using-a-computer-talking-on-the-mobile-phone.jpg') 0 0 no-repeat;
    background-size: cover
}

section.slider + main {
    margin-top: 20px
}

.devis {
    background: yellowgreen;
    border: 1px solid white;
    text-align: center
}

.devis a {
    background: green;
    display: block;
    width: 200px;
    color: white;
    margin: 10px auto;
    height: 44px;
    line-height: 44px
}

hgroup {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, .5);
    text-align: center;
    padding: 50px
}

input {
    width: 95%;
    height: 40px;
    margin: 10px auto;
    border-radius: 5px;
    padding: 5px 0 0 20px
}

textarea {
    height: 200px;
    resize: none;
    margin: 10px auto;
    border-radius: 5px;
    width: 95%;
    padding: 5px 0 0 20px
}

::placeholder {
    font-size: 20px
}

input[type="submit"] {
    cursor: pointer
}

a.active {
    background: yellowgreen;
    display: block;
    width: 100%;
    height: 80px
}

@media screen and (max-width:1024px) {

    ul li:first-child {
        width: 50px;
        height: 80px;
        position: inherit;

    }

    hgroup {
        position: inherit;
        width: 100%;
        background: rgba(0, 0, 0, .5);
        text-align: center;
        padding: 80px;
        margin-top: 150px;
        height: 349px
    }

    section.slider + main {
        margin-top: 200px
    }

    section {
        width: 100%;
        margin: 0
    }

    nav {
        display: none
    }

    .responsive {
        display: block
    }

    .blanc {
        color: white
    }

    ul li {
        width: 100%;
        float: none;
        text-align: center;
        height: 80px;
        line-height: 80px
    }

    span {
        font-size: 40px;
    }

    #toggle {
        overflow: auto;
        text-align: center;
        position: fixed;
        height: 100vh;
        top: 0;
        width: 100%;
        background: rgba(0, 0, 0, .8);
    }

    #toggle:not(:target) {
        right: -100%;
        transition: right 1.5s
    }

    #toggle:target {
        right: 0;
        transition: right 1s
    }

    section.slider {
        width: 100%;
        height: 289px;
        position: relative;
        background: transparent;
        background-size: cover
    }
}
