/**
 * Fichier  : /pages/homepage/section-4/assets/css/cta.css
 * Fonction : style du CTA diffusion sur Punchtime TV
 */


/* ==================================================
   CTA
================================================== */

.streaming .cta {
    position: relative;
}

.streaming .cta {
    box-sizing: border-box;
}

.streaming .cta {
    padding: clamp(3.5em, 6vw, 6em);
}

.streaming .cta {
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
}

.streaming .cta {
    background: var(--color-white);
}


/* ==================================================
   BACKGROUND DETAIL
================================================== */

.streaming .cta::before {
    content: "";
}

.streaming .cta::before {
    position: absolute;
    top: 0;
    left: 0;
}

.streaming .cta::before {
    width: 100%;
    height: 1px;
}

.streaming .cta::before {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(17, 17, 17, .09) 15%,
            rgba(17, 17, 17, .09) 85%,
            transparent
        );
}


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

.streaming .cta .content {
    position: relative;
    z-index: 2;
}

.streaming .cta .content {
    max-width: 620px;
}

.streaming .cta .content {
    display: flex;
    flex-direction: column;
    gap: 1.4em;
}


/* ==================================================
   EYEBROW
================================================== */

.streaming .cta .eyebrow {
    margin-bottom: 1.8em;
}

.streaming .cta .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .8em;
}

.streaming .cta .eyebrow {
    font-family: 'bold-font';
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--color-primary);
}

.streaming .cta .eyebrow::before {
    content: "";
}

.streaming .cta .eyebrow::before {
    width: 7px;
    height: 7px;
}

.streaming .cta .eyebrow::before {
    background: var(--color-primary);
    border-radius: 50%;
}

.streaming .cta .eyebrow::before {
    box-shadow: 0 0 0 5px rgba(233, 64, 27, .08);
}


/* ==================================================
   TITLE
================================================== */

.streaming .cta h3 {
    font-family: 'bold-font';
    font-size: 4em;
    font-weight: 400;
    line-height: .93em;
    text-transform: uppercase;
    letter-spacing: -.045em;
    color: #111;
}

.streaming .cta h3 span {
    color: var(--color-primary);
}


/* ==================================================
   DESCRIPTION
================================================== */

.streaming .cta .content > p {
    max-width: 500px;
}

.streaming .cta .content > p {
    margin: 1em 0 0;
}

.streaming .cta .content > p {
    font-family: 'content-font';
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7em;
    color: rgba(17, 17, 17, .56);
}


/* ==================================================
   TV
================================================== */

.streaming .cta .tv {
    position: relative;
    z-index: 2;
}

.streaming .cta .tv {
    width: 60%;
}


/* ==================================================
   SCREEN
================================================== */

.streaming .cta .screen {
    position: relative;
}

.streaming .cta .screen {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.streaming .cta .screen {
    overflow: hidden;
}

.streaming .cta .screen {
    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(233, 64, 27, .10),
            transparent 42%
        ),
        linear-gradient(
            rgba(8, 8, 8, .28),
            rgba(8, 8, 8, .62)
        ),
        url('../img/live.jpg')
        center center / cover
        no-repeat;
}

.streaming .cta .screen {
    border: 3px solid #111;
    border-radius: var(--radius-sm);
}

.streaming .cta .screen {
    box-shadow: var(--shadow-panel);
}


/* ==================================================
   SCREEN GRID
================================================== */

.streaming .cta .screen > .grid {
    position: absolute;
    inset: 0;
}

.streaming .cta .screen > .grid {
    background-image:
        linear-gradient(
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        );
}

.streaming .cta .screen > .grid {
    background-size: 34px 34px;
}

.streaming .cta .screen > .grid {
    opacity: .55;
}


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

.streaming .cta .screen > .logo {
    position: absolute;
    top: 50%;
    right: clamp(22px, 5%, 42px);
    left: auto;
    z-index: 1;
}

.streaming .cta .screen > .logo {
    width: clamp(110px, 32%, 175px);
    height: auto;
}

.streaming .cta .screen > .logo {
    filter: blur(.2px);
}

.streaming .cta .screen > .logo {
    opacity: .055;
    pointer-events: none;
    user-select: none;
}

