/* =========================================================
   ArabicLearn
   Accueil public
   ========================================================= */

.learn-home {
    display: flex;
    flex-direction: column;
    gap: 26px;
}


/* =========================================================
   Hero
   ========================================================= */

.learn-hero {
    position: relative;

    min-height: 280px;
    padding: 34px 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #eef9ff 0%,
            #f8fcff 55%,
            #fff6e5 100%
        );

    border: 1px solid #dcebf5;
    border-radius: 26px;

    box-shadow:
        0 8px 24px rgba(31, 60, 90, 0.09);
}

.learn-hero.has-background-image {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 820px;

    text-align: center;
}

.hero-stars {
    margin-bottom: 9px;

    color: #ffcc33;

    font-size: 1.35rem;
}

.hero-content h1 {
    margin: 0;

    color: #102b56;

    font-size: clamp(
        2rem,
        4vw,
        3.2rem
    );

    font-weight: 900;

    letter-spacing: -1px;
}

.hero-content p {
    max-width: 680px;

    margin: 15px auto 0;

    color: #44546a;

    font-size: clamp(
        1rem,
        1.8vw,
        1.22rem
    );

    line-height: 1.5;
}

.hero-start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 24px;
    padding: 12px 19px;

    border-radius: 15px;

    background: #109c9b;

    color: #ffffff !important;

    font-weight: 900;

    text-decoration: none !important;

    box-shadow:
        0 7px 18px rgba(16, 156, 155, 0.22);

    transition:
        transform 0.14s ease,
        box-shadow 0.14s ease,
        background 0.14s ease;
}

.hero-start-button:hover {
    transform: translateY(-2px);

    background: #0d8c8b;

    box-shadow:
        0 10px 22px rgba(16, 156, 155, 0.28);
}


/* =========================================================
   Actions principales
   ========================================================= */

.home-main-actions {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.home-main-card {
    position: relative;

    min-width: 0;
    min-height: 270px;

    padding: 26px;

    display: flex;
    flex-direction: column;
    gap: 16px;

    overflow: hidden;

    border: 1px solid #dce6ee;
    border-radius: 25px;

    color: #102b56;

    text-decoration: none !important;

    box-shadow:
        0 8px 22px rgba(31, 60, 90, 0.09);

    transition:
        transform 0.14s ease,
        box-shadow 0.14s ease,
        border-color 0.14s ease;
}

a.home-main-card:hover {
    transform: translateY(-4px);

    border-color: #afd6df;

    box-shadow:
        0 14px 30px rgba(31, 60, 90, 0.15);
}


/* =========================================================
   Couleurs des cartes
   ========================================================= */

.home-card-learning {
    background:
        linear-gradient(
            145deg,
            #e8fbfb,
            #f9ffff
        );
}

.home-card-games {
    background:
        linear-gradient(
            145deg,
            #f1ebff,
            #fcfaff
        );
}

.home-card-review {
    background:
        linear-gradient(
            145deg,
            #fff4dc,
            #fffaf1
        );
}


/* =========================================================
   Contenu cartes
   ========================================================= */

.home-main-card-icon {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 21px;

    background:
        rgba(255, 255, 255, 0.82);

    font-size: 2.55rem;

    box-shadow:
        0 4px 12px rgba(31, 60, 90, 0.06);
}

.home-main-card-content {
    min-width: 0;
}

.home-main-card-kicker {
    margin-bottom: 4px;

    color: #718196;

    font-size: 0.77rem;
    font-weight: 900;

    letter-spacing: 0.7px;

    text-transform: uppercase;
}

.home-card-learning
.home-main-card-kicker {
    color: #109c9b;
}

.home-card-games
.home-main-card-kicker {
    color: #7254b8;
}

.home-card-review
.home-main-card-kicker {
    color: #d58a18;
}

.home-main-card h2 {
    margin: 0;

    color: #102b56;

    font-size: 1.5rem;
    font-weight: 900;
}

.home-main-card p {
    margin: 9px 0 0;

    color: #536579;

    line-height: 1.52;
}


/* =========================================================
   Tags
   ========================================================= */

.home-main-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 17px;
}

