/**
 * Fichier  : /pages/homepage/section-5/assets/css/opportunities.css
 * Fonction : présentation des opportunités de partenariat
 */


/* ==================================================
   OPPORTUNITIES
================================================== */

#partners .opportunities {
    margin-bottom: 6em;
}

#partners .opportunities {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#partners .opportunities {
    border-top: 1px solid var(--partners-line);
    border-bottom: 1px solid var(--partners-line);
}


/* ==================================================
   OPPORTUNITY
================================================== */

#partners .opportunity {
    min-height: 300px;
}

#partners .opportunity {
    padding: 2em;
}

#partners .opportunity {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3em;
}

#partners .opportunity:not(:last-child) {
    border-right: 1px solid var(--partners-line);
}

#partners .opportunity > span {
    font-family: 'title-font';
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(18, 18, 18, .36);
}

#partners .opportunity > div {
    display: flex;
    flex-direction: column;
    gap: .75em;
}

#partners .opportunity small {
    font-family: 'bold-font';
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a57a24;
}

#partners .opportunity h3 {
    font-family: 'title-font';
    font-size: clamp(1.6em, 2vw, 2.5em);
    text-transform: uppercase;
    line-height: 1;
}

#partners .opportunity p {
    max-width: 300px;
}

#partners .opportunity p {
    font-family: 'content-font';
    font-size: 12px;
    line-height: 1.7;
    color: var(--partners-muted);
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1100px) {

    #partners .opportunities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #partners .opportunity:nth-child(2) {
        border-right: 0;
    }

    #partners .opportunity:nth-child(-n+2) {
        border-bottom: 1px solid var(--partners-line);
    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 800px) {

    #partners .opportunities {
        margin-bottom: 4em;
    }

    #partners .opportunities {
        grid-template-columns: 1fr;
    }

    #partners .opportunity {
        min-height: 0;
    }

    #partners .opportunity {
        padding: 1.75em 0;
    }

    #partners .opportunity {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 1em;
    }

    #partners .opportunity:not(:last-child),
    #partners .opportunity:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--partners-line);
    }

    #partners .opportunity h3 {
        font-size: 26px;
    }

}