.streaming .cta .screen > .logo {
    transform: translateY(-50%) scale(1.35);
}


/* ==================================================
   SCANLINES
================================================== */

.streaming .cta .screen::before {
    content: "";
}

.streaming .cta .screen::before {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.streaming .cta .screen::before {
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 3px,
            rgba(255, 255, 255, .018) 4px
        );
}

.streaming .cta .screen::before {
    pointer-events: none;
}


/* ==================================================
   LIVE
================================================== */

.streaming .cta .live {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 3;
}

.streaming .cta .live {
    height: 27px;
}

.streaming .cta .live {
    padding: 0 11px;
}

.streaming .cta .live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.streaming .cta .live {
    background: rgba(0, 0, 0, .46);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 50px;
}

.streaming .cta .live {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.streaming .cta .live span {
    font-family: 'bold-font';
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-white);
}


/* ==================================================
   LIVE DOT
================================================== */

.streaming .cta .live i {
    position: relative;
}

.streaming .cta .live i {
    width: 6px;
    height: 6px;
}

.streaming .cta .live i {
    background: var(--color-primary);
    border-radius: 50%;
}

.streaming .cta .live i {
    box-shadow: 0 0 10px rgba(233, 64, 27, .65);
}

.streaming .cta .live i::before {
    content: "";
}

.streaming .cta .live i::before {
    position: absolute;
    inset: -5px;
}

.streaming .cta .live i::before {
    border: 1px solid rgba(233, 64, 27, .45);
    border-radius: 50%;
}

.streaming .cta .live i::before {
    animation: ctaPulseLive 1.8s ease-out infinite;
}


/* ==================================================
   SIGNAL
================================================== */

.streaming .cta .signal {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
}

.streaming .cta .signal {
    width: 160px;
    height: 160px;
}

.streaming .cta .signal {
    transform: translate(-50%, -50%);
}


/* ==================================================
   SIGNAL DOT
================================================== */

.streaming .cta .signal .dot {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
}

.streaming .cta .signal .dot {
    width: 15px;
    height: 15px;
}

.streaming .cta .signal .dot {
    background: var(--gradient-primary);
    border-radius: 50%;
}

.streaming .cta .signal .dot {
    box-shadow: 0 0 25px rgba(233, 64, 27, .60);
}

.streaming .cta .signal .dot {
    transform: translate(-50%, -50%);
}

.streaming .cta .signal .dot::before,
.streaming .cta .signal .dot::after {
    content: "";
}

.streaming .cta .signal .dot::before,
.streaming .cta .signal .dot::after {
    position: absolute;
    inset: 0;
}

.streaming .cta .signal .dot::before,
.streaming .cta .signal .dot::after {
    border: 1px solid rgba(233, 64, 27, .45);
    border-radius: 50%;
}

.streaming .cta .signal .dot::before {
    animation: ctaPulseSignal 2.4s ease-out infinite;
}

.streaming .cta .signal .dot::after {
    animation: ctaPulseSignal 2.4s ease-out .8s infinite;
}


/* ==================================================
   SIGNAL WAVES
================================================== */

.streaming .cta .signal .wave {
    position: absolute;
    top: 50%;
    left: 50%;
}

.streaming .cta .signal .wave {
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
}

.streaming .cta .signal .wave {
    transform: translate(-50%, -50%);
}


/* ==================================================
   SIGNAL WAVE 1
================================================== */

.streaming .cta .signal .wave[class~="1"] {
    width: 54px;
    height: 54px;
}


/* ==================================================
   SIGNAL WAVE 2
================================================== */

.streaming .cta .signal .wave[class~="2"] {
    width: 98px;
    height: 98px;
}

.streaming .cta .signal .wave[class~="2"] {
    border-color: rgba(255, 255, 255, .14);
}


/* ==================================================
   SIGNAL WAVE 3
================================================== */

.streaming .cta .signal .wave[class~="3"] {
    width: 148px;
    height: 148px;
}

.streaming .cta .signal .wave[class~="3"] {
    border-color: rgba(255, 255, 255, .07);
}


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

.streaming .cta .screen > footer {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 19px;
    z-index: 3;
}

.streaming .cta .screen > footer {
    padding-top: 14px;
}

