/**
 * Fichier  : /pages/about-us/assets/css/founders.css
 * Fonction : présentation des fondateurs de Punchtime
 */


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

.founders {
    position: relative;
}

.founders {
    overflow: hidden;
}


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

.founders > .grid {
    width: 100%;
}

.founders > .grid {
    display: flex;
    gap: 0;
}


/* ==================================================
   FOUNDER
================================================== */

.founders .founder {
    position: relative;
}

.founders .founder {
    min-width: 0;
}

.founders .founder {
    flex: 1 1 50%;
}

.founders .founder {
    background: var(--color-white);
}

.founders .founder {
    transition: flex-basis 1s cubic-bezier(.22, 1, .36, 1), opacity .7s ease;
}

.founders .founder:first-child {
    border-right: 1px solid rgba(17, 17, 17, .09);
}


/* ==================================================
   COVER
================================================== */

.founders .cover {
    position: relative;
}

.founders .cover {
    height: clamp(320px, 30vw, 520px);
}

.founders .cover {
    overflow: hidden;
}

.founders .cover {
    background: #111;
}

.founders .cover {
    transition: background-color .4s ease;
}

/* ==================================================
   COVER SIGNATURE
================================================== */

.founders .cover::before {
    content: "";
}

.founders .cover::before {
    position: absolute;
    top: clamp(18px, 2.2vw, 34px);
    right: clamp(18px, 2.8vw, 44px);
    z-index: 2;
}

.founders .cover::before {
    width: clamp(76px, 9vw, 138px);
    height: clamp(52px, 6vw, 90px);
}

.founders .cover::before {
    border-top: 2px solid var(--color-primary);
    border-right: 2px solid var(--color-primary);
}

.founders .cover::before {
    opacity: .94;
    pointer-events: none;
}

.founders .cover::before {
    transform: translate(0, 0) scale(1);
    transform-origin: top right;
}

.founders .cover::before {
    transition:
        opacity .7s ease,
        transform 1.1s cubic-bezier(.22, 1, .36, 1),
        width 1.1s cubic-bezier(.22, 1, .36, 1),
        height 1.1s cubic-bezier(.22, 1, .36, 1);
}

/* ==================================================
   COVER CAPTION
================================================== */

.founders .cover .caption {
    position: absolute;
    top: clamp(31px, 3.5vw, 54px);
    right: clamp(31px, 4.1vw, 64px);
    z-index: 3;
}

.founders .cover .caption {
    width: clamp(100px, 11vw, 165px);
}

.founders .cover .caption {
    margin: 0;
}

.founders .cover .caption {
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.founders .cover .caption {
    text-align: right;
    text-transform: uppercase;
}

.founders .cover .caption {
    opacity: 1;
    pointer-events: none;
}

.founders .cover .caption {
    transform: translateY(0);
}

.founders .cover .caption {
    transition: opacity .7s ease .25s, transform .9s cubic-bezier(.22, 1, .36, 1) .25s;
}

.founders .cover .caption strong,
.founders .cover .caption span {
    display: block;
}

.founders .cover .caption strong {
    font-family: 'bold-font';
    font-size: 8px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .13em;
    color: var(--color-white);
}

.founders .cover .caption span {
    margin-top: .55em;
}

.founders .cover .caption span {
    font-family: 'content-font';
    font-size: 7px;
    line-height: 1.4;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .68);
}

/* ==================================================
   COVER IMAGE
================================================== */

.founders .cover img {
    width: 100%;
    height: 100%;
}

.founders .cover img {
    display: block;
}

.founders .cover img {
    object-fit: cover;
    object-position: center;
}

.founders .cover img {
    filter: saturate(.68) contrast(1.04) brightness(.80);
}

.founders .cover img {
    transform: scale(1.02);
}

.founders .cover img {
    transition: transform .75s cubic-bezier(.22, 1, .36, 1), filter .45s ease, opacity .4s ease;
}


/* ==================================================
   COVER OVERLAY
================================================== */

.founders .cover::after {
    content: "";
}

.founders .cover::after {
    position: absolute;
    inset: 0;
}

.founders .cover::after {
    background:
        linear-gradient(
            180deg,
            rgba(17, 17, 17, .04) 0%,
            rgba(17, 17, 17, .06) 55%,
            rgba(17, 17, 17, .32) 100%
        ),
        linear-gradient(
            120deg,
            rgba(17, 17, 17, .20),
            transparent 58%
        );
}

