/* =====================================================
   BEGO
   À PROPOS DE BEGO
===================================================== */


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

.bego-about {

    position: relative;

    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin: 0 auto;

    padding: 100px 0;
}


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

.bego-about__header {

    max-width: 900px;

    margin: 0 0 70px;
}


.bego-about__eyebrow {

    display: inline-block;

    margin-bottom: 24px;

    color: var(--bego-black-60);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.18em;
}


.bego-about__header h2 {

    margin: 0;

    color: var(--bego-black);

    font-size: clamp(
        60px,
        8vw,
        110px
    );

    line-height: 0.88;

    letter-spacing: -0.065em;

    font-weight: 650;
}


.bego-about__header h2 span {

    display: block;

    color: var(--bego-black-60);
}


/* =====================================================
   CONTENU PRINCIPAL
===================================================== */

.bego-about__main {

    position: relative;

    display: block;

    width: 100%;

    /*
       IMPORTANT:
       La hauteur doit venir du contenu.
    */
    min-height: 0;

    height: auto;

    overflow: hidden;

    border-radius: 32px;

    background: var(--bego-white);
}


/* =====================================================
   CONTENU
===================================================== */

.bego-about__content {

    position: relative;

    z-index: 5;

    display: flex;

    align-items: flex-start;

    width: 52%;

    /*
       IMPORTANT:
       Aucun min-height qui force un espace vide.
    */
    min-height: 0;

    height: auto;

    padding:
        90px
        0
        35px
        70px;
}


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

.bego-about__text-box {

    position: relative;

    width: 100%;

    max-width: 520px;
}


/* =====================================================
   NÚMERO
===================================================== */

.bego-about__number {

    display: none;
}


/* =====================================================
   TÍTULO PRINCIPAL
===================================================== */

.bego-about__text-box h3 {

    margin: 0;

    color: var(--bego-black);

    font-size: clamp(
        52px,
        6vw,
        88px
    );

    line-height: 0.90;

    letter-spacing: -0.065em;

    font-weight: 650;
}


/* =====================================================
   TEXTO PRINCIPAL
===================================================== */

.bego-about__text {

    width: 100%;

    max-width: 520px;
}


/* =====================================================
   PARAGRAPHES
===================================================== */

.bego-about__text p {

    max-width: 440px;

    margin: 28px 0 0;

    color: var(--bego-black-60);

    font-size: 16px;

    line-height: 1.7;
}


/* =====================================================
   LÍNEA ANTES DEL PRIMER TEXTO
===================================================== */

.bego-about__text p:first-of-type::before {

    content: "";

    display: block;

    width: 64px;

    height: 2px;

    margin-bottom: 25px;

    background: var(--bego-black);
}


/* =====================================================
   CONTENIDO PRINCIPAL — COLLAPSED
===================================================== */

.bego-about__text--collapsed {

    position: relative;

    max-height: 390px;

    overflow: hidden;

    transition:
        max-height 0.65s cubic-bezier(
            .22,
            1,
            .36,
            1
        );
}


/* =====================================================
   DEGRADADO TEXTO PRINCIPAL
===================================================== */

.bego-about__text--collapsed::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    height: 110px;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0),
            var(--bego-white)
        );

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* =====================================================
   CONTENIDO PRINCIPAL — EXPANDED
===================================================== */

.bego-about__text--expanded {

    max-height: 1200px;
}


.bego-about__text--expanded::after {

    opacity: 0;

    visibility: hidden;
}


/* =====================================================
   BOTÓN PRINCIPAL
===================================================== */

.bego-about__text-toggle {

    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    margin-top: 28px;

    padding:
        8px
        8px
        8px
        22px;

    border: none;

    border-radius: 999px;

    background: var(--bego-black);

    color: var(--bego-white);

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: -0.01em;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


.bego-about__text-toggle:hover {

    transform: translateY(-3px);

    opacity: 0.90;
}


/* =====================================================
   ICONO PRINCIPAL
===================================================== */

.bego-about__text-toggle-icon {

    width: 42px;

    height: 42px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--bego-white);

    color: var(--bego-black);

    font-size: 20px;

    line-height: 1;

    transition:
        transform 0.35s ease;
}


