/* ==========================================================
   UGCS — ACCUEIL / FOCUS
   ========================================================== */

.ugcs-focus {
    --ugcs-violet: #5B2167;
    --ugcs-violet-light: #A35BB5;
    --ugcs-dark: #171934;
    --ugcs-focus-bg: #F8F5F9;
    --ugcs-border: #DED6E1;

    position: relative;

    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    min-height: 560px;

    overflow: hidden;

    background: var(--ugcs-focus-bg);
}


/* ==========================================================
   CONTENEUR
   Même largeur que le Hero
   ========================================================== */

.ugcs-focus__container {
    position: relative;
    z-index: 2;

    width: min(1240px, calc(100% - 64px));
    min-height: 560px;

    margin: 0 auto;

    display: flex;
    align-items: center;
}


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

.ugcs-focus__content {
    width: 54%;
    max-width: 650px;

    padding: 58px 0 56px;
}


/* ==========================================================
   EN-TÊTE
   ========================================================== */

.ugcs-focus__header {
    width: 100%;
    max-width: 610px;

    margin: 0;
    padding: 0;
}


/* ==========================================================
   SURTITRE
   ========================================================== */

.single-content .ugcs-focus__eyebrow {
    margin: 0 !important;
    padding: 0 !important;

    color: var(--ugcs-violet);

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;

    letter-spacing: .02em;
    text-transform: uppercase;
}


/* ==========================================================
   TRAIT
   ========================================================== */

.ugcs-focus__line {
    display: block;

    width: 52px;
    height: 3px;

    margin: 10px 0 22px;

    background: var(--ugcs-violet-light);
}


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

.single-content .ugcs-focus__title {
    margin: 0 !important;
    padding: 0 !important;

    color: var(--ugcs-violet);

    font-size: 40px !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;

    letter-spacing: -.025em;
    text-transform: none;
}


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

.single-content .ugcs-focus__description {
    width: 100%;
    max-width: 570px;

    margin: 22px 0 0 !important;
    padding: 0 !important;

    color: var(--ugcs-dark);

    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}


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

.ugcs-focus__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    width: 100%;

    margin: 38px 0 0;
    padding: 0;
}


/* ==========================================================
   UNE VALEUR
   ========================================================== */

.ugcs-focus__feature {
    position: relative;

    min-width: 0;

    margin: 0;
    padding: 0 22px;

    box-sizing: border-box;
}


.ugcs-focus__feature:first-child {
    padding-left: 0;
}


.ugcs-focus__feature:last-child {
    padding-right: 0;
}


/* Une valeur peut être un <a> si un lien est renseigné */
a.ugcs-focus__feature {
    display: block;

    color: inherit;

    text-decoration: none;
}


a.ugcs-focus__feature:hover .ugcs-focus__feature-title,
a.ugcs-focus__feature:focus-visible .ugcs-focus__feature-title {
    text-decoration: underline;
}


/* ==========================================================
   SÉPARATEURS ENTRE LES 3 COLONNES
   ========================================================== */

.ugcs-focus__feature + .ugcs-focus__feature::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 1px;

    background: var(--ugcs-border);
}


/* ==========================================================
   PICTOGRAMMES
   ========================================================== */

.ugcs-focus__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    margin: 0 0 14px;
    padding: 0;

    color: var(--ugcs-violet);
}