.streaming .cta .screen > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.streaming .cta .screen > footer {
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.streaming .cta .screen > footer > span {
    font-family: 'bold-font';
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(255, 255, 255, .58);
}

.streaming .cta .screen > footer > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.streaming .cta .screen > footer > div span {
    font-family: 'bold-font';
    font-size: 7px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .38);
}


/* ==================================================
   ON AIR DOT
================================================== */

.streaming .cta .screen > footer > div i {
    position: relative;
}

.streaming .cta .screen > footer > div i {
    width: 5px;
    height: 5px;
}

.streaming .cta .screen > footer > div i {
    background: var(--color-primary);
    border-radius: 50%;
}

.streaming .cta .screen > footer > div i {
    box-shadow: 0 0 8px rgba(233, 64, 27, .55);
}

.streaming .cta .screen > footer > div i::before {
    content: "";
}

.streaming .cta .screen > footer > div i::before {
    position: absolute;
    inset: -4px;
}

.streaming .cta .screen > footer > div i::before {
    border: 1px solid rgba(233, 64, 27, .40);
    border-radius: 50%;
}

.streaming .cta .screen > footer > div i::before {
    animation: ctaPulseOnAir 2s ease-out .35s infinite;
}


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

@media screen and (min-width: 1025px) {

    .streaming .cta .screen {
        transition: transform .7s cubic-bezier(.22, 1, .36, 1), box-shadow .7s ease;
    }

    .streaming .cta:hover .screen {
        box-shadow: 0 38px 85px rgba(0, 0, 0, .20), inset 0 0 0 1px rgba(255, 255, 255, .05);
    }

    .streaming .cta:hover .screen {
        transform: translateY(-4px);
    }

}


/* ==================================================
   PULSE ANIMATIONS
================================================== */

@keyframes ctaPulseLive {

    0% {
        opacity: .8;
        transform: scale(.75);
    }

    70% {
        opacity: 0;
        transform: scale(1.8);
    }

    100% {
        opacity: 0;
        transform: scale(1.8);
    }

}


@keyframes ctaPulseSignal {

    0% {
        opacity: .65;
        transform: scale(1);
    }

    70% {
        opacity: 0;
        transform: scale(3);
    }

    100% {
        opacity: 0;
        transform: scale(3);
    }

}


@keyframes ctaPulseOnAir {

    0% {
        opacity: .7;
        transform: scale(.8);
    }

    70% {
        opacity: 0;
        transform: scale(1.9);
    }

    100% {
        opacity: 0;
        transform: scale(1.9);
    }

}


/* ==================================================
   RESPONSIVE
================================================== */

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

    .streaming .cta {
        gap: 4em;
    }

}


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

    .streaming .cta {
        flex-direction: column;
        gap: 3em;
    }

    .streaming .cta .tv {
        width: min(100%, 520px);
    }

    .streaming .cta .tv {
        justify-self: start;
    }

}


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

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

    .streaming .cta {
        padding: 3.5em 2em;
    }

    .streaming .cta {
        gap: 2.8em;
    }

    .streaming .cta h3 {
        font-size: 2.5em;
    }

    .streaming .cta .content > p {
        max-width: 380px;
    }

    .streaming .cta .content > p {
        font-size: 13px;
    }

    .streaming .cta .screen {
        border-width: 5px;
        border-radius: 13px;
    }

    .streaming .cta .live {
        top: 15px;
        left: 15px;
    }

    .streaming .cta .screen > footer {
        left: 15px;
        right: 15px;
        bottom: 14px;
    }

    .streaming .cta .signal {
        width: 130px;
        height: 130px;
    }

    .streaming .cta .signal .wave[class~="1"] {
        width: 46px;
        height: 46px;
    }

    .streaming .cta .signal .wave[class~="2"] {
        width: 82px;
        height: 82px;
    }

    .streaming .cta .signal .wave[class~="3"] {
        width: 124px;
        height: 124px;
    }

}


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

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

    .streaming .cta .screen {
        transition: none;
    }

    .streaming .cta .live i::before,
    .streaming .cta .signal .dot::before,
    .streaming .cta .signal .dot::after,
    .streaming .cta .screen > footer > div i::before {
        animation: none;
    }

}