/* =====================================================
   ICONO PRINCIPAL ABIERTO
===================================================== */

.bego-about__text-box.is-open
.bego-about__text-toggle-icon {

    transform: rotate(45deg);
}


/* =====================================================
   TEXTO BOTÓN PRINCIPAL
===================================================== */

.bego-about__text-box.is-open
.bego-about__text-toggle
span:first-child {

    font-size: 0;
}


.bego-about__text-box.is-open
.bego-about__text-toggle
span:first-child::after {

    content: "Voir moins";

    font-size: 13px;
}


/* =====================================================
   LINK — ANTIGUO / COMPATIBILIDAD
===================================================== */

.bego-about__link {

    display: inline-flex;

    align-items: center;

    gap: 18px;

    margin-top: 35px;

    padding:
        8px
        8px
        8px
        24px;

    border-radius: 999px;

    background: var(--bego-black);

    color: var(--bego-white);

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform var(--transition),
        opacity var(--transition);
}


.bego-about__link:hover {

    transform: translateY(-4px);

    opacity: 0.92;
}


/* =====================================================
   FLECHA
===================================================== */

.bego-about__arrow {

    width: 44px;

    height: 44px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--bego-white);

    color: var(--bego-black);

    font-size: 19px;
}


/* =====================================================
   VALEURS / PILIERS
===================================================== */

.bego-about__values {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    /*
       ESPACIO ENTRE LE CONTENU PRINCIPAL
       ET LES PILIERS
    */
    margin-top: 35px;

    border-top:
        1px solid
        rgba(
            0,
            0,
            0,
            0.10
        );

    border-bottom:
        1px solid
        rgba(
            0,
            0,
            0,
            0.10
        );
}


/* =====================================================
   CARTE PILIER
===================================================== */

.bego-about__value {

    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 250px;

    padding:
        35px
        30px;

    overflow: hidden;

    transition:
        min-height 0.45s ease,
        background 0.3s ease;
}


/* =====================================================
   SÉPARATION DES CARTES
===================================================== */

.bego-about__value
+ .bego-about__value {

    border-left:
        1px solid
        rgba(
            0,
            0,
            0,
            0.10
        );
}


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

.bego-about__value-header {

    position: relative;

    z-index: 2;
}


/* =====================================================
   NUMÉRO CARTE
===================================================== */

.bego-about__value-number {

    display: block;

    margin-bottom: 35px;

    color: var(--bego-black-60);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.16em;
}


/* =====================================================
   TITRE CARTE
===================================================== */

.bego-about__value h3 {

    margin: 0;

    color: var(--bego-black);

    font-size: 32px;

    line-height: 1;

    letter-spacing: -0.04em;

    font-weight: 650;
}


.bego-about__value h3 span {

    display: inline;
}


/* =====================================================
   TEXTO CARTE
===================================================== */

.bego-about__value-text {

    position: relative;

    overflow: hidden;

    max-height: 145px;

    transition:
        max-height 0.55s
        cubic-bezier(
            .22,
            1,
            .36,
            1
        );
}


/* =====================================================
   PARAGRAPHE CARTE
===================================================== */

.bego-about__value p {

    max-width: 300px;

    margin: 16px 0 0;

    color: var(--bego-black-60);

    font-size: 14px;

    line-height: 1.65;
}


/* =====================================================
   DEGRADADO CARTE
===================================================== */

.bego-about__value.is-collapsed
.bego-about__value-text::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    height: 65px;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0),
            var(--bego-white)
        );

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}


/* =====================================================
   CARTE OUVERTE
===================================================== */

.bego-about__value.is-open
.bego-about__value-text {

    max-height: 1000px;
}


.bego-about__value.is-open
.bego-about__value-text::after {

    opacity: 0;

    visibility: hidden;
}


/* =====================================================
   BOUTON CARTE
===================================================== */

