:root {
    --product-item-hover: #0e3594;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("../img/home-image.jpg") no-repeat center;
    background-size: cover;
    font-family: 'Rubik', sans-serif;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

a:hover {
    text-decoration: none;
}

.products-page-content {
    /*height: 100vh;*/
}

.products-page-title {
    color: #fff;
    line-height: 60px;
    margin-bottom: 50px;
}

.products-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 160px);
    justify-items: center;
    grid-column-gap: 100px;
    grid-row-gap: 32px;
    width: fit-content;
    margin: auto;
    justify-content: center;
    padding-bottom: 24px;
}

.product-item {
    padding: 1rem 1rem;
    border: 3px solid #fff;
    border-radius: 0.75rem;
    background-color: #fff;
    height: 200px;
}

.product-item:hover {
    border-color: var(--product-item-hover);
}

.product-item-icon-wrapper {
    height: 50px;
    background-color: red;
    margin-bottom: 20px;
}

.product-item-info {
    position: relative;
    text-align: center;
    color: #000;
    display: block;
    margin-top: 1em;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 3px 11px;
    background-color: white;
    border-radius: 50px;
}

.product-item-link {
    text-align: center;
    width: 160px;
    margin: auto;
    font-weight: bold;
    color: #000;
    display: block;
}

.product-item:hover .product-item-info {
    color: var(--product-item-hover);
}

.product-item:hover .product-item-link {
    color: var(--product-item-hover);
}

/*assurance auto icon*/
.auto.product:nth-child(1) .product-item-wrapper .product-item .product-item-icon-wrapper {
    height: 50px;
    background: url("../img/car-black.png") no-repeat center;
    background-size: contain;
}

.auto.product:nth-child(1) .product-item-wrapper:hover .product-item .product-item-icon-wrapper {
    height: 50px;
    background: url("../img/car-blue.png") no-repeat center;
    background-size: contain;
}

/*assurance voyage icon*/
.voyage.product:nth-child(2) .product-item-wrapper .product-item .product-item-icon-wrapper {
    height: 50px;
    background: url("../img/travel-black.png") no-repeat center;
    background-size: contain;
}

.voyage.product:nth-child(2) .product-item-wrapper:hover .product-item .product-item-icon-wrapper {
    height: 50px;
    background: url("../img/travel-blue.png") no-repeat center;
    background-size: contain;
}

/*assurance individuel accident icon*/
.incendie.product:nth-child(3) .product-item-wrapper .product-item .product-item-icon-wrapper {
    height: 50px;
    background: url("../img/assistance-incendie.png") no-repeat center;
    background-size: contain;
}

.incendie.product:nth-child(3) .product-item-wrapper:hover .product-item .product-item-icon-wrapper {
    height: 50px;
    background: url("../img/assistance-incendie.png") no-repeat center;
    background-size: contain;
}

/*assurance habitation icon*/
.mha.product:nth-child(2) .product-item-wrapper .product-item .product-item-icon-wrapper {
    height: 50px;
    background: url("../img/habitation-black.png") no-repeat center;
    background-size: contain;
}

.mha.product:nth-child(2) .product-item-wrapper:hover .product-item .product-item-icon-wrapper {
    height: 50px;
    background: url("../img/habitation-blue.png") no-repeat center;
    background-size: contain;
}

/*assurance incendie icon*/
.iac.product:nth-child(1) .product-item-wrapper .product-item .product-item-icon-wrapper {
    height: 60px;
    background: url("../img/individual-accident-black.png") no-repeat center;
    background-size: contain;
}

.iac.product:nth-child(1) .product-item-wrapper:hover .product-item .product-item-icon-wrapper {
    height: 60px;
    background: url("../img/individual-accident-blue.png") no-repeat center;
    background-size: contain;
}

.logo-chanas-index-wrapper {
    position: relative;
    width: 100%;
    padding: 50px;
}


.logo-chanas-index-wrapper .container {
    display: flex;
    justify-content: space-between;
    padding: 0 70px;
}

.logo-chanas-index {
    width: 200px;
}

.user-icon-connect {
    display: none;
}

.btn-user-connect {
    height: fit-content;
    margin: auto 0;
    background-color: #0e3594;
    border: none;
    padding: 15px;
}

@media (min-width: 281px) and (max-width: 540px) {

    body {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        height: unset;
        padding: 10px 0;
    }

    .products-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        grid-column-gap: unset!important;
        grid-row-gap: unset;
    }

    .products-wrapper.second-path {
        width: 90%;
    }
    .product.grid-item{
        width: calc(50% - 5px);
        margin-bottom: 20px;
    }

    .product-item-wrapper {
        height: 190px;
    }

    .product-item {
        padding: .5rem 1rem;
    }

    .product-item-link {
        text-align: center;
        width: 100px;
        margin: auto;
        font-weight: bold;
        color: #000;
        display: block;
    }

    .logo-chanas-index-wrapper {
        padding: 0 30px;
    }

    .logo-chanas-index-wrapper .container {
        display: flex;
        justify-content: space-between;
        padding: 0;
    }

    .products-page-title {
        font-size: 22px;
        line-height: 35px;
        margin: 20px auto!important;
        padding-top: 24px!important;
    }

    .user-icon-connect {
        border-radius: 50px;
        width: 60px;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: white;
        margin: auto 0;
        position: relative;
    }

    .user-icon-connect:after {
        content: 'Se connecter';
        color: white;
        position: absolute;
        bottom: -30px;
        width: 102px;
    }

    .user-icon-connect svg {
        width: 40px;
        height: auto;
        color: #0e3594;
        display: block;
    }

    .btn-user-connect {
        display: none;
    }
}

@media (min-width: 720px) and (max-width: 819px) {

    body {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        height: unset;
        padding: 10px 0;
    }

    .products-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        grid-column-gap: unset!important;
        grid-row-gap: unset;
    }
    .product.grid-item{
        width: calc(30%);
        margin-bottom: 20px;
    }

    .product-item-link {
        text-align: center;width: 100px;
        margin: auto;
        font-weight: bold;
        color: #000;
        display: block;
    }

    /*.logo-chanas-index-wrapper {
        justify-content: center;
        padding: 0;
    }

    .logo-chanas-index {
        width: 40%;
    }*/

    .logo-chanas-index-wrapper .container {
        padding: 0;
    }

}

@media (min-width: 820px) and (max-width: 1023px) {

    body {
        display: flex;
        flex-direction: column;
        /*justify-content: space-evenly;*/  /*default*/
        justify-content: space-between;
    }

    .products-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
        grid-gap: 30px;
        /*margin-bottom: 200px;*/ /*default*/
        margin-bottom: 400px;
    }

    .product-item {
        padding: 20px;
    }

    .product-item-link {
        text-align: center;
        width: 100px;
        margin: auto;
        font-weight: bold;
        color: #000;
        display: block;
    }

    /*.logo-chanas-index-wrapper {*/
    /*    justify-content: center;*/
    /*    padding: 0;*/
    /*}*/

    .logo-chanas-index {
        width: 30%;
    }

    .logo-chanas-index-wrapper .container {
        padding: 0;
    }
}

@media only screen and (max-width: 280px) {
    .products-wrapper {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(2, 1fr);
        justify-items: center;
        grid-gap: 20px;
    }

    .products-page-title {
        color: #fff;
        line-height: normal;
        margin-bottom: 50px;
        font-size: 30px;
    }

    .product-item {
        padding: 0;
        border-radius: 9px;
    }
}
