/**
 * Fichier  : /pages/homepage/section-2/assets/css/season.css
 * Fonction : présentation du fonctionnement du championnat
 */


/* ==================================================
   SEASON
================================================== */

#league .season > header {
    margin-bottom: 3em;
}

#league .season > header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
    align-items: end;
    gap: 8em;
}

#league .season > header > div {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#league .season > header small {
    font-family: 'content-font';
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--color-primary-light);
}

#league .season > header h3 {
    font-family: 'title-font';
    font-size: clamp(3em, 5vw, 5.5em);
    text-transform: uppercase;
    line-height: .92;
    color: var(--color-white);
}

#league .season > header h3 em {
    color: var(--color-primary-light);
}

#league .season > header > p {
    max-width: 480px;
}

#league .season > header > p {
    font-family: 'content-font';
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .62);
}


/* ==================================================
   STEPS
================================================== */

#league .steps {
    position: relative;
}

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

#league .steps {
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

#league .step {
    position: relative;
}

#league .step {
    padding: 2.5em 2em;
}

#league .step {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5em;
}

#league .step:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, .1);
}

#league .step > span {
    width: 2.5em;
    height: 2.5em;
}

#league .step > span {
    display: grid;
    place-items: center;
}

#league .step > span {
    background: #111;
    border: 2px solid var(--color-border-primary);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(212, 173, 86, .18);
}

#league .step > span {
    font-family: 'bold-font';
    font-size: 10px;
    color: #fff;
}

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

#league .step small {
    font-family: 'content-font';
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .38);
}

#league .step h4 {
    font-family: 'bold-font';
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-white);
}

#league .step p {
    font-family: 'content-font';
    font-size: 12px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .52);
}


/* ==================================================
   SUMMARY
================================================== */

#league .summary {
    padding: 2em;
}

#league .summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
}

#league .summary {
    background: rgba(255, 255, 255, .025);
}

#league .summary strong {
    font-family: 'bold-font';
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-white);
}

#league .summary span {
    width: 5px;
    height: 5px;
}

#league .summary span {
    background: var(--color-primary-light);
    border-radius: 50%;
}


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

@media (max-width: 1100px) {

    #league .season > header {
        gap: 4em;
    }

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

    #league .step:nth-child(2) {
        border-right: 0;
    }

    #league .step:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

}


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

@media (max-width: 800px) {

    #league .season > header {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    #league .season > header h3 {
        font-size: clamp(36px, 11vw, 58px);
    }

    #league .steps {
        grid-template-columns: 1fr;
    }

    #league .step {
        min-height: auto;
    }

    #league .step {
        gap: 1em;
    }

    #league .step:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    #league .summary {
        flex-wrap: wrap;
        gap: 1em;
    }

    #league .summary strong {
        font-size: 9px;
        letter-spacing: 1px;
    }

}