.bego-about__value-toggle {

    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    width: fit-content;

    margin-top: 22px;

    padding:
        8px
        8px
        8px
        18px;

    border: none;

    border-radius: 999px;

    background: var(--bego-black);

    color: var(--bego-white);

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: -0.01em;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


.bego-about__value-toggle:hover {

    transform: translateY(-2px);

    opacity: 0.88;
}


/* =====================================================
   ICONO CARTE
===================================================== */

.bego-about__value-toggle-icon {

    width: 28px;

    height: 28px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--bego-white);

    color: var(--bego-black);

    font-size: 18px;

    line-height: 1;

    transition:
        transform 0.35s ease;
}


/* =====================================================
   ICONO CARTE OUVERTE
===================================================== */

.bego-about__value.is-open
.bego-about__value-toggle-icon {

    transform: rotate(45deg);
}


/* =====================================================
   TEXTO BOTÓN CARTE
===================================================== */

.bego-about__value.is-open
.bego-about__value-toggle
span:first-child {

    font-size: 0;
}


.bego-about__value.is-open
.bego-about__value-toggle
span:first-child::after {

    content: "Voir moins";

    font-size: 12px;
}


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

.bego-download-cta {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    padding:
        70px
        20px
        90px;
}


.bego-download-cta__button {

    display: inline-flex;

    align-items: center;

    gap: 16px;

    padding:
        7px
        7px
        7px
        24px;

    border-radius: 999px;

    background: #000;

    color: #fff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: -0.01em;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.bego-download-cta__button:hover {

    transform: translateY(-4px);

    box-shadow:
        0 15px 35px
        rgba(
            0,
            0,
            0,
            0.18
        );
}


.bego-download-cta__arrow {

    width: 44px;

    height: 44px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #fff;

    color: #000;

    font-size: 18px;

    transition:
        transform 0.3s ease;
}


.bego-download-cta__button:hover
.bego-download-cta__arrow {

    transform: rotate(5deg);
}


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

@media (max-width: 1000px) {

    .bego-about {

        width: calc(100% - 48px);

        padding: 80px 0;
    }


    /* ---------------------------------------------
       HEADER
    --------------------------------------------- */

    .bego-about__header {

        margin-bottom: 55px;
    }


    /* ---------------------------------------------
       MAIN
    --------------------------------------------- */

    .bego-about__main {

        min-height: 0;

        height: auto;
    }


    /* ---------------------------------------------
       CONTENT
    --------------------------------------------- */

    .bego-about__content {

        width: 62%;

        min-height: 0;

        height: auto;

        padding:
            70px
            0
            30px
            50px;
    }


    .bego-about__text-box h3 {

        font-size: clamp(
            48px,
            6vw,
            72px
        );
    }


    /* ---------------------------------------------
       VALUES
    --------------------------------------------- */

    .bego-about__values {

        margin-top: 30px;
    }

}


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

