body,
ol,
ul,
h1,
h2,
h3,
h4,
h5,
h6,
p,
th,
td,
dl,
dd,
form,
fieldset,
legend,
input,
textarea,
i,
select {
    margin: 0;
    padding: 0;
}


body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #a1ffc0;
    background-position: center;
    background-size: cover;
}

.nav {
    width: 100%;
    height: 110px;
    min-height: 110px;
    display: block;
    background-color: #fff;
}

.logo {
    margin-top: 15px;
    margin-bottom: 15px;;
}

img, .logo {
    margin-left: auto;
    margin-right: auto;
    display: block;
    min-width: 300px;
    width: 300px;
    height: auto;
}

.container {
    display: contents;
    justify-content: center;
    align-items: center;
    width: 100vw;
}

.center {
    display: block;
}

.box-out {
    z-index: -99;
    width: 1000px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    position: absolute;
    top: 140px;
}

.box-inner {
    /* display: none; */
    z-index: 99;
    width: 900px;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    position: absolute;
    top: 350px;
    overflow: hidden;
    background-color: #fff;
}

.book {
    width: 400px;
    height: 566px;
    background-color: #17a246;
    transition: all .3s ease-in-out;
    transform-origin: left center 0px;
    transform-style: preserve-3d;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.box-out .book::after {
    content: " ";
    display: block;
    opacity: 0;
    width: 180px;
    height: 255px;
    position: relative;
    left: 8px;
    transition: all .3s ease;
}

.box-out .book::before {
    content: " ";
    z-index: 999;
    display: block;
    width: 20px;
    height: 100px;
    opacity: 0;
    position: absolute;
    top: -12px;
    right: 8px;
    transition: all .25s;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD8AAABhCAYAAABh23lYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHCSURBVHgB7dxPTsJAHMXxN7Xu3UhigobxJHACvQFwAr2BcgO8AZxE7uGiDZiQyEIW7oSOUyKbKgLS8u+9b9JNF818fum0XdWUhy9VEDZBGIdBGD6DsFM3bQYgTnjWhGdNeNaEZ0141oRnTXjWhGdNeNaEZ0141oRnTXjWhGdNeNaEZ0141oRnTXjWhGdNeNaEZ0141oRnTXjWhGdNeNaEZ0141oRnTXjWhGdNeNaEZ0141oRnTXjWhGdNeNZ2hR/7o+UcmnCIsaNCbLcU/RR8oB1bO/4+17l8ixoGeIBBBVvMXI0ih+L7Df2j8iiqnvgh+AVVUXDOTZvF4tNb2qC7DJ1tNgSDO78tblFQxeE92l+0NSjZDjaoMowqyYl7hDF15JzL+x+YHtxLgFq/ZO2m8LT4wsb90nUjmMD61XaRc7ng5+jBua29ntsecq6oIWyELxqdLe8h/GvPp+h0T28D/FezZ8Ip7pHgZt3X5NoPvH1BZ5sNIUTDL7C+6hBWxxt0gk+00tsOe96qH0zL8GO4pBtMg/YhoLMtG8Ii/EpfY4fSoiFk8UeFzpYdwhz/jiNGZ0uHEBjUEzftohJFZyAsdX8BM0/amLC3spYAAAAASUVORK5CYII=');
    background-size: 16px;
    background-repeat: no-repeat;
}

/*------ background-pic ------*/

.books-1 {
    background: url('https://www.ciffreobona.fr/PDF/2024/04/04/Guide-Piscine-2024/files/page/1.jpg');
    background-size: 400px 566px;
}

.books-2 {
    background: url('https://www.ciffreobona.fr/PDF/2024/04/04/Choix-Piscine/Promo-Piscine-2024.jpg');
    background-size: 400px 566px;
}

/* ----- hover ----- */

.book:hover {
    cursor: pointer;
    transform: rotateY(-28deg) rotateZ(-2deg) scale(1.02);
    -webkit-backface-visibility: hidden;
    box-shadow: 1px 3px 2px #0a441d, 20px 8px 0 #ffffff;
    /* transform: scale(1.02); */
}

.book:hover::after {
    content: " ";
    display: block;
    opacity: 1;
    width: 172px;
    height: 255px;
    position: relative;
    left: 8px;
  /*   background: linear-gradient(-180deg, #ffffff 0%, #ffffff00 60%); */
}

.book:hover::before {
    transform: translateY(9px);
    opacity: 1;
  
}

.dr {
position: absolute;
  bottom: 16px; 
  right: 16px;
  width:100px;
}

@media screen and (min-width: 1000px) {
    body {
        background: url(https://www.ciffreobona.fr/PDF/2024/04/04/Choix-Piscine/background-guide-piscine-2024-2.jpg);
        background-position: top;
        background-size: 100%;
    }
}

@media screen and (max-width: 1000px) {
 
    body {
        background-color: #3EC1CB !important;
/*         background: url(https://www.balitrand.fr/pdf/PDF-2022/03-Mars/Guide-Jardin-2022/files/mobile-ext/backGroundImgURL.jpg); */
    }

    .container {
        background-color: #3EC1CB;
    }

     .nav {
        min-height: 145px;
     }

     img, .logo {
         width: 500px;
         height: auto;
     }

     .box-out {
        z-index: -99;
        width: 1000px;
        display: block;
        justify-content: space-evenly;
        align-items: center;
        position: absolute;
        top: 200px;
    }

    .book {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 100px;
        width: 700px;
        height: 991px;
    }

    .books-1 {
        background-size: 700px 991px;
    }
    
    .books-2 {
        background-size: 700px 991px;
    }

 }