/**
 * Fichier  : /pages/homepage/section-8/assets/css/style.css
 * Fonction : teaser vers la page À propos
 */


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

.about {
    position: relative;
}

.about {
    padding: 8em 3em;
}

.about {
    overflow: hidden;
}

.about {
    background: var(--main-background);
}

.about {
    color: var(--color-white);
}


/* ==================================================
   BACKGROUND GRID
================================================== */

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

.about::before {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about::before {
    background-image:
        linear-gradient(
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .035) 1px,
            transparent 1px
        );
}

.about::before {
    background-size: 72px 72px;
}

.about::before {
    -webkit-mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            #000 62%,
            rgba(0, 0, 0, .85) 72%,
            rgba(0, 0, 0, .45) 84%,
            transparent 100%
        );
    mask-image:
        linear-gradient(
            to bottom,
            #000 0%,
            #000 62%,
            rgba(0, 0, 0, .85) 72%,
            rgba(0, 0, 0, .45) 84%,
            transparent 100%
        );
}

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


/* ==================================================
   BACKGROUND GLOW
================================================== */

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

.about::after {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.about::after {
    background:
        radial-gradient(
            circle at 76% 45%,
            rgba(196, 18, 18, .14),
            transparent 42%
        ),
        linear-gradient(
            to bottom,
            transparent 60%,
            var(--color__3) 100%
        );
}

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


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

.about .inner {
    position: relative;
    z-index: 2;
}

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

.about .inner {
    margin: 0 auto;
}

.about .inner {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: clamp(5em, 9vw, 10em);
}


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

.about .content {
    max-width: 600px;
}


/* ==================================================
   KICKER
================================================== */

.about .kicker {
    display: block;
}

.about .kicker {
    font-family: 'bold-font';
    font-size: 8px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.about .kicker {
    color: var(--color-primary);
}


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

.about h2 {
    margin: .45em 0 0;
}

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

.about h2 {
    color: var(--color-white);
}


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

.about h2 em {
    font-style: normal;
}

.about h2 em {
    color: var(--color-primary);
}


/* ==================================================
   INTRO
================================================== */

.about .intro {
    max-width: 540px;
}

.about .intro {
    margin-top: 3em;
}

.about .intro p {
    margin: 0;
}

.about .intro p {
    font-family: 'content-font';
    font-size: 13px;
    line-height: 1.8;
}

.about .intro p {
    color: var(--color-text);
}

.about .intro p + p {
    margin-top: 1.4em;
}

.about .intro p + p {
    color: var(--color-text-muted);
}


/* ==================================================
   LINK
================================================== */

.about .link {
    width: fit-content;
    height: var(--button-height);
}

.about .link {
    box-sizing: border-box;
}

.about .link {
    margin-top: 3.5em;
}

.about .link {
    padding: 0 20px;
}

.about .link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2em;
    flex: 0 0 auto;
}

.about .link {
    background: var(--gradient-primary);
    border-radius: var(--button-radius);
    cursor: pointer;
}

.about .link {
    box-shadow:
        0 10px 26px rgba(233, 64, 27, .30),
        0 0 18px rgba(255, 123, 0, .16),
        inset 0 1px 0 rgba(255, 255, 255, .16);
}

.about .link {
    font-family: 'bold-font';
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .10em;
    text-decoration: none;
    color: var(--color-white);
}

.about .link {
    transition: transform var(--transition-soft), box-shadow var(--transition-soft);
}


/* ==================================================
   LINK ICON
================================================== */

.about .link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.about .link i {
    font-size: 18px;
    font-style: normal;
    line-height: 1;
    color: var(--color-white);
}

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


/* ==================================================
   VISUAL
================================================== */

.about .visual {
    position: relative;
}

.about .visual {
    min-height: clamp(560px, 43vw, 680px);
}


/* ==================================================
   PORTRAIT
================================================== */

.about .portrait {
    position: absolute;
}

.about .portrait {
    aspect-ratio: 4 / 5;
}

.about .portrait {
    margin: 0;
}

.about .portrait {
    overflow: hidden;
}

.about .portrait {
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--radius-lg);
}

.about .portrait {
    background: rgba(255, 255, 255, .03);
    box-shadow: var(--shadow-card);
}