@media (max-width: 700px) {

    .bego-about {

        width: calc(100% - 32px);

        padding: 60px 0;
    }


    /* ---------------------------------------------
       HEADER
    --------------------------------------------- */

    .bego-about__header {

        margin-bottom: 45px;
    }


    .bego-about__header h2 {

        font-size: 52px;
    }


    /* ---------------------------------------------
       MAIN
    --------------------------------------------- */

    .bego-about__main {

        min-height: 0;

        height: auto;

        border-radius: 24px;
    }


    /* ---------------------------------------------
       IMAGE
    --------------------------------------------- */

    .bego-about__image {

        object-position: 62% center;
    }


    /* ---------------------------------------------
       CONTENT
    --------------------------------------------- */

    .bego-about__content {

        width: 100%;

        min-height: 0;

        height: auto;

        padding:
            55px
            25px
            25px;
    }


    /* ---------------------------------------------
       TEXT BOX
    --------------------------------------------- */

    .bego-about__text-box {

        width: 100%;

        max-width: 100%;
    }


    /* ---------------------------------------------
       TITLE
    --------------------------------------------- */

    .bego-about__text-box h3 {

        font-size: 44px;

        line-height: 0.92;
    }


    /* ---------------------------------------------
       TEXT
    --------------------------------------------- */

    .bego-about__text {

        width: 100%;

        max-width: 100%;
    }


    .bego-about__text p {

        max-width: 330px;

        margin-top: 25px;

        font-size: 14px;

        line-height: 1.6;
    }


    .bego-about__text
    p:first-of-type::before {

        width: 48px;

        margin-bottom: 20px;
    }


    /* ---------------------------------------------
       TEXT COLLAPSED
    --------------------------------------------- */

    .bego-about__text--collapsed {

        max-height: 300px;
    }


    .bego-about__text--collapsed::after {

        height: 90px;
    }


    /* ---------------------------------------------
       MAIN BUTTON
    --------------------------------------------- */

    .bego-about__text-toggle {

        margin-top: 22px;

        padding:
            7px
            7px
            7px
            18px;

        font-size: 12px;
    }


    .bego-about__text-toggle-icon {

        width: 38px;

        height: 38px;

        font-size: 18px;
    }


    /* ---------------------------------------------
       VALUES
    --------------------------------------------- */

    .bego-about__values {

        display: grid;

        grid-template-columns:
            repeat(
                3,
                1fr
            );

        margin-top: 25px;
    }


    .bego-about__value {

        min-height: 230px;

        padding:
            25px
            12px;
    }


    .bego-about__value
    + .bego-about__value {

        border-left:
            1px solid
            rgba(
                0,
                0,
                0,
                0.10
            );

        border-top: none;
    }


    /* ---------------------------------------------
       VALUE TITLE
    --------------------------------------------- */

    .bego-about__value h3 {

        font-size: 20px;

        line-height: 1;
    }


    /* ---------------------------------------------
       VALUE TEXT
    --------------------------------------------- */

    .bego-about__value-text {

        max-height: 105px;
    }


    .bego-about__value p {

        max-width: none;

        margin-top: 12px;

        font-size: 11px;

        line-height: 1.5;
    }


    /* ---------------------------------------------
       VALUE BUTTON
    --------------------------------------------- */

    .bego-about__value-toggle {

        margin-top: 18px;

        padding:
            7px
            7px
            7px
            14px;

        font-size: 11px;
    }


    .bego-about__value-toggle-icon {

        width: 26px;

        height: 26px;

        font-size: 16px;
    }


    /* ---------------------------------------------
       DOWNLOAD CTA
    --------------------------------------------- */

    .bego-download-cta {

        padding:
            55px
            20px
            70px;
    }


    .bego-download-cta__button {

        font-size: 13px;

        padding-left: 20px;
    }


    .bego-download-cta__arrow {

        width: 40px;

        height: 40px;
    }

}


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

@media (max-width: 480px) {

    .bego-about {

        width: calc(100% - 24px);

        padding: 45px 0;
    }


    /* ---------------------------------------------
       HEADER
    --------------------------------------------- */

    .bego-about__header h2 {

        font-size: 44px;
    }


    .bego-about__eyebrow {

        font-size: 10px;

        letter-spacing: 0.15em;
    }


    /* ---------------------------------------------
       MAIN
    --------------------------------------------- */

    .bego-about__main {

        min-height: 0;

        height: auto;

        border-radius: 20px;
    }


    /* ---------------------------------------------
       IMAGE
    --------------------------------------------- */

    .bego-about__image {

        object-position: 63% center;
    }


    /* ---------------------------------------------
       CONTENT
    --------------------------------------------- */

    .bego-about__content {

        min-height: 0;

        height: auto;

        padding:
            40px
            18px
            20px;
    }


    /* ---------------------------------------------
       TITLE
    --------------------------------------------- */

    .bego-about__text-box h3 {

        font-size: 36px;
    }


    /* ---------------------------------------------
       TEXT
    --------------------------------------------- */

    .bego-about__text p {

        max-width: 300px;

        font-size: 14px;
    }


    .bego-about__text--collapsed {

        max-height: 260px;
    }


    /* ---------------------------------------------
       MAIN BUTTON
    --------------------------------------------- */

    .bego-about__text-toggle {

        margin-top: 20px;
    }


    /* ---------------------------------------------
       VALUES
    --------------------------------------------- */

    .bego-about__values {

        margin-top: 20px;
    }


    .bego-about__value {

        padding:
            25px
            20px;
    }


    .bego-about__value-text {

        max-height: 105px;
    }

}