/**
 * Fichier  : /pages/about-us/assets/css/founders-experience.css
 * Fonction : mise en forme des biographies détaillées des fondateurs
 */


/* ==================================================
   BIOGRAPHY
================================================== */

.bio {
    --bio-accent: var(--color-primary);
    --bio-text: #262626;
    --bio-line: rgba(17, 17, 17, .11);
}

.bio {
    counter-reset: bio-chapter;
}

.bio {
    color: var(--bio-text);
}

.bio p {
    margin: 0 0 1.15em;
}

.bio p {
    font-size: 13px;
    line-height: 1.75;
    text-align: justify;
    text-wrap: pretty;
}

.bio em {
    font-style: italic;
}

/* ==================================================
   CHAPTERS
================================================== */

.bio .chapter {
    counter-increment: bio-chapter;
}

.bio .chapter {
    position: relative;
}

.bio .chapter {
    margin-left: .5em;
}

.bio .chapter {
    padding: 0 0 2.5em 3.25em;
}

.bio .chapter:not(:last-child)::after {
    content: "";
}

.bio .chapter:not(:last-child)::after {
    position: absolute;
    top: 2.35em;
    bottom: .35em;
    left: 1em;
}

.bio .chapter:not(:last-child)::after {
    width: 1px;
}

.bio .chapter:not(:last-child)::after {
    background: linear-gradient(to bottom, var(--bio-line), rgba(17, 17, 17, .03));
}

.bio .chapter::before {
    content: counter(bio-chapter, decimal-leading-zero);
}

.bio .chapter::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.bio .chapter::before {
    width: 2em;
    height: 2em;
}

.bio .chapter::before {
    display: grid;
    place-items: center;
}

.bio .chapter::before {
    background: #111;
    border: 1px solid #111;
    border-radius: 50%;
}

.bio .chapter::before {
    font-family: 'bold-font';
    font-size: 12px;
    line-height: 1;
    letter-spacing: -.02em;
    color: #fff;
}

.bio .chapter h4 {
    margin: 0 0 1.25em;
}

.bio .chapter h4 {
    padding-top: .25em;
}

.bio .chapter h4 {
    font-family: 'bold-font';
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .045em;
    color: #111;
}

.bio .chapter h4::after {
    content: "";
}

.bio .chapter h4::after {
    width: 2.5em;
    height: 2px;
}

.bio .chapter h4::after {
    margin-top: .8em;
}

.bio .chapter h4::after {
    display: block;
}

.bio .chapter h4::after {
    background: var(--bio-accent);
}


/* ==================================================
   CLOSING
================================================== */

.bio .chapter.closing::before {
    content: 'P';
}

.bio .chapter.closing::before {
    background-color: var(--bio-accent);
    border-color: var(--bio-accent);
    box-shadow: var(--shadow-focus);
}

.bio .chapter.closing h4 {
    color: var(--bio-accent);
}


/* ==================================================
   LAST ELEMENTS
================================================== */

.bio .chapter:last-child,
.bio .chapter > :last-child {
    margin-bottom: 0;
}

.bio .chapter:last-child,
.bio .chapter > :last-child {
    padding-bottom: 0;
}


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

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

    .bio p {
        font-size: 12px;
        line-height: 1.7;
    }

    .bio .chapter {
        padding-left: 2.7em;
        padding-bottom: 2.15em;
    }

    .bio .chapter::before {
        width: 1.85em;
        height: 1.85em;
    }

    .bio .chapter::before {
        font-size: 11px;
    }

    .bio .chapter:not(:last-child)::after {
        top: 2.15em;
        left: .92em;
    }

    .bio .chapter h4 {
        margin-bottom: 1.1em;
    }

    .bio .chapter h4 {
        font-size: 12px;
    }

}