.founders .cover::after {
    pointer-events: none;
}

.founders .cover::after {
    transition: opacity .7s ease;
}


/* ==================================================
   BODY
================================================== */

.founders .body {
    position: relative;
}

.founders .body {
    padding: 7.8em clamp(2.5em, 5vw, 6em) clamp(4em, 6vw, 6em);
}

/* ==================================================
   PROFILE
================================================== */

.founders .profile {
    position: absolute;
    top: -100px;
    left: clamp(2.5em, 5vw, 6em);
    z-index: 5;
}

.founders .profile {
    width: 200px;
    height: 200px;
}

.founders .body > :not(.profile) {
    transition: opacity .7s ease;
}


/* ==================================================
   PROFILE RING
================================================== */

.founders .profile > div {
    position: relative;
    z-index: 0;
}

.founders .profile > div {
    width: 100%;
    height: 100%;
}

.founders .profile > div {
    padding: 6px;
}

.founders .profile > div {
    isolation: isolate;
}

.founders .profile > div {
    background: var(--color-white);
    border-radius: 50%;
}

.founders .profile > div {
    box-shadow: 0 0 0 1px rgba(17, 17, 17, .08), 0 20px 42px rgba(0, 0, 0, .16);
}

.founders .profile > div {
    transition: transform 1s cubic-bezier(.22, 1, .36, 1), box-shadow 1s cubic-bezier(.22, 1, .36, 1);
}


/* ==================================================
   PROFILE DYNAMIC BORDER
================================================== */

.founders .profile > div::before {
    content: "";
}

.founders .profile > div::before {
    position: absolute;
    inset: -8px;
    z-index: -1;
}

.founders .profile > div::before {
    border-radius: 50%;
}

.founders .profile > div::before {
    background:
        conic-gradient(
            from 215deg,
            transparent 0deg,
            transparent 245deg,
            var(--color-primary) 245deg,
            var(--color-primary-light) 302deg,
            transparent 302deg,
            transparent 360deg
        );
}

.founders .profile > div::before {
    opacity: .88;
}

.founders .profile > div::before {
    transition:
        inset 1.2s cubic-bezier(.22, 1, .36, 1),
        transform 1.2s cubic-bezier(.22, 1, .36, 1),
        opacity .6s ease;
}


/* ==================================================
   PROFILE WHITE BACKGROUND
================================================== */

.founders .profile > div::after {
    content: "";
}

.founders .profile > div::after {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.founders .profile > div::after {
    background: var(--color-white);
    border-radius: 50%;
}

.founders .profile > div::after {
    pointer-events: none;
}


/* ==================================================
   PROFILE IMAGE
================================================== */

.founders .profile img {
    position: relative;
    z-index: 1;
}

.founders .profile img {
    width: 100%;
    height: 100%;
}

.founders .profile img {
    display: block;
}

.founders .profile img {
    object-fit: cover;
    object-position: center;
}

.founders .profile img {
    border-radius: 50%;
}

.founders .profile img {
    filter: saturate(.88) contrast(1.03);
}

.founders .profile img {
    transition: transform 1s cubic-bezier(.22, 1, .36, 1), filter .7s ease, opacity .7s ease;
}


/* ==================================================
   IDENTITY
================================================== */

.founders .identity {
    position: relative;
}


/* ==================================================
   NAME
================================================== */

.founders .identity h3 {
    margin: 0;
}

.founders .identity h3 {
    font-family: 'bold-font';
    font-size: clamp(42px, 4vw, 64px);
    font-weight: 400;
    line-height: .92;
    text-transform: uppercase;
    letter-spacing: -.045em;
    color: #111;
}

.founders .firstname,
.founders .lastname {
    display: block;
}

.founders .firstname {
    margin-bottom: .12em;
}

.founders .firstname {
    font-family: 'content-font';
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-transform: capitalize;
    letter-spacing: 0;
}

.founders .lastname {
    line-height: .88;
}


/* ==================================================
   ROLE
================================================== */

.founders .title {
    margin-top: .8em;
}

.founders .title {
    display: block;
}

.founders .title {
    font-family: 'bold-font';
    font-size: 10px;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--color-primary);
}


/* ==================================================
   EXPERTISE
================================================== */

.founders .expertise {
    margin-top: 2.2em;
}

.founders .expertise {
    display: flex;
    flex-wrap: wrap;
    gap: .55em;
}

