/* =========================================================
   XAP STORE PORTAL
   Portail multiboutique - 4 univers
   ========================================================= */


/* ---------------------------------------------------------
   CONTENEUR GENERAL
   --------------------------------------------------------- */

.xap-store-portal {
    background: #F7F7F8;
    color: #101827;
    font-family: Arial, Helvetica, sans-serif;
    padding: 48px clamp(18px, 4vw, 70px);
    width: 100%;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   INTRODUCTION
   --------------------------------------------------------- */

.xap-store-portal__intro {
    max-width: 520px;
    margin-bottom: 35px;
}

.xap-store-portal__intro span,
.xap-store-portal__intro h1 {
    color: #383c40;
    font-weight: 800;
}

.xap-store-portal__intro span {
    display: block;
    font-size: .72rem;
    letter-spacing: .15em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.xap-store-portal__intro h1 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.2;
    margin: 0 0 12px 0;
}

.xap-store-portal__intro p {
    font-size: .90rem;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}


/* =========================================================
   GRILLE PRINCIPALE
   4 PETALES + HUB CENTRAL
   ========================================================= */

.xap-store-portal__grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 1fr)
        250px
        minmax(280px, 1fr);

    grid-template-rows:
        210px
        210px;

    gap: 22px 35px;

    max-width: 1250px;
    margin: 20px auto 0;

    position: relative;
    align-items: stretch;
}


/* =========================================================
   HUB CENTRAL
   ========================================================= */

.xap-store-portal__hub {
    grid-column: 2;
    grid-row: 1 / 3;

    align-self: center;
    justify-self: center;

    width: 220px;
    height: 220px;

    box-sizing: border-box;

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

    text-align: center;

    background: #ffffff;

    border: 1px solid #dce5f3;
    border-radius: 50%;

    box-shadow:
        0 12px 32px rgb(16 24 39 / 14%);

    position: relative;
    z-index: 3;
}


/* XAP */

.xap-store-portal__hub strong {
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
}


/* STORES */

.xap-store-portal__hub small {
    color: #111111;
    display: block;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.35rem !important;
    font-weight: 700;

    letter-spacing: -.03em;

    margin-top: 5px;
}


/* Trait séparateur */

.xap-store-portal__hub i {
    border-top: 2px solid #343A40;
    margin: 15px 0 9px;
    width: 38px;
}


/* 4 WORLDS, ONE EXPERTISE */

.xap-store-portal__hub b {
    color: #C52A25;

    font-size: .78rem;
    font-weight: 700;

    line-height: 1.35;

    letter-spacing: .03em;

    text-transform: uppercase;
}


/* =========================================================
   PETALES
   ========================================================= */

.xap-store-portal__petal {
    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #ffffff 48%,
            rgb(255 255 255 / 82%) 62%,
            rgb(255 255 255 / 18%) 100%
        ),
        var(
            --xap-image,
            linear-gradient(135deg, #dbe6f3, #7b91aa)
        );

    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto, 48% 100%;

    border: 1.5px solid var(--xap-color);
    border-radius: 25px;

    box-shadow:
        0 8px 22px rgb(16 24 39 / 10%);

    color: #101827;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    box-sizing: border-box;

    min-width: 0;
    min-height: 210px;

    padding: 22px;

    position: relative;

    text-decoration: none;

    overflow: hidden;

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}


/* HOVER */

.xap-store-portal__petal:hover,
.xap-store-portal__petal:focus-visible {
    box-shadow:
        0 16px 32px rgb(16 24 39 / 18%);

    outline: none;

    transform: translateY(-5px);

    color: var(--xap-color);
}


/* légère ligne accentuée au hover */

.xap-store-portal__petal::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 0;
    height: 4px;

    background: var(--xap-color);

    transition: width .25s ease;
}

.xap-store-portal__petal:hover::before {
    width: 100%;
}


/* =========================================================
   NUMERO
   ========================================================= */

.xap-store-portal__number {
    color: var(--xap-color);

    font-size: 1.7rem;
    font-weight: 800;

    line-height: 1;

    margin-bottom: 8px;
}


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

.xap-store-portal__petal strong {
    color: #101827;

    font-size: 1.15rem;
    font-weight: 800;

    line-height: 1.15;

    margin: 0 0 8px 0;

    max-width: 55%;

    text-transform: uppercase;
}


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

.xap-store-portal__petal small {
    color: #4b5563;

    display: block;

    font-size: .78rem;
    line-height: 1.42;

    margin: 0;

    max-width: 55%;
}


/* =========================================================
   FLECHE
   ========================================================= */

.xap-store-portal__petal em {
    align-items: center;

    background: var(--xap-color);

    border: 2px solid #ffffff;
    border-radius: 50%;

    bottom: 15px;

    color: #ffffff;

    display: flex;

    font-size: 1.15rem;
    font-style: normal;

    height: 40px;

    justify-content: center;

    position: absolute;

    right: 15px;

    width: 40px;

    box-shadow:
        0 4px 12px rgb(16 24 39 / 18%);
}


