/* =========================================================
   INSTALLATION DE L’APPLICATION MOBILE
   public/assets/mobile/css/mobile-install.css
   ========================================================= */

.mobile-install-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background:
        radial-gradient(
            circle at top left,
            rgba(19, 161, 140, 0.16),
            transparent 31%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(246, 190, 72, 0.13),
            transparent 29%
        ),
        #f3f8f7;
    color: #143f37;
}

.mobile-install-page *,
.mobile-install-page *::before,
.mobile-install-page *::after {
    box-sizing: border-box;
}

.mobile-install-shell {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding:
        14px
        14px
        calc(38px + env(safe-area-inset-bottom));
}

/* =========================================================
   HERO
   ========================================================= */

.mobile-install-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 20px 28px;
    border-radius: 0 0 30px 30px;
    background:
        linear-gradient(
            145deg,
            #063f38 0%,
            #086b5e 55%,
            #109480 100%
        );
    color: #fff;
    text-align: center;
    box-shadow:
        0 18px 42px
        rgba(6, 63, 56, 0.2);
}

.mobile-install-back {
    width: 44px;
    height: 44px;
    position: absolute;
    z-index: 3;
    top: 13px;
    left: 14px;
    display: grid;
    place-items: center;
    border: 1px solid
        rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background:
        rgba(255, 255, 255, 0.13);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    backdrop-filter: blur(8px);
}

[dir="rtl"] .mobile-install-back {
    right: 14px;
    left: auto;
}

.mobile-install-hero-decoration span {
    position: absolute;
    border-radius: 50%;
    background:
        rgba(255, 255, 255, 0.08);
}

.mobile-install-hero-decoration span:nth-child(1) {
    width: 140px;
    height: 140px;
    top: -64px;
    right: -42px;
}

.mobile-install-hero-decoration span:nth-child(2) {
    width: 80px;
    height: 80px;
    bottom: 22px;
    left: -40px;
}

.mobile-install-hero-decoration span:nth-child(3) {
    width: 44px;
    height: 44px;
    top: 58px;
    left: 19%;
}

.mobile-install-logo {
    width: 86px;
    height: 86px;
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    padding: 11px;
    border: 1px solid
        rgba(255, 255, 255, 0.28);
    border-radius: 25px;
    background: #fff;
    box-shadow:
        0 14px 30px
        rgba(0, 0, 0, 0.17);
}

.mobile-install-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-install-eyebrow {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    margin-bottom: 9px;
    padding: 6px 11px;
    border-radius: 999px;
    background:
        rgba(255, 255, 255, 0.13);
    color: #dff9f3;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mobile-install-hero h1 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size:
        clamp(1.75rem, 7vw, 2.5rem);
    font-weight: 900;
    line-height: 1.14;
}

.mobile-install-introduction {
    position: relative;
    z-index: 2;
    max-width: 590px;
    margin: 13px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.55;
}

.mobile-install-compatibility {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.mobile-install-compatibility span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid
        rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background:
        rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

/* =========================================================
   PANNEAU D’INSTALLATION
   ========================================================= */

.mobile-install-panel {
    position: relative;
    z-index: 4;
    margin: -1px 0 18px;
    padding: 23px 17px;
    border: 1px solid
        rgba(10, 105, 91, 0.12);
    border-radius: 0 0 25px 25px;
    background:
        rgba(255, 255, 255, 0.98);
    box-shadow:
        0 15px 36px
        rgba(17, 69, 60, 0.1);
}

.mobile-install-panel-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: 19px;
    background:
        linear-gradient(
            145deg,
            #daf3ee,
            #edf9f6
        );
    color: #087565;
    font-size: 1.65rem;
}

.mobile-install-panel-content {
    text-align: center;
}

.mobile-install-panel-label {
    color: #0a8876;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mobile-install-panel-content h2 {
    margin: 6px 0 7px;
    color: #123f37;
    font-size:
        clamp(1.3rem, 5.3vw, 1.75rem);
    font-weight: 850;
    line-height: 1.25;
}