.founders .expertise span {
    padding: .7em 1em;
}

.founders .expertise span {
    background: rgba(17, 17, 17, .04);
    border: 1px solid rgba(17, 17, 17, .07);
    border-radius: var(--radius-pill);
}

.founders .expertise span {
    font-family: 'bold-font';
    font-size: 7px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(17, 17, 17, .58);
}

.founders .expertise span {
    transition: background .45s ease, border-color .45s ease, color .45s ease;
}


/* ==================================================
   TEXT
================================================== */

.founders .text {
    max-width: 520px;
}

.founders .text {
    margin: 2em 0 0;
}

.founders .text {
    font-family: 'content-font';
    font-size: 12px;
    line-height: 1.7;
    color: rgba(17, 17, 17, .58);
}


/* ==================================================
   MORE
================================================== */

.founders .more {
    max-width: 520px;
}

.founders .more {
    margin-top: 1.4em;
}

.founders .more-toggle {
    padding: 0;
}

.founders .more-toggle {
    display: inline-flex;
    align-items: center;
    gap: .8em;
}

.founders .more-toggle {
    background: none;
    border: 0;
    cursor: pointer;
}

.founders .more-toggle {
    font-family: 'bold-font';
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #111;
}

.founders .more-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 5px;
}

.founders .more-icon {
    position: relative;
}

.founders .more-icon {
    width: 18px;
    height: 18px;
}

.founders .more-icon {
    flex: 0 0 18px;
}

.founders .more-icon {
    border: 1px solid rgba(17, 17, 17, .16);
    border-radius: 50%;
}

.founders .more-icon {
    transition:
        border-color .4s ease,
        background-color .4s ease,
        transform .6s cubic-bezier(.22, 1, .36, 1);
}

.founders .more-icon::before,
.founders .more-icon::after {
    content: "";
}

.founders .more-icon::before,
.founders .more-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
}

.founders .more-icon::before,
.founders .more-icon::after {
    width: 7px;
    height: 1px;
}

.founders .more-icon::before,
.founders .more-icon::after {
    background: currentColor;
}

.founders .more-icon::before,
.founders .more-icon::after {
    transform: translate(-50%, -50%);
}