.ugcs-focus__icon svg {
    display: block;

    width: 38px;
    height: 38px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.ugcs-focus__icon img {
    display: block;

    width: 38px;
    height: 38px;

    object-fit: contain;
}


/* ==========================================================
   TITRES DES VALEURS
   ========================================================== */

.single-content .ugcs-focus__feature-title {
    margin: 0 0 7px !important;
    padding: 0 !important;

    color: var(--ugcs-violet);

    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    letter-spacing: .01em;
    text-transform: uppercase;
}


/* ==========================================================
   TEXTES DES VALEURS
   ========================================================== */

.single-content .ugcs-focus__feature-text {
    margin: 0 !important;
    padding: 0 !important;

    color: var(--ugcs-dark);

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}


/* ==========================================================
   IMAGE — DESKTOP
   ========================================================== */

.ugcs-focus__visual {
    position: absolute;

    z-index: 1;

    top: 0;
    right: 0;
    bottom: 0;

    /*
     * L'image commence légèrement après la moitié
     * du conteneur de 1240px.
     */
    left: max(
        54%,
        calc((100vw - 1240px) / 2 + 650px)
    );

    overflow: hidden;
}


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

.ugcs-focus__image {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: center center;
}


/* ==========================================================
   FONDU ENTRE CONTENU ET IMAGE
   ========================================================== */

.ugcs-focus__visual::before {
    content: "";

    position: absolute;

    z-index: 2;

    top: 0;
    bottom: 0;
    left: 0;

    width: 45px;

    background:
        linear-gradient(
            90deg,
            var(--ugcs-focus-bg) 0%,
            rgba(248, 245, 249, .55) 45%,
            rgba(248, 245, 249, 0) 100%
        );

    pointer-events: none;
}


/* ==========================================================
   TABLETTE
   768px → 1024px

   On conserve texte gauche / image droite.
   ========================================================== */

@media (max-width: 1024px) and (min-width: 768px) {

    .ugcs-focus {
        min-height: 520px;
    }


    .ugcs-focus__container {
        width: min(960px, calc(100% - 48px));
        min-height: 520px;
    }


    .ugcs-focus__content {
        width: 55%;
        max-width: none;

        padding: 46px 0;
    }


    .ugcs-focus__header {
        max-width: 470px;
    }


    .single-content .ugcs-focus__title {
        font-size: 34px !important;
    }


    .single-content .ugcs-focus__description {
        max-width: 470px;

        margin-top: 18px !important;

        font-size: 15px !important;
    }


    .ugcs-focus__features {
        margin-top: 30px;
    }


    .ugcs-focus__feature {
        padding: 0 14px;
    }


    .ugcs-focus__feature:first-child {
        padding-left: 0;
    }


    .ugcs-focus__feature:last-child {
        padding-right: 0;
    }


    .ugcs-focus__icon {
        width: 42px;
        height: 42px;

        margin-bottom: 10px;
    }


    .ugcs-focus__icon svg,
    .ugcs-focus__icon img {
        width: 32px;
        height: 32px;
    }


    .single-content .ugcs-focus__feature-title {
        font-size: 11px !important;
    }


    .single-content .ugcs-focus__feature-text {
        font-size: 12px !important;
    }


    .ugcs-focus__visual {
        top: 0;
        right: 0;
        bottom: 0;
        left: 55%;

        width: auto;
        height: auto;
    }

}


/* ==========================================================
   MOBILE
   0 → 767px

   ORDRE :
   1. Texte
   2. Valeurs
   3. Image
   ========================================================== */

@media (max-width: 767px) {

    .ugcs-focus {
        display: flex;
        flex-direction: column;

        min-height: 0;

        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);

        padding: 0;

        overflow: hidden;
    }


    /* ======================================================
       CONTENEUR
       ====================================================== */

    .ugcs-focus__container {
        position: relative;

        z-index: 2;

        order: 1;

        display: block;

        width: calc(100% - 40px);
        min-height: 0;

        margin: 0 auto;
    }


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

    .ugcs-focus__content {
        width: 100%;
        max-width: none;

        margin: 0;

        padding: 42px 0 38px;
    }


    .ugcs-focus__header {
        width: 100%;
        max-width: none;
    }


    /* ======================================================
       SURTITRE
       ====================================================== */

    .single-content .ugcs-focus__eyebrow {
        font-size: 12px !important;
    }


    .ugcs-focus__line {
        margin: 8px 0 18px;
    }


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

    .single-content .ugcs-focus__title {
        font-size: 30px !important;
        line-height: 1.05 !important;
    }


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

    .single-content .ugcs-focus__description {
        width: 100%;
        max-width: none;

        margin: 18px 0 0 !important;

        font-size: 15px !important;
        line-height: 1.5 !important;
    }


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

    .ugcs-focus__features {
        display: grid;
        grid-template-columns: 1fr;

        width: 100%;

        margin: 28px 0 0;
        padding: 0;
    }


    .ugcs-focus__feature,
    .ugcs-focus__feature:first-child,
    .ugcs-focus__feature:last-child {
        position: relative;

        display: grid;

        grid-template-columns: 46px minmax(0, 1fr);
        grid-template-rows: auto auto;

        column-gap: 14px;

        width: 100%;

        margin: 0;

        padding: 16px 0;
    }


    .ugcs-focus__feature:first-child {
        padding-top: 0;
    }


    .ugcs-focus__feature:last-child {
        padding-bottom: 0;
    }


    /* ======================================================
       SÉPARATEURS HORIZONTAUX
       ====================================================== */

    .ugcs-focus__feature + .ugcs-focus__feature::before {
        content: "";

        position: absolute;

        top: 0;
        right: 0;
        bottom: auto;
        left: 0;

        width: 100%;
        height: 1px;

        background: var(--ugcs-border);
    }


    /* ======================================================
       PICTOGRAMMES
       ====================================================== */

    .ugcs-focus__icon {
        grid-column: 1;
        grid-row: 1 / span 2;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 40px;
        height: 40px;

        margin: 0;
        padding: 0;
    }


    .ugcs-focus__icon svg,
    .ugcs-focus__icon img {
        width: 30px;
        height: 30px;
    }


    /* ======================================================
       TITRES VALEURS
       ====================================================== */

    .single-content .ugcs-focus__feature-title {
        grid-column: 2;
        grid-row: 1;

        align-self: end;

        margin: 0 0 4px !important;

        font-size: 11px !important;
    }


    /* ======================================================
       TEXTES VALEURS
       ====================================================== */

    .single-content .ugcs-focus__feature-text {
        grid-column: 2;
        grid-row: 2;

        margin: 0 !important;

        font-size: 13px !important;
        line-height: 1.45 !important;
    }


    /* ======================================================
       IMAGE
       APRÈS LE CONTENU
       ====================================================== */

    .ugcs-focus__visual {
        position: relative;

        z-index: 1;

        order: 2;

        top: auto;
        right: auto;
        bottom: auto;
        left: auto;

        width: 100%;
        height: 300px;

        margin: 0;
        padding: 0;

        overflow: hidden;
    }


    .ugcs-focus__image {
        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center center;
    }


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

    .ugcs-focus__visual::before {
        content: "";

        position: absolute;

        z-index: 2;

        top: 0;
        right: 0;
        bottom: auto;
        left: 0;

        width: 100%;
        height: 35px;

        background:
            linear-gradient(
                180deg,
                var(--ugcs-focus-bg) 0%,
                rgba(248, 245, 249, .55) 45%,
                rgba(248, 245, 249, 0) 100%
            );

        pointer-events: none;
    }

}