/* ==================================================
   ARNAUD
================================================== */

.about .portrait.arnaud {
    top: 0;
    left: 0;
    z-index: 1;
}

.about .portrait.arnaud {
    width: clamp(270px, 24vw, 380px);
}


/* ==================================================
   TONY
================================================== */

.about .portrait.tony {
    right: 0;
    bottom: 0;
    z-index: 2;
}

.about .portrait.tony {
    width: clamp(245px, 22vw, 350px);
}


/* ==================================================
   PORTRAIT IMAGE
================================================== */

.about .portrait img {
    width: 100%;
    height: 100%;
}

.about .portrait img {
    display: block;
}

.about .portrait img {
    object-fit: cover;
}

.about .portrait img {
    filter: grayscale(.35) brightness(.72) saturate(.75);
}

.about .portrait img {
    transform: scale(1.015);
}

.about .portrait img {
    transition: transform var(--transition-card), filter var(--transition-card);
}


/* ==================================================
   PORTRAIT OVERLAY
================================================== */

.about .portrait::after {
    content: "";
}

.about .portrait::after {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.about .portrait::after {
    background: linear-gradient( 180deg, transparent 45%, rgba(17, 17, 17, .92) 100% );
}

.about .portrait::after {
    pointer-events: none;
}


/* ==================================================
   PORTRAIT CAPTION
================================================== */

.about .portrait figcaption {
    position: absolute;
    left: 1.6em;
    right: 1.6em;
    bottom: 1.6em;
    z-index: 2;
}

.about .portrait figcaption strong,
.about .portrait figcaption span {
    display: block;
}

.about .portrait figcaption strong {
    font-family: 'bold-font';
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.about .portrait figcaption strong {
    color: var(--color-white);
}

.about .portrait figcaption span {
    margin-top: .65em;
}

.about .portrait figcaption span {
    font-family: 'content-font';
    font-size: 8px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.about .portrait figcaption span {
    color: var(--color-text-muted);
}


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

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

    .about .link:hover {
        box-shadow:
            0 14px 32px rgba(233, 64, 27, .36),
            0 0 22px rgba(255, 123, 0, .20),
            inset 0 1px 0 rgba(255, 255, 255, .18);
    }

    .about .link:hover {
        transform: translateY(-2px);
    }

    .about .link:hover i {
        transform: translateX(4px);
    }

    .about .portrait:hover img {
        filter: grayscale(0) brightness(.88) saturate(.95);
    }

    .about .portrait:hover img {
        transform: scale(1.055);
    }

}


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

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

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

    .about .inner {
        grid-template-columns: 1fr;
    }

    .about .content {
        max-width: 760px;
    }

    .about .visual {
        width: min(100%, 760px);
        min-height: 600px;
    }

}


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

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

    .about {
        padding: 7em 0;
    }


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

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


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

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

    .about .inner {
        gap: 5em;
    }


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

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


    /* ==================================================
       INTRO
    ================================================== */

    .about .intro {
        margin-top: 2.5em;
    }

    .about .intro p {
        font-size: 12px;
        line-height: 1.75;
    }


    /* ==================================================
       LINK
    ================================================== */

    .about .link {
        margin-top: 3em;
    }


    /* ==================================================
       VISUAL
    ================================================== */

    .about .visual {
        width: 100%;
        min-height: auto;
    }

    .about .visual {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }


    /* ==================================================
       PORTRAIT
    ================================================== */

    .about .portrait,
    .about .portrait.arnaud,
    .about .portrait.tony {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        z-index: auto;
    }

    .about .portrait,
    .about .portrait.arnaud,
    .about .portrait.tony {
        width: 100%;
    }

    .about .portrait {
        aspect-ratio: 4 / 5;
    }

    .about .portrait {
        border-radius: var(--radius-md);
    }


    /* ==================================================
       PORTRAIT CAPTION
    ================================================== */

    .about .portrait figcaption {
        left: 1em;
        right: 1em;
        bottom: 1em;
    }

    .about .portrait figcaption strong {
        font-size: 10px;
    }

    .about .portrait figcaption span {
        font-size: 6px;
    }

}


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

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

    .about .link,
    .about .link i,
    .about .portrait img {
        transition: none !important;
    }

}
