/**
 * Fichier  : /pages/sport-business/media/assets/css/cards.css
 * Fonction : niveaux d'accompagnement et cartes de prestations
 */


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

.media .cards {
    box-sizing: border-box;
}

.media .cards {
    padding-right: var(--media-padding-inline);
    padding-left: var(--media-padding-inline);
}


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

.cards > header {
    margin-bottom: 1em;
}

.cards > header {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.cards > header > span {
    font-family: 'bold-font';
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(17, 17, 17, .42);
}

.cards > header p {
    max-width: 620px;
    margin: 0;
}

.cards > header p {
    font-family: 'content-font';
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(17, 17, 17, .58);
}


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

.cards .grid {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(0, 1fr);
    gap: 1em;
}


/* ==================================================
   ITEM
================================================== */

.cards .item {
    position: relative;
    overflow: hidden;
}

.cards .item {
    min-height: 520px;
}

.cards .item {
    box-sizing: border-box;
    padding:
        2em
        clamp(1.5em, 2.3vw, 2.6em);
}

.cards .item {
    display: flex;
    flex-direction: column;
}

.cards .item {
    background: var(--color-white);
}

.cards .item {
    box-shadow: var(--shadow-card);
}


/* ==================================================
   TOP
================================================== */

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

.cards .top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cards .top {
    font-family: 'bold-font';
    font-size: 8px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(17, 17, 17, .34);
}

.cards .top > i {
    width: 28px;
    height: 1px;
}

.cards .top > i {
    display: block;
}

.cards .top > i {
    background: var(--color-primary);
}

.cards .top > small {
    margin-left: auto;
}

.cards .top > small {
    font-family: 'bold-font';
    font-size: 7px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: rgba(17, 17, 17, .34);
}


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

.cards .item > h3 {
    margin: 0 0 .55em;
}

.cards .item > h3 {
    font-family: 'bold-font';
    font-size: clamp(27px, 2.5vw, 40px);
    font-weight: 400;
    line-height: .94;
    text-transform: uppercase;
    letter-spacing: -.035em;
    color: #111;
}

.cards .item > h3 em {
    font-style: normal;
    color: var(--color-primary);
}

.cards .item--featured > h3 .plus {
    display: inline-block;
}

.cards .item--featured > h3 .plus {
    font-family: 'title-font';
    font-size: 1.35em;
    font-weight: 400;
    line-height: .6;
    color: var(--color-primary);
}

.cards .item--featured > h3 .plus {
    vertical-align: -.08em;
}


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

.cards .item > p {
    max-width: 330px;
}

.cards .item > p {
    margin: 0 0 2.2em;
}

.cards .item > p {
    font-family: 'content-font';
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(17, 17, 17, .52);
}


/* ==================================================
   SERVICES
================================================== */

.cards .services {
    margin-bottom: 2em;
}


/* ==================================================
   SERVICE
================================================== */

.cards .service {
    border-top: 1px solid rgba(17, 17, 17, .08);
}

.cards .service:last-child {
    border-bottom: 1px solid rgba(17, 17, 17, .08);
}


/* ==================================================
   TRIGGER
================================================== */

.cards .trigger {
    width: 100%;
}

.cards .trigger {
    padding: 1.6em 0;
}

.cards .trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
}

.cards .trigger {
    background: none;
    border: 0;
}

.cards .trigger {
    cursor: pointer;
}

.cards .trigger {
    font-family: 'bold-font';
    font-size: 9px;
    font-weight: 400;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: rgba(17, 17, 17, .58);
}


/* ==================================================
   SERVICE ICON
================================================== */

.cards .trigger svg {
    flex: 0 0 auto;
}

.cards .trigger svg {
    width: 14px;
    height: 14px;
}

.cards .trigger svg {
    color: var(--color-primary);
}

.cards .trigger svg {
    transform: rotate(0deg);
}

.cards .trigger svg {
    transition:
        transform .45s cubic-bezier(.22, 1, .36, 1);
}

.cards .service.is-open .trigger svg {
    transform: rotate(90deg);
}


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

.cards .description {
    display: grid;
    grid-template-rows: 0fr;
}

.cards .description {
    opacity: 0;
}

.cards .description {
    transition:
        grid-template-rows .55s cubic-bezier(.22, 1, .36, 1),
        opacity .35s ease;
}

.cards .service.is-open .description {
    grid-template-rows: 1fr;
}

.cards .service.is-open .description {
    opacity: 1;
}

.cards .description > div {
    overflow: hidden;
}

.cards .description p {
    max-width: 560px;
}

.cards .description p {
    margin: 0;
}

.cards .description p {
    padding: 0 2.5em 1.4em 0;
}

.cards .description p {
    font-family: 'content-font';
    font-size: 12px;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(17, 17, 17, .52);
}