.home-main-card-tags span {
    padding: 5px 9px;

    border: 1px solid #dbe8ee;
    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.82);

    color: #536579;

    font-size: 0.76rem;
    font-weight: 800;
}


/* =========================================================
   Flèche
   ========================================================= */

.home-main-card-arrow {
    position: absolute;

    right: 20px;
    bottom: 20px;

    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    color: #109c9b;

    font-size: 1.4rem;
    font-weight: 900;

    box-shadow:
        0 4px 11px rgba(31, 60, 90, 0.08);
}

.home-card-games
.home-main-card-arrow {
    color: #7254b8;
}


/* =========================================================
   Bientôt disponible
   ========================================================= */

.home-main-card.is-coming-soon {
    opacity: 0.68;
}

.home-coming-soon {
    display: inline-flex;

    margin-top: 16px;
    padding: 6px 10px;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.8);

    color: #718196;

    font-size: 0.78rem;
    font-weight: 900;
}


/* =========================================================
   Progression à venir
   ========================================================= */

.home-progress-preview {
    position: relative;

    display: grid;

    grid-template-columns:
        auto minmax(0, 1fr) auto;

    align-items: center;
    gap: 20px;

    padding: 23px 27px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f7fbff,
            #fffdf7
        );

    border: 1px solid #dfe8ef;
    border-radius: 23px;

    box-shadow:
        0 7px 20px rgba(31, 60, 90, 0.07);
}

.home-progress-icon {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 19px;

    background: #ffffff;

    font-size: 2.2rem;
}

.home-progress-content {
    min-width: 0;
}

.home-progress-kicker {
    margin-bottom: 3px;

    color: #d58a18;

    font-size: 0.76rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 0.65px;
}

.home-progress-content h2 {
    margin: 0;

    color: #102b56;

    font-size: 1.2rem;
    font-weight: 900;
}

.home-progress-content p {
    max-width: 800px;

    margin: 6px 0 0;

    color: #536579;

    line-height: 1.48;
}

.home-progress-decoration {
    color: #f1b62c;

    font-size: 1.15rem;

    letter-spacing: 4px;

    white-space: nowrap;
}


/* =========================================================
   Tablette
   ========================================================= */

@media (max-width: 1000px) {

    .home-main-actions {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    /*
     * Apprentissage devient la grande entrée
     * principale de la page.
     */
    .home-card-learning {
        grid-column: 1 / -1;

        min-height: 230px;
    }
}


/* =========================================================
   Téléphone
   ========================================================= */

@media (max-width: 650px) {

    .learn-home {
        gap: 18px;
    }

    .learn-hero {
        min-height: 235px;

        padding: 25px 18px;

        border-radius: 20px;
    }

    .hero-start-button {
        width: 100%;
        max-width: 300px;
    }

    .home-main-actions {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .home-card-learning {
        grid-column: auto;
    }

    .home-main-card {
        min-height: 220px;

        padding: 20px;

        border-radius: 20px;
    }

    .home-main-card-icon {
        width: 60px;
        height: 60px;

        border-radius: 18px;

        font-size: 2rem;
    }

    .home-main-card h2 {
        font-size: 1.3rem;
    }

    .home-progress-preview {
        grid-template-columns:
            auto minmax(0, 1fr);

        padding: 19px;

        border-radius: 20px;
    }

    .home-progress-decoration {
        display: none;
    }
}


/* =========================================================
   Très petit téléphone
   ========================================================= */

@media (max-width: 420px) {

    .home-progress-preview {
        grid-template-columns: 1fr;
    }

    .home-progress-icon {
        width: 52px;
        height: 52px;
    }
}