/* =========================================================
   POSITION DES 4 PETALES
   ========================================================= */


/* XAP STORE */

.xap-store-portal__petal--1 {
    grid-column: 1;
    grid-row: 1;
}


/* BEE UAV */

.xap-store-portal__petal--2 {
    grid-column: 3;
    grid-row: 1;
}


/* GOLD MARINE */

.xap-store-portal__petal--3 {
    grid-column: 1;
    grid-row: 2;
}


/* VROOM STORE */

.xap-store-portal__petal--4 {
    grid-column: 3;
    grid-row: 2;
}


/* =========================================================
   COULEURS
   Les couleurs principales restent normalement récupérées
   via Elementor / PHP avec --xap-color
   ========================================================= */


/*
XAP STORE
#ff0000

BEE UAV
#dff8ff

GOLD MARINE
#0d00ae

VROOM STORE
#ffff00
*/


/* =========================================================
   CAS PARTICULIER DES COULEURS TRES CLAIRES
   BEE UAV + VROOM STORE
   ========================================================= */

/*
   Pour les couleurs très claires, la flèche doit conserver
   suffisamment de contraste.
*/

.xap-store-portal__petal--2 em {
    color: #101827;
}

.xap-store-portal__petal--4 em {
    color: #101827;
}


/* =========================================================
   TABLETTES / PETITS ORDINATEURS
   ========================================================= */

@media (max-width: 1150px) {

    .xap-store-portal__grid {
        grid-template-columns:
            minmax(230px, 1fr)
            205px
            minmax(230px, 1fr);

        grid-template-rows:
            195px
            195px;

        gap: 20px 25px;

        max-width: 1000px;
    }


    .xap-store-portal__hub {
        width: 190px;
        height: 190px;
    }


    .xap-store-portal__hub strong {
        font-size: 2.3rem;
    }


    .xap-store-portal__hub small {
        font-size: 1.2rem !important;
    }


    .xap-store-portal__hub b {
        font-size: .70rem;
    }


    .xap-store-portal__petal {
        min-height: 195px;
        padding: 18px;
    }


    .xap-store-portal__petal strong,
    .xap-store-portal__petal small {
        max-width: 58%;
    }


    .xap-store-portal__petal strong {
        font-size: 1rem;
    }


    .xap-store-portal__petal small {
        font-size: .72rem;
    }

}


/* =========================================================
   TABLETTE
   Le hub passe au-dessus des 4 boutiques
   ========================================================= */

@media (max-width: 900px) {

    .xap-store-portal {
        padding:
            40px
            clamp(18px, 4vw, 40px);
    }


    .xap-store-portal__intro {
        max-width: 650px;
    }


    .xap-store-portal__grid {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-template-rows:
            auto;

        gap: 20px;

        max-width: 760px;
    }


    .xap-store-portal__hub {
        grid-column: 1 / 3;
        grid-row: 1;

        width: 190px;
        height: 190px;

        margin: 0 auto 10px;
    }


    .xap-store-portal__petal {
        min-height: 190px;
    }


    .xap-store-portal__petal--1 {
        grid-column: 1;
        grid-row: 2;
    }


    .xap-store-portal__petal--2 {
        grid-column: 2;
        grid-row: 2;
    }


    .xap-store-portal__petal--3 {
        grid-column: 1;
        grid-row: 3;
    }


    .xap-store-portal__petal--4 {
        grid-column: 2;
        grid-row: 3;
    }

}


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

@media (max-width: 620px) {

    .xap-store-portal {
        padding:
            32px
            16px;
    }


    .xap-store-portal__intro {
        margin-bottom: 25px;
    }


    .xap-store-portal__intro h1 {
        font-size: 1.45rem;
    }


    .xap-store-portal__grid {
        grid-template-columns: 1fr;

        gap: 16px;

        margin-top: 15px;
    }


    .xap-store-portal__hub {
        grid-column: 1;
        grid-row: 1;

        width: 165px;
        height: 165px;

        margin-bottom: 5px;
    }


    .xap-store-portal__hub strong {
        font-size: 2rem;
    }


    .xap-store-portal__hub small {
        font-size: 1.05rem !important;
    }


    .xap-store-portal__hub i {
        margin: 11px 0 7px;
    }


    .xap-store-portal__hub b {
        font-size: .65rem;
    }


    .xap-store-portal__petal {
        grid-column: 1 !important;
        grid-row: auto !important;

        min-height: 175px;

        padding: 18px;

        background-size:
            auto,
            45% 100%;
    }


    .xap-store-portal__petal strong {
        font-size: 1rem;
        max-width: 58%;
    }


    .xap-store-portal__petal small {
        font-size: .72rem;
        max-width: 58%;
    }


    .xap-store-portal__number {
        font-size: 1.45rem;
    }


    .xap-store-portal__petal em {
        width: 36px;
        height: 36px;

        right: 12px;
        bottom: 12px;
    }

}


/* =========================================================
   ACCESSIBILITE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .xap-store-portal__petal,
    .xap-store-portal__petal::before {
        transition: none;
    }

}