/**
 * Fichier  : /pages/homepage/section-4/assets/css/clubs.css
 * Fonction : présentation des clubs de la FWPL
 */


/* ==================================================
   CLUBS
================================================== */

#teams .clubs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
}

#teams .clubs {
    background: transparent;
}


/* ==================================================
   CLUB
================================================== */

#teams .club {
    position: relative;
}

#teams .club {
    box-sizing: border-box;
    min-height: 480px;
}

#teams .club {
    padding: 1.75em;
}

#teams .club {
    display: flex;
    grid-column: span 2;
    flex-direction: column;
}

#teams .club {
    overflow: hidden;
    background: #080808;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .13);
}

#teams .club:nth-child(4) {
    grid-column: 2 / span 2;
}

#teams .club::before {
    content: '';
}

#teams .club::before {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#teams .club::before {
    background:
        radial-gradient(circle at 50% 46%, var(--glow), transparent 44%),
        linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 45%);
    opacity: .9;
}

#teams .club::before {
    transition: opacity .4s ease;
}

#teams .club::after {
    content: '';
}

#teams .club::after {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
}

#teams .club::after {
    width: 100%;
    height: 3px;
}

#teams .club::after {
    background: var(--accent);
}

#teams .club::after {
    transform: scaleX(.2);
    transform-origin: left;
}

#teams .club::after {
    transition: transform .4s ease;
}

#teams .club:hover::before {
    opacity: 1;
}

#teams .club:hover::after {
    transform: scaleX(1);
}

#teams .bonneuil {
    --accent: #e9b21d;
    --glow: rgba(233, 178, 29, .16);
}

#teams .creteil {
    --accent: #1287e9;
    --glow: rgba(18, 135, 233, .17);
}

#teams .sarreguemines {
    --accent: #d8202b;
    --glow: rgba(216, 32, 43, .14);
}

#teams .schiltigheim {
    --accent: #2d9b20;
    --glow: rgba(45, 155, 32, .16);
}

#teams .liria {
    --accent: #173a7a;
    --glow: rgba(7, 27, 84, .28);
}


/* ==================================================
   HEADER
================================================== */

#teams .club > header {
    position: relative;
    z-index: 2;
}

#teams .club > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

#teams .club > header > span {
    font-family: 'content-font';
    font-size: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, .4);
}

#teams .country {
    display: flex;
    align-items: center;
    gap: .75em;
}

#teams .country img {
    width: 26px;
    height: 17px;
}

#teams .country img {
    object-fit: cover;
}

#teams .country img {
    border: 1px solid rgba(255, 255, 255, .2);
}

#teams .country small {
    font-family: 'content-font';
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, .56);
}


/* ==================================================
   LOGO
================================================== */

#teams .logo {
    position: relative;
    z-index: 1;
}

#teams .logo {
    padding: 2.5em 2em;
}

#teams .logo {
    display: grid;
    flex: 1;
    place-items: center;
}

#teams .logo img {
    width: auto;
    height: 220px;
}

#teams .logo img {
    display: block;
    object-fit: contain;
}

#teams .logo img {
    filter: drop-shadow(0 20px 32px rgba(0, 0, 0, .38));
}

#teams .logo img {
    transition: transform .45s ease;
}

#teams .club:hover .logo img {
    transform: translateY(-6px) scale(1.035);
}


/* ==================================================
   FOOTER
================================================== */

#teams .club > footer {
    position: relative;
    z-index: 2;
}

#teams .club > footer {
    box-sizing: border-box;
    padding: 1em;
}

#teams .club > footer {
    border-top: 1px solid rgba(255, 255, 255, .12);
}

#teams .club > footer > div {
    display: flex;
    flex-direction: column;
    gap: .65em;
}

#teams .club > footer small {
    font-family: 'title-font';
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
}

#teams .club > footer h3 {
    max-width: 330px;
}

#teams .club > footer h3 {
    font-family: 'bold-font';
    font-size: 16px;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--color-white);
}

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

@media (max-width: 1100px) {

    #teams .clubs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #teams .club,
    #teams .club:nth-child(4) {
        min-height: 460px;
    }

    #teams .club,
    #teams .club:nth-child(4) {
        grid-column: span 2;
    }

    #teams .club:last-child {
        grid-column: 2 / span 2;
    }

}


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

@media (max-width: 800px) {

    #teams .clubs {
        grid-template-columns: 1fr 1fr;
    }

    #teams .club {
        display: grid;
        grid-template-rows: auto auto 8em;
        justify-content: center;
    }

    #teams .club > header {
        flex-direction: column;
        justify-content: center;

    }
    
    #teams .club,
    #teams .club:nth-child(4),
    #teams .club:last-child {
        box-sizing: border-box;
        padding: 1.5em;
    }

    #teams .club,
    #teams .club:nth-child(4),
    #teams .club:last-child {
        grid-column: auto;
    }

    #teams .country small {
        font-size: 7px;
        letter-spacing: 1px;
    }

    #teams .logo {
        padding: 2em 1.5em;
    }

    #teams .logo img,
    #teams .club:last-child .logo img {
        height: 140px;
    }

    #teams .club > footer h3 {
        font-size: 14px;
    }

}