.founders .more-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.founders .more-icon::after {
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.founders .more.is-open .more-icon {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.founders .more.is-open .more-icon {
    color: var(--color-white);
}

.founders .more.is-open .more-icon {
    transform: rotate(180deg);
}

.founders .more.is-open .more-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.founders .more-panel {
    height: 0;
}

.founders .more-panel {
    overflow: hidden;
}

.founders .more-panel {
    visibility: hidden;
}

.founders .more-panel {
    transition: height .75s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .75s;
}

.founders .more.is-open .more-panel {
    visibility: visible;
}

.founders .more.is-open .more-panel {
    transition: height .75s cubic-bezier(.22, 1, .36, 1), visibility 0s linear 0s;
}

.founders .more-content {
    padding-top: 1.5em;
}

.founders .more-content {
    font-family: 'content-font';
    font-size: 12px;
    line-height: 1.7;
    color: rgba(17, 17, 17, .58);
}

.founders .more-content {
    opacity: 0;
}

.founders .more-content {
    transform: translateY(-8px);
}

.founders .more-content {
    transition: opacity .4s ease, transform .6s cubic-bezier(.22, 1, .36, 1);
}

.founders .more.is-open .more-content {
    opacity: 1;
}

.founders .more.is-open .more-content {
    transform: translateY(0);
}

.founders .more-content > :first-child {
    margin-top: 0;
}

.founders .more-content > :last-child {
    margin-bottom: 0;
}


/* ==================================================
   STATS
================================================== */

.founders .stats {
    margin-top: 2.6em;
}

.founders .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.founders .stats {
    border-top: 1px solid rgba(17, 17, 17, .08);
    border-bottom: 1px solid rgba(17, 17, 17, .08);
}


/* ==================================================
   STAT
================================================== */

.founders .stat {
    min-width: 0;
}

.founders .stat {
    padding: 1.7em 1.3em;
}

.founders .stat:first-child {
    padding-left: 0;
}

.founders .stat:not(:last-child) {
    border-right: 1px solid rgba(17, 17, 17, .08);
}


/* ==================================================
   STAT VALUE
================================================== */

.founders .stat strong {
    display: block;
}

.founders .stat strong {
    font-family: 'bold-font';
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -.035em;
    color: #111;
}


/* ==================================================
   STAT LABEL
================================================== */

.founders .stat span {
    margin-top: .65em;
}

.founders .stat span {
    display: block;
}

.founders .stat span {
    font-family: 'content-font';
    font-size: 11px;
    line-height: 1.4;
    color: rgba(17, 17, 17, .46);
}


/* ==================================================
   ACTIONS
================================================== */

.founders .actions {
    margin-top: 2.6em;
}

.founders .actions {
    display: flex;
    align-items: center;
}


/* ==================================================
   LINKEDIN
================================================== */

.founders .linkedin {
    min-height: var(--button-height);
}

.founders .linkedin {
    padding: 0 1.35em;
}

.founders .linkedin {
    display: inline-flex;
    align-items: center;
    gap: .8em;
}

.founders .linkedin {
    background: linear-gradient( 135deg, #0a66c2 0%, #0077b5 52%, #00a0dc 100% );
}

.founders .linkedin {
    background-size: 160% 160%;
    background-position: 0% 50%;
}

.founders .linkedin {
    border: 1px solid rgba(10, 102, 194, .42);
    border-radius: 999px;
}

.founders .linkedin {
    box-shadow: 0 10px 26px rgba(10, 102, 194, .22);
}

.founders .linkedin {
    text-decoration: none;
    color: var(--color-white);
}

.founders .linkedin {
    transition:
        background-position .8s cubic-bezier(.22, 1, .36, 1),
        box-shadow .7s cubic-bezier(.22, 1, .36, 1),
        transform .7s cubic-bezier(.22, 1, .36, 1);
}


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

.founders .linkedin .logo {
    width: 24px;
    height: 24px;
}

.founders .linkedin .logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.founders .linkedin .logo {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 5px;
}

.founders .linkedin .logo {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--color-white);
}


/* ==================================================
   LINKEDIN LABEL
================================================== */

.founders .linkedin .label {
    font-family: 'bold-font';
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .13em;
}


/* ==================================================
   LINKEDIN ARROW
================================================== */

.founders .linkedin .arrow {
    width: 14px;
    height: 14px;
}

.founders .linkedin .arrow {
    margin-left: .25em;
}

.founders .linkedin .arrow {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.founders .linkedin .arrow {
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}


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

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


    /* ==================================================
       GRID DYNAMIC
    ================================================== */

    .founders > .grid:hover .founder,
    .founders > .grid:focus-within .founder {
        flex-basis: 47%;
    }

    .founders > .grid:hover .founder:hover,
    .founders > .grid .founder:focus-within,
    .founders > .grid .founder.is-hovered {
        flex-basis: 53%;
    }


    /* ==================================================
       INACTIVE FOUNDER
    ================================================== */

    .founders > .grid:hover .founder:not(:hover) .cover,
    .founders > .grid:focus-within .founder:not(:focus-within) .cover {
        background: var(--color-white);
    }

    .founders > .grid:hover .founder:not(:hover) .cover img,
    .founders > .grid:focus-within .founder:not(:focus-within) .cover img {
        filter: blur(3px) saturate(.28) contrast(.92) brightness(1.06);
    }

    .founders > .grid:hover .founder:not(:hover) .cover img,
    .founders > .grid:focus-within .founder:not(:focus-within) .cover img {
        opacity: .42;
    }

    .founders > .grid:hover .founder:not(:hover) .cover img,
    .founders > .grid:focus-within .founder:not(:focus-within) .cover img {
        transform: scale(1.06);
    }

    .founders > .grid:hover .founder:not(:hover) .cover::after,
    .founders > .grid:focus-within .founder:not(:focus-within) .cover::after {
        opacity: .22;
    }

    .founders > .grid:hover .founder:not(:hover) .cover::before,
    .founders > .grid:hover .founder:not(:hover) .cover .caption,
    .founders > .grid:focus-within .founder:not(:focus-within) .cover::before,
    .founders > .grid:focus-within .founder:not(:focus-within) .cover .caption {
        opacity: .28;
    }

    .founders > .grid:hover .founder:not(:hover) .body > :not(.profile),
    .founders > .grid:focus-within .founder:not(:focus-within) .body > :not(.profile) {
        opacity: .45;
    }

    .founders > .grid:hover .founder:not(:hover) .profile img,
    .founders > .grid:focus-within .founder:not(:focus-within) .profile img {
        opacity: .42;
    }


    /* ==================================================
       COVER
    ================================================== */

    .founders .founder:hover .cover img,
    .founders .founder.is-hovered .cover img {
        filter: saturate(.78) contrast(1.05) brightness(.84);
    }

    .founders .founder:hover .cover img,
    .founders .founder.is-hovered .cover img {
        transform: scale(1.045);
    }

    .founders .founder:hover .cover::before,
    .founders .founder.is-hovered .cover::before {
        width: clamp(96px, 11vw, 168px);
        height: clamp(66px, 7.5vw, 112px);
    }

    .founders .founder:hover .cover::before,
    .founders .founder.is-hovered .cover::before {
        opacity: 1;
    }


    /* ==================================================
       PROFILE
    ================================================== */

    .founders .founder:hover .profile > div,
    .founders .founder.is-hovered .profile > div {
        box-shadow:
            0 0 0 1px rgba(17, 17, 17, .08),
            0 24px 48px rgba(0, 0, 0, .18),
            0 0 28px rgba(196, 18, 18, .10);
    }

    .founders .founder:hover .profile > div,
    .founders .founder.is-hovered .profile > div {
        transform: translateY(-6px);
    }

    .founders .founder:hover .profile > div::before,
    .founders .founder.is-hovered .profile > div::before {
        inset: -12px;
    }

    .founders .founder:hover .profile > div::before,
    .founders .founder.is-hovered .profile > div::before {
        opacity: 1;
    }

    .founders .founder:hover .profile > div::before,
    .founders .founder.is-hovered .profile > div::before {
        transform: rotate(18deg);
    }

    .founders .founder:hover .profile img,
    .founders .founder.is-hovered .profile img {
        transform: scale(1.035);
    }


    /* ==================================================
       LINKEDIN
    ================================================== */

    .founders .linkedin:hover {
        background-position: 100% 50%;
    }

    .founders .linkedin:hover {
        box-shadow: 0 15px 34px rgba(10, 102, 194, .34);
    }

    .founders .linkedin:hover {
        transform: translateY(-2px);
    }

    .founders .linkedin:hover .arrow {
        transform: translate(3px, -3px);
    }

}


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

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

    /* ==================================================
       COVER
    ================================================== */

    .founders .cover {
        height: 300px;
    }


    /* ==================================================
       BODY
    ================================================== */

    .founders .body {
        padding: 6.3em 2.5em 4em;
    }


    /* ==================================================
       PROFILE
    ================================================== */

    .founders .profile {
        top: -78px;
        left: 2.5em;
    }

    .founders .profile {
        width: 156px;
        height: 156px;
    }


    /* ==================================================
       NAME
    ================================================== */

    .founders .identity h3 {
        font-size: clamp(36px, 4.8vw, 48px);
    }

}


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

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

    .founders {
        padding-top: 5em;
    }


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

    .founders > .grid {
        flex-direction: column;
    }

    .founders .founder {
        flex-basis: auto;
    }


    /* ==================================================
       FOUNDER
    ================================================== */

    .founders .founder:first-child {
        border-right: 0;
        border-bottom: 1px solid rgba(17, 17, 17, .10);
    }


    /* ==================================================
       COVER
    ================================================== */

    .founders .cover {
        height: 250px;
    }

    .founders .cover img {
        filter: saturate(.72) contrast(1.04) brightness(.80);
    }

    /* ==================================================
       BODY
    ================================================== */

    .founders .body {
        padding: 6.3em 1.6em 3em;
    }


    /* ==================================================
       PROFILE
    ================================================== */

    .founders .profile {
        top: -72px;
        left: 1.6em;
    }

    .founders .profile {
        width: 144px;
        height: 144px;
    }


    /* ==================================================
       NAME
    ================================================== */

    .founders .identity h3 {
        font-size: clamp(38px, 12vw, 50px);
    }


    /* ==================================================
       TEXT
    ================================================== */

    .founders .text {
        max-width: 100%;
    }

    .founders .more {
        max-width: 100%;
    }


    /* ==================================================
       STATS
    ================================================== */

    .founders .stats {
        grid-template-columns: 1fr;
    }

    .founders .stat {
        padding: 1.2em 0;
    }

    .founders .stat:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid rgba(17, 17, 17, .08);
    }


    /* ==================================================
       ACTIONS
    ================================================== */

    .founders .actions {
        align-items: stretch;
    }

    .founders .linkedin {
        width: 100%;
    }

    .founders .linkedin .label {
        flex: 1;
    }

}