.mobile-install-panel-content p {
    max-width: 540px;
    margin: 0 auto;
    color: #657d78;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================================================
   BOUTONS
   ========================================================= */

.mobile-install-action-block {
    margin-top: 20px;
    text-align: center;
}

.mobile-install-primary-button,
.mobile-install-secondary-button {
    width: 100%;
    min-height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 17px;
    border-radius: 17px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
}

.mobile-install-primary-button {
    border: 0;
    background:
        linear-gradient(
            145deg,
            #087768,
            #13a18c
        );
    color: #fff;
    box-shadow:
        0 11px 24px
        rgba(8, 119, 104, 0.23);
}

.mobile-install-primary-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.mobile-install-secondary-button {
    border: 2px solid #d7e6e2;
    background: #fff;
    color: #28564e;
}

.mobile-install-action-block small {
    display: block;
    margin-top: 10px;
    color: #78908b;
    font-size: 0.78rem;
    line-height: 1.4;
}

/* =========================================================
   ÉTAPES D’INSTALLATION
   ========================================================= */

.mobile-install-instructions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.mobile-install-step {
    min-height: 82px;
    display: grid;
    grid-template-columns:
        34px
        minmax(0, 1fr)
        28px;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid #e1ebe8;
    border-radius: 17px;
    background: #f7faf9;
}

.mobile-install-step-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0e8e7b;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 850;
}

.mobile-install-step strong {
    display: block;
    margin-bottom: 3px;
    color: #19483f;
    font-size: 0.92rem;
    font-weight: 800;
}

.mobile-install-step p {
    margin: 0;
    color: #728984;
    font-size: 0.79rem;
    line-height: 1.4;
}

.mobile-install-step > i {
    color: #0e8e7b;
    font-size: 1.25rem;
    text-align: center;
}

.mobile-install-ios-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1px solid #f0d18e;
    border-radius: 16px;
    background: #fff8e9;
    color: #76550d;
}

.mobile-install-ios-warning i {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 1.2rem;
}

.mobile-install-ios-warning p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
}

/* =========================================================
   QR CODE
   ========================================================= */

.mobile-install-desktop {
    margin-top: 21px;
    text-align: center;
}

.mobile-install-qr {
    width: 284px;
    max-width: 100%;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid #dce9e6;
    border-radius: 23px;
    background: #fff;
    box-shadow:
        0 12px 28px
        rgba(17, 69, 60, 0.11);
}

.mobile-install-qr svg,
.mobile-install-qr img {
    width: 100%;
    height: auto;
    display: block;
}

.mobile-install-qr-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 13px 0 17px;
    color: #607b75;
}

.mobile-install-qr-help i {
    color: #0e8e7b;
    font-size: 1.15rem;
}

.mobile-install-qr-help p {
    margin: 0;
    font-size: 0.84rem;
}

/* =========================================================
   TITRES DE SECTION
   ========================================================= */

.mobile-install-features {
    padding: 23px 0 4px;
}

.mobile-install-section-heading {
    margin-bottom: 16px;
    text-align: center;
}

.mobile-install-section-heading > span {
    color: #0c8b78;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.mobile-install-section-heading h2 {
    max-width: 600px;
    margin: 6px auto 7px;
    color: #123f37;
    font-size:
        clamp(1.4rem, 5.7vw, 1.9rem);
    font-weight: 850;
    line-height: 1.25;
}

.mobile-install-section-heading p {
    max-width: 560px;
    margin: 0 auto;
    color: #6b827d;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* =========================================================
   CARTES DE FONCTIONNALITÉS
   ========================================================= */

.mobile-install-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
}

.mobile-install-feature-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid
        rgba(14, 96, 83, 0.1);
    border-radius: 19px;
    background:
        rgba(255, 255, 255, 0.96);
    box-shadow:
        0 9px 23px
        rgba(20, 73, 63, 0.06);
}