.cards .description p a {
    color: var(--color-primary);
}


/* ==================================================
   BONUS
================================================== */

.cards .description .bonus {
    margin: .8em 0 1.4em;
}

.cards .description .bonus {
    padding: 1.2em 1.4em;
}

.cards .description .bonus {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.cards .description .bonus {
    background: rgba(17, 17, 17, .025);
}

.cards .description .bonus {
    border: 1px solid rgba(17, 17, 17, .08);
    border-left: 2px solid var(--color-primary);
}

.cards .description .bonus span {
    flex: 0 0 auto;
}

.cards .description .bonus span {
    font-family: 'bold-font';
    font-size: 8px;
    font-weight: 400;
    line-height: 1.65;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: var(--color-primary);
}

.cards .description .bonus p {
    max-width: none;
    margin: 0;
    padding: 0;
}


/* ==================================================
   FEATURED BONUS
================================================== */

.cards .item--featured .description .bonus {
    background: rgba(255, 255, 255, .035);
}

.cards .item--featured .description .bonus {
    border-color: rgba(255, 255, 255, .10);
    border-left-color: var(--color-primary);
}

.cards .item--featured .description .bonus p {
    color: rgba(255, 255, 255, .62);
}


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

.cards .item > .footer {
    margin-top: auto;
    padding-top: 1.6em;
}

.cards .item > .footer {
    display: flex;
    align-items: center;
}

.cards .item > .footer {
    font-family: 'bold-font';
    font-size: 9px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #111;
}


/* ==================================================
   FEATURED
================================================== */

.cards .item--featured {
    background: #111;
}

.cards .item--featured {
    color: var(--color-white);
}

.cards .item--featured::before {
    content: "";
}

.cards .item--featured::before {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cards .item--featured::before {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(220, 25, 25, .22),
            transparent 48%
        );
}

.cards .item--featured::before {
    pointer-events: none;
}

.cards .item--featured > * {
    position: relative;
    z-index: 1;
}

.cards .item--featured .top,
.cards .item--featured .top > small {
    color: rgba(255, 255, 255, .45);
}

.cards .item--featured > h3,
.cards .item--featured > .footer {
    color: var(--color-white);
}

.cards .item--featured > p {
    color: rgba(255, 255, 255, .6);
}


/* ==================================================
   FEATURED SERVICES
================================================== */

.cards .item--featured .service {
    border-color: rgba(255, 255, 255, .10);
}

.cards .item--featured .trigger {
    color: rgba(255, 255, 255, .68);
}

.cards .item--featured .trigger svg {
    color: var(--color-primary);
}

.cards .item--featured .description p {
    color: rgba(255, 255, 255, .55);
}


/* ==================================================
   MODES
================================================== */

.cards .modes {
    margin-top: .3em;
}

.cards .modes {
    display: flex;
    flex-wrap: wrap;
    gap: .6em;
}

.cards .modes span {
    padding: .65em 1em;
}

.cards .modes span {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
}

.cards .modes span {
    font-family: 'bold-font';
    font-size: 7px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .72);
}


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

.cards > footer {
    padding-top: 2em;
}

.cards > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
}


/* ==================================================
   LEVERS
================================================== */

.cards .levers {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25em;
}

.cards .levers span {
    font-family: 'bold-font';
    font-size: 8px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(17, 17, 17, .36);
}

.cards .levers span:not(:last-child)::after {
    content: '—';
}

.cards .levers span:not(:last-child)::after {
    margin-left: 1.25em;
}

.cards .levers span:not(:last-child)::after {
    color: rgba(17, 17, 17, .16);
}


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

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

    .cards .trigger {
        transition: color .3s ease;
    }

    .cards .trigger:hover {
        color: var(--color-primary);
    }

    .cards .item--featured .trigger:hover {
        color: var(--color-white);
    }

}


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

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

    .cards .grid {
        grid-template-columns: 1fr;
    }

    .cards .item {
        min-height: 0;
    }

    .cards .item {
        padding: 2em;
    }

    .cards .item {
        border-right: 0;
        border-bottom: 1px solid rgba(17, 17, 17, .11);
    }

    .cards .item:last-child {
        border-bottom: 0;
    }

    .cards > footer {
        display: none;
    }

}


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

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

    .cards .item {
        padding: 1.7em 1.4em;
    }

    .cards .top {
        margin-bottom: 2.4em;
    }

    .cards .top > small {
        display: none;
    }

    .cards .item > h3 {
        font-size: 32px;
    }

    .cards .description p {
        padding-right: 1.5em;
    }

    .cards .levers {
        gap: .8em 1em;
    }

    .cards .levers span:not(:last-child)::after {
        margin-left: 1em;
    }

}