/* ==========================================================
   PETITS MOBILES
   ========================================================== */

@media (max-width: 420px) {

    .ugcs-focus__container {
        width: calc(100% - 32px);
    }


    .ugcs-focus__content {
        padding-top: 36px;
        padding-bottom: 34px;
    }


    .single-content .ugcs-focus__title {
        font-size: 28px !important;
    }


    .ugcs-focus__visual {
        height: 260px;
    }

}

/* ==========================================================
   PATTERN DE POINTS — IMAGE FOCUS
   ========================================================== */

.ugcs-focus__visual::after {
    content: "";

    position: absolute;
    z-index: 3;

    top: 0;
    right: 0;

    width: 58%;
    height: 62%;

    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            rgba(169, 91, 194, .22) 0 4px,
            transparent 4.5px
        );

    background-size: 22px 22px;
    background-position: top right;

    -webkit-mask-image:
        radial-gradient(
            ellipse at 100% 0%,
            #000 0%,
            #000 24%,
            rgba(0, 0, 0, .85) 38%,
            rgba(0, 0, 0, .50) 52%,
            rgba(0, 0, 0, .18) 66%,
            transparent 80%
        );

    mask-image:
        radial-gradient(
            ellipse at 100% 0%,
            #000 0%,
            #000 24%,
            rgba(0, 0, 0, .85) 38%,
            rgba(0, 0, 0, .50) 52%,
            rgba(0, 0, 0, .18) 66%,
            transparent 80%
        );
}


@media (max-width: 1024px) and (min-width: 768px) {

    .ugcs-focus__visual::after {
        width: 62%;
        height: 55%;

        background-size: 18px 18px;

        background-image:
            radial-gradient(
                circle,
                rgba(169, 91, 194, .20) 0 3px,
                transparent 3.5px
            );
    }

}


@media (max-width: 767px) {

    .ugcs-focus__visual::after {
        width: 65%;
        height: 60%;

        background-size: 17px 17px;

        background-image:
            radial-gradient(
                circle,
                rgba(169, 91, 194, .18) 0 2.5px,
                transparent 3px
            );

        -webkit-mask-image:
            radial-gradient(
                ellipse at 100% 0%,
                #000 0%,
                rgba(0, 0, 0, .85) 30%,
                rgba(0, 0, 0, .40) 55%,
                transparent 78%
            );

        mask-image:
            radial-gradient(
                ellipse at 100% 0%,
                #000 0%,
                rgba(0, 0, 0, .85) 30%,
                rgba(0, 0, 0, .40) 55%,
                transparent 78%
            );
    }

}


@media (max-width: 420px) {

    .ugcs-focus__visual::after {
        width: 70%;
        height: 58%;

        background-size: 15px 15px;

        background-image:
            radial-gradient(
                circle,
                rgba(169, 91, 194, .17) 0 2px,
                transparent 2.5px
            );
    }

}


/* ==========================================================
   ÉDITEUR — CHAMPS ET APERÇU
   ========================================================== */

.ugcs-focus .ugcs-focus__field {

    display: block;

    width: 100%;

    border: 1px dashed transparent;

    background: transparent;

    padding: 2px 4px;

    margin: 0 !important;

    color: inherit;

    font: inherit;

    line-height: inherit;

    letter-spacing: inherit;

    text-transform: inherit;

    resize: none;
}

.ugcs-focus .ugcs-focus__field:hover,
.ugcs-focus .ugcs-focus__field:focus {

    border-color: var(--ugcs-violet-light);

    outline: none;
}

.ugcs-focus__icon.ugcs-focus__icon--editable {

    cursor: pointer;

    border-radius: 50%;
}

.ugcs-focus__icon--editable:hover {

    outline: 2px dashed var(--ugcs-violet-light);

    outline-offset: 2px;
}