.mobile-install-feature-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 1.25rem;
}

.mobile-install-feature-icon.family {
    background: #dff4ef;
    color: #087565;
}

.mobile-install-feature-icon.payment {
    background: #fff0cb;
    color: #946408;
}

.mobile-install-feature-icon.documents {
    background: #e7efff;
    color: #3765a9;
}

.mobile-install-feature-icon.calendar {
    background: #f0e7ff;
    color: #7453ae;
}

.mobile-install-feature-icon.notifications {
    background: #ffe7e1;
    color: #b64b3d;
}

.mobile-install-feature-icon.courses {
    background: #dff1fb;
    color: #25759c;
}

.mobile-install-feature-card h3 {
    margin: 0 0 3px;
    color: #18473f;
    font-size: 0.98rem;
    font-weight: 800;
}

.mobile-install-feature-card p {
    margin: 0;
    color: #728984;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* =========================================================
   INFORMATION
   ========================================================= */

.mobile-install-info {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 18px;
    padding: 17px;
    border: 1px solid
        rgba(14, 96, 83, 0.11);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            #e5f6f2,
            #f4fbf9
        );
}

.mobile-install-info-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #0e8e7b;
    color: #fff;
    font-size: 1.25rem;
}

.mobile-install-info h2 {
    margin: 0 0 4px;
    color: #17483f;
    font-size: 1rem;
    font-weight: 800;
}

.mobile-install-info p {
    margin: 0;
    color: #627d77;
    font-size: 0.82rem;
    line-height: 1.45;
}

/* =========================================================
   FOOTER
   ========================================================= */

.mobile-install-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    color: #627b76;
    text-align: left;
}

[dir="rtl"] .mobile-install-footer {
    text-align: right;
}

.mobile-install-footer img {
    width: 39px;
    height: 39px;
    object-fit: contain;
}

.mobile-install-footer strong,
.mobile-install-footer span {
    display: block;
}

.mobile-install-footer strong {
    color: #315d55;
    font-size: 0.79rem;
    font-weight: 800;
}

.mobile-install-footer span {
    margin-top: 1px;
    font-size: 0.72rem;
}

/* =========================================================
   ÉLÉMENTS MASQUÉS
   ========================================================= */

.mobile-install-page [hidden] {
    display: none !important;
}

/* =========================================================
   TABLETTES ET DESKTOP
   ========================================================= */

@media (min-width: 600px) {
    .mobile-install-shell {
        padding-right: 22px;
        padding-left: 22px;
    }

    .mobile-install-hero {
        padding-right: 45px;
        padding-left: 45px;
        border-radius: 30px;
    }

    .mobile-install-panel {
        margin-top: 17px;
        border-radius: 25px;
        padding: 28px;
    }

    .mobile-install-feature-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .mobile-install-feature-card {
        min-height: 105px;
        align-items: flex-start;
    }

    .mobile-install-primary-button,
    .mobile-install-secondary-button {
        max-width: 430px;
    }

    .mobile-install-action-block,
    .mobile-install-desktop {
        text-align: center;
    }
}

/* =========================================================
   TRÈS PETITS ÉCRANS
   ========================================================= */

@media (max-width: 360px) {
    .mobile-install-shell {
        padding-right: 10px;
        padding-left: 10px;
    }

    .mobile-install-hero {
        padding-right: 14px;
        padding-left: 14px;
    }

    .mobile-install-hero h1 {
        font-size: 1.55rem;
    }

    .mobile-install-panel {
        padding-right: 13px;
        padding-left: 13px;
    }

    .mobile-install-step {
        grid-template-columns:
            31px
            minmax(0, 1fr)
            24px;
        gap: 8px;
        padding: 11px;
    }

    .mobile-install-step-number {
        width: 31px;
        height: 31px;
    }
}

/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .mobile-install-primary-button,
    .mobile-install-secondary-button,
    .mobile-install-feature-card {
        transition: none;
    }
}