/* =========================================
   Investment Info Section
   ========================================= */

.investment-info {
    width: 100%;
    background-color: #f7f7f7;
    padding: 38px 17px 26px;
    box-sizing: border-box;
}

.investment-info__container {
    width: 100%;
    max-width: 1620px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    align-items: flex-start;
    justify-content: flex-start;
}

/* =========================================
   Cards
   ========================================= */

.investment-card {
    min-height: 157px;
    background-color: #ffffff;
    border: 1px solid #dedede;
    border-radius: 7px;
    box-sizing: border-box;
    color: #5f6f7e;
}

.investment-card__content {
    width: 100%;
    box-sizing: border-box;
}

/* =========================================
   Cards Indicateur / Horizon
   ========================================= */

/*
 * IMPORTANT :
 * On ne centre plus verticalement avec flex.
 * Le contenu reste toujours à la même position
 * depuis le haut de la carte, même si une autre
 * carte devient beaucoup plus haute.
 */

.investment-card--center {
    text-align: center;
}

.investment-card--center .investment-card__content {
    padding: 15px 55px 40px;
}

/* =========================================
   Titres
   ========================================= */

.investment-card__title {
    margin: 0;

    color: #0b0b0b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

/* =========================================
   Textes
   ========================================= */

.investment-card__text {
    margin: 28px 0 0;

    color: #657585;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
}

/* =========================================
   Tarification
   ========================================= */

.investment-card--pricing {
    padding: 24px 18px 25px;
}

.investment-card--pricing .investment-card__title {
    text-align: center;
    margin: 0 0 27px;
}

/* =========================================
   Sous-titre "Frais"
   ========================================= */

.investment-card__subtitle {
    margin: 5px 0 23px;

    color: #657585;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 400;
}

/* =========================================
   Lists
   ========================================= */

.investment-list {
    margin: 0;
    padding-left: 51px;

    color: #657585;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.62;
    font-weight: 400;
}

.investment-list li {
    padding-left: 0;
    margin: 0 0 2px;
}

.investment-list li::marker {
    color: #657585;
    font-size: 15px;
}

.investment-list strong {
    color: inherit;
    font-weight: 400;
}

.investment-no-fees {
    text-align: center;
    font-weight: bold;
    color: green;
    margin-top: 10px;
}


/* =========================================
   Première liste de tarification
   ========================================= */

.investment-card--pricing .investment-list:first-of-type {
    margin-bottom: 0;
}

/* =========================================
   Tablet
   ========================================= */

@media (max-width: 1100px) {

    .investment-info {
        padding: 30px 15px 25px;
    }

    .investment-info__container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .investment-card {
        min-height: 400px;
    }

    /*
     * La carte Tarification prend toute
     * la largeur sur tablette.
     */
    .investment-card--pricing {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .investment-card--center .investment-card__content {
        padding: 100px 40px 40px;
    }

    .investment-card__title {
        font-size: 23px;
    }

    .investment-card__text {
        font-size: 18px;
    }

    .investment-card__subtitle {
        font-size: 18px;
    }

    .investment-list {
        font-size: 17px;
    }
}

/* =========================================
   Mobile
   ========================================= */

@media (max-width: 700px) {

    .investment-info {
        padding: 25px 15px;
    }

    .investment-info__container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .investment-card {
        min-height: 300px;
    }

    /*
     * Une seule colonne sur mobile.
     */
    .investment-card--pricing {
        grid-column: auto;
        min-height: auto;
        padding: 30px 20px;
    }

    /*
     * Contenu des cartes centré horizontalement
     * mais toujours positionné depuis le haut.
     */
    .investment-card--center .investment-card__content {
        padding: 60px 25px 40px;
    }

    .investment-card__title {
        font-size: 22px;
        line-height: 1.3;
    }

    .investment-card__text {
        margin-top: 20px;
        font-size: 17px;
        line-height: 1.5;
    }

    .investment-card__subtitle {
        margin-top: 25px;
        font-size: 17px;
        line-height: 1.4;
    }

    .investment-list {
        padding-left: 27px;
        font-size: 16px;
        line-height: 1.55;
    }

    .investment-list li {
        margin-bottom: 8px;
    }
}

/* =========================================
   Très petit écran
   ========================================= */

@media (max-width: 400px) {

    .investment-info {
        padding: 20px 10px;
    }

    .investment-info__container {
        gap: 15px;
    }

    .investment-card--center .investment-card__content {
        padding: 50px 20px 35px;
    }

    .investment-card--pricing {
        padding: 25px 15px;
    }

    .investment-card__title {
        font-size: 20px;
    }

    .investment-card__text {
        font-size: 16px;
    }

    .investment-card__subtitle {
        font-size: 16px;
    }

    .investment-list {
        padding-left: 23px;
        font-size: 15px;
        line-height: 1.5;
    }
}