html, body {
    padding: 0;
    margin: 0;
    /*background-color: #00b050;*/
}

body {
    font-family: Lato, serif;
}

main {
    margin: 0 auto;
    padding: 10px;
}

h2 {
    margin-bottom: 28px;
}

.tarifs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
    box-sizing: content-box;
}

.tarifs, .tarifs * {
    box-sizing: content-box;
}

.tarif-container {
    box-sizing: content-box;
}

.tarif {
    position: relative;

    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: content-box;

    border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.07), 0 10px 30px -10px rgba(0, 0, 0, 0.15);
    padding: 20px;
    height: 250px;
    margin-bottom: 30px;
}

.tarif-most-popular {
    position: absolute;
    top: -18px;
    border-radius: 30px 30px 30px 30px;
    background-color: #ff671f;
    color: white;
    padding: 0.6em 1.5em;
    font-weight: bold;
    font-size: 0.9em;
}

.tarif-pic img {
    width: 60px;
    height: 60px;

}

.tarif-title {
    font-size: 45px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.tarif-prices {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    box-sizing: content-box;
}

.tarif-mobiles {
    font-size: 20px;
    margin-bottom: 36px;
}

.btn-tarif-price-month {
    font-size: 21px;
    font-weight: bold;
    color: #3D474D;
    text-align: center;

    background-color: #DDD;
    border-radius: 25px;
    border: 1px solid #DDD;
    padding: 10px 20px;
    width: 160px;
}

.btn-tarif-price-year {
    padding: 10px 10px;
}

.btn-tarif-price-month, .btn-tarif-price-year {
    text-align: center;
}

.tarif-name {
    font-weight: bold;
}

.tarif-options {
    display: flex;
    flex-flow: column;
    align-items: center;
    padding-left: 40px;
    box-sizing: content-box;
    margin-left: 0;
}

.tarif-options-title {
    font-size: 20px;
    margin-bottom: 10px;
    box-sizing: content-box;
}

.old-tarif-name {
    font-weight: bold;
}

.tarif-options-list ul {
    padding-left: 0;
    margin-left: 20px;
}

.tarif-options-list {
    list-style-position: outside;
    list-style-image: url('../img/checked.png');
    padding-left: 0;
    font-size: 15px;
    margin-left: 0;
}

.tarif-options-list ul {
    list-style-image: none;
    padding-left: 0;
    list-style-type: square;
}

.tarif-options-list > li {
    line-height: 1.2;

    margin-left: 20px;
}

.tarif-options-list li {
    margin-bottom: 15px;
}

span.info:hover {
    cursor: pointer;
    color: #5c5c5c;
}

.degressive-price-footer {
    margin-top: 30px;
    font-size: small;
}

h1 {
    margin: 0;
    text-align: center;
    color: #3D474D;
    font-size: 60px;
}

h2 {
    margin-top: 0;
    color: #8A9499;
    font-size: 34px;
    text-align: center;
    font-weight: normal;
}

h1 .suffix {
    color: #8A9499;
}

sup.price-ht {
    font-size: x-small;
}

.tooltip {
    display: none;
    position: absolute;
    list-style-type: none !important;
    background-color: #DDD;
    color: black;
    padding: 20px !important;
    border-radius: 15px;
    font-size: 13px;
    width: 45vw;
}

.tooltip li {
    list-style-position: inside;
    margin-bottom: 8px;
}

.tooltip li:last-child {
    margin-bottom: 0;
}

.tooltip.showed {
    display: block;
}

@media screen and (min-width: 400px) {
    .tarifs {
    }

    .tarif {
        padding: 30px;
    }

    .tooltip {
        width: 50vw;
        line-height: 14px;
    }
}

@media screen and (min-width: 1024px) {
    main {
        box-sizing: content-box;
        width: 1024px;
    }

    .tarifs {
        grid-auto-flow: column;
        grid-gap: 30px;
        justify-content: center;
    }


    .tarif-options {
        align-items: flex-start;
    }

    .tooltip {
        width: 13vw;
    }
}
