/**
 * Fichier  : /pages/homepage/section-7/assets/css/style.css
 * Fonction : section des réseaux sociaux
 */


/* ==================================================
   SECTION
================================================== */

.follow {
    position: relative;
}

.follow {
    padding: clamp(5em, 7vw, 7.5em) 3em;
}

.follow {
    overflow: hidden;
}

.follow {
    background: linear-gradient( to bottom, #f4f3f0 0, #f4f3f0 24px, #fff 190px, #fff 100% );
}

.follow {
    color: #171717;
}

.follow::before {
    content: "";
}

.follow::before {
    position: absolute;
    inset: 0;
}

.follow::before {
    background-image:
        linear-gradient(rgba(17, 17, 17, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image:
        linear-gradient(
            to bottom,
            transparent 0,
            rgba(0, 0, 0, .15) 70px,
            #000 210px,
            #000 100%
        );
    mask-image:
        linear-gradient(
            to bottom,
            transparent 0,
            rgba(0, 0, 0, .15) 70px,
            #000 210px,
            #000 100%
        );
}

.follow::before {
    pointer-events: none;
}

.follow::after {
    content: "";
}

.follow::after {
    position: absolute;
    top: 55px;
    right: 8%;
}

.follow::after {
    width: 420px;
    height: 420px;
}

.follow::after {
    border-radius: 50%;
    background: rgba(233, 64, 27, .09);
    filter: blur(90px);
}

.follow::after {
    pointer-events: none;
}


/* ==================================================
   INNER
================================================== */

.follow .inner {
    position: relative;
    z-index: 1;
}

.follow .inner {
    width: min(calc(100% - clamp(80px, 12vw, 200px)), 1320px);
}

.follow .inner {
    margin: 0 auto;
}


/* ==================================================
   HEADING
================================================== */

.follow .heading {
    margin-bottom: clamp(2.5em, 4vw, 4em);
}

.follow .heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3em;
}

.follow .kicker {
    padding-bottom: .8em;
}

.follow .kicker {
    font-family: 'bold-font';
    font-size: 8px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--color-primary);
}

.follow h2 {
    margin: 0;
}

.follow h2 {
    font-family: 'bold-font';
    font-size: clamp(52px, 6.6vw, 96px);
    font-weight: 400;
    line-height: .88;
    text-transform: uppercase;
    letter-spacing: -.055em;
    color: #171717;
}

.follow h2 em {
    font-style: normal;
    color: var(--color-primary);
}


/* ==================================================
   NETWORKS
================================================== */

.follow .networks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.follow .network {
    position: relative;
}

.follow .network {
    min-height: 245px;
}

.follow .network {
    box-sizing: border-box;
}

.follow .network {
    padding: 1.8em;
}

.follow .network {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.follow .network {
    border: 1px solid rgba(17, 17, 17, .09);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 18px 45px rgba(17, 17, 17, .06);
}

.follow .network {
    color: #171717;
    text-decoration: none;
}

.follow .network {
    opacity: 0;
}

.follow .network {
    transform: translateY(24px);
}

.follow .network {
    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.22, 1, .36, 1),
        color var(--transition-card),
        background var(--transition-card),
        border-color var(--transition-card),
        box-shadow var(--transition-card);
}

.follow.is-visible .network {
    opacity: 1;
}

.follow.is-visible .network {
    transform: translateY(0);
}

.follow.is-visible .network:nth-child(2) {
    transition-delay: .08s;
}

.follow.is-visible .network:nth-child(3) {
    transition-delay: .16s;
}

.follow.is-visible .network:nth-child(4) {
    transition-delay: .24s;
}

.follow .network::before {
    content: "";
}

.follow .network::before {
    position: absolute;
    top: 0;
    left: 1.8em;
    right: 1.8em;
}

.follow .network::before {
    height: 3px;
}

.follow .network::before {
    background: var(--network-color);
}

.follow .network::before {
    transform: scaleX(.24);
    transform-origin: left;
}

.follow .network::before {
    transition: transform var(--transition-card);
}

.follow .facebook {
    --network-color: #1877f2;
}

.follow .instagram {
    --network-color: #d62976;
}

.follow .tiktok {
    --network-color: #171717;
}

.follow .youtube {
    --network-color: #ff0000;
}


/* ==================================================
   NETWORK CONTENT
================================================== */

.follow .network-top,
.follow .network-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.follow .network-icon {
    width: 25px;
    height: 25px;
}

.follow .network-icon {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.7;
}

.follow .network-icon .fill {
    stroke: none;
}

.follow .network-icon .outline {
    fill: none;
}

.follow .network-name {
    font-family: 'bold-font';
    font-size: 8px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(17, 17, 17, .5);
}

.follow .network-count strong,
.follow .network-count small {
    display: block;
}

.follow .network-count strong {
    font-family: 'bold-font';
    font-size: clamp(34px, 3vw, 48px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.045em;
}

.follow .network-count small {
    margin-top: .65em;
}

.follow .network-count small {
    font-family: 'content-font';
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(17, 17, 17, .5);
}

.follow .network-link {
    padding-top: 1.4em;
}

.follow .network-link {
    border-top: 1px solid rgba(17, 17, 17, .09);
}

.follow .network-link {
    font-family: 'bold-font';
    font-size: 8px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.follow .network-link i {
    font-size: 18px;
    font-style: normal;
}

.follow .network-link i {
    transition: transform var(--transition-soft);
}


/* ==================================================
   DESKTOP HOVER
================================================== */

@media (hover: hover) and (pointer: fine) {

    .follow .network:hover {
        border-color: var(--network-color);
        background: var(--network-color);
        box-shadow: 0 22px 48px rgba(17, 17, 17, .16);
    }

    .follow .network:hover {
        color: #fff;
    }

    .follow .network:hover {
        transform: translateY(-6px);
    }

    .follow .network:hover::before {
        background: rgba(255, 255, 255, .8);
    }

    .follow .network:hover::before {
        transform: scaleX(1);
    }

    .follow .network:hover .network-name,
    .follow .network:hover .network-count small {
        color: rgba(255, 255, 255, .68);
    }

    .follow .network:hover .network-link {
        border-color: rgba(255, 255, 255, .22);
    }

    .follow .network:hover .network-link i {
        transform: translate(3px, -3px);
    }

}


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

@media screen and (max-width: 1050px) {

    .follow .inner {
        width: calc(100% - 5em);
    }

    .follow .networks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


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

@media screen and (max-width: 700px) {

    .follow {
        padding: 3em 0;
    }

    .follow::before {
        background-size: 48px 48px;
    }

    .follow::after {
        top: 145px;
        right: -60px;
    }

    .follow::after {
        width: 260px;
        height: 260px;
    }

    .follow::after {
        background: rgba(233, 64, 27, .065);
        filter: blur(70px);
    }

    .follow .inner {
        width: calc(100% - 2.8em);
    }

    .follow .heading {
        margin-bottom: 2.5em;
    }

    .follow .heading {
        display: block;
    }

    .follow .kicker {
        margin-bottom: 1.4em;
    }

    .follow .kicker {
        padding: 0;
    }

    .follow .kicker {
        display: block;
    }

    .follow h2 {
        font-size: clamp(46px, 14vw, 68px);
    }

    .follow .networks {
        gap: 8px;
    }

    .follow .network {
        min-height: 190px;
    }

    .follow .network {
        padding: 1.25em;
    }

    .follow .network {
        border-radius: var(--radius-md);
    }

    .follow .network::before {
        left: 1.25em;
        right: 1.25em;
    }

    .follow .network-name {
        display: none;
    }

    .follow .network-count strong {
        font-size: clamp(27px, 8vw, 38px);
    }

    .follow .network-link span {
        max-width: 80px;
    }

    .follow .network-link span {
        line-height: 1.35;
    }

}


/* ==================================================
   PETITS MOBILES
================================================== */

@media screen and (max-width: 390px) {

    .follow .networks {
        grid-template-columns: 1fr;
    }

    .follow .network {
        min-height: 175px;
    }

    .follow .network-name {
        display: block;
    }

}


/* ==================================================
   ACCESSIBILITÉ
================================================== */

@media (prefers-reduced-motion: reduce) {

    .follow .network,
    .follow .network::before,
    .follow .network-link i {
        transition: none !important;
    }

    .follow .network {
        opacity: 1;
    }

    .follow .network {
        transform: none;
    }

}
