:root {
    --forest: #123d43;
    --forest-dark: #092c32;
    --sage: #c7efdb;
    --mint: #e3f3e9;
    --ivory: #f6f8f4;
    --white: #ffffff;
    --text: #183b3c;
    --muted: #657d78;
    --border: #e3ebe5;
    --shadow: 0 9px 26px rgba(18, 61, 67, .055);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
    margin-top: 0;
}

a:focus-visible {
    outline: 3px solid #35b69b;
    outline-offset: 4px;
}

/*
 * AFFICHAGE PAR DEFAUT :
 * ordinateur et grand ecran.
 * L'application mobile est masquee.
 */

.mobile-app {
    display: none !important;
}

.desktop-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 35px;
    background:
        radial-gradient(circle at 15% 15%, #24585a 0, transparent 35%),
        linear-gradient(140deg, #092c32, #123d43);
}

.desktop-notice-card {
    width: min(100%, 510px);
    padding: 55px 43px;
    border: 1px solid rgba(199, 239, 219, .22);
    border-radius: 26px;
    background: rgba(255, 255, 255, .055);
    color: white;
    text-align: center;
    box-shadow: 0 25px 75px rgba(0, 0, 0, .13);
}

.desktop-logo {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 21px;
    background: var(--sage);
    color: var(--forest);
    font-size: 49px;
}

.desktop-brand strong,
.desktop-brand span {
    display: block;
}

.desktop-brand strong {
    font-size: 23px;
    letter-spacing: 1px;
}

.desktop-brand span {
    color: var(--sage);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
}

.desktop-phone {
    margin: 40px auto 22px;
    color: var(--sage);
}

.desktop-notice h1 {
    color: white;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -.8px;
}

.desktop-notice p {
    max-width: 390px;
    margin: 18px auto 25px;
    color: #d1e5de;
    font-size: 15px;
    line-height: 1.75;
}

.desktop-address {
    display: inline-block;
    padding: 11px 17px;
    border: 1px solid rgba(199, 239, 219, .3);
    border-radius: 30px;
    color: var(--sage);
    font-size: 13px;
    font-weight: 750;
}

/*
 * APPLICATION SMARTPHONE
 */

@media screen and (max-width: 767px) {

    .desktop-notice {
        display: none !important;
    }

    .mobile-app {
        display: block !important;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        background: var(--ivory);
    }

    .mobile-topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        min-height: 76px;
        padding: 13px 19px;
        background: var(--forest);
        color: white;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 11px;
    }

    .mobile-brand-icon {
        display: grid;
        place-items: center;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        border-radius: 13px;
        background: var(--sage);
        color: var(--forest);
        font-size: 28px;
        font-weight: 800;
    }

    .mobile-brand-text strong,
    .mobile-brand-text span {
        display: block;
    }

    .mobile-brand-text strong {
        font-size: 15px;
        font-weight: 850;
        letter-spacing: .5px;
    }

    .mobile-brand-text span {
        color: var(--sage);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 2.1px;
    }

    .mobile-topbar-label {
        color: #a9d4c4;
        font-size: 9px;
        font-weight: 850;
        letter-spacing: 1.5px;
    }

    .mobile-content {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding: 20px 16px 30px;
    }

    .welcome-panel {
        position: relative;
        padding: 27px 23px;
        overflow: hidden;
        border-radius: 22px;
        background: linear-gradient(135deg, #123d43, #23665b);
        color: white;
        box-shadow: 0 13px 28px rgba(18, 61, 67, .12);
    }

    .welcome-panel::after {
        content: "";
        position: absolute;
        right: -68px;
        top: -60px;
        width: 200px;
        height: 200px;
        border: 1px solid rgba(199, 239, 219, .18);
        border-radius: 50%;
        box-shadow:
            0 0 0 35px rgba(199, 239, 219, .035),
            0 0 0 70px rgba(199, 239, 219, .025);
        pointer-events: none;
    }

    .welcome-eyebrow {
        position: relative;
        z-index: 1;
        color: var(--sage);
        font-size: 9px;
        font-weight: 850;
        letter-spacing: 1.5px;
    }

    .welcome-panel h1 {
        position: relative;
        z-index: 1;
        max-width: 300px;
        margin: 13px 0 10px;
        color: white;
        font-size: clamp(25px, 7vw, 34px);
        font-weight: 850;
        line-height: 1.17;
        letter-spacing: -.9px;
    }

    .welcome-panel p {
        position: relative;
        z-index: 1;
        max-width: 330px;
        margin-bottom: 19px;
        color: #d7e9e1;
        font-size: 12px;
        line-height: 1.65;
    }

    .welcome-country {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 8px 11px;
        border: 1px solid rgba(199, 239, 219, .35);
        border-radius: 30px;
        color: white;
        font-size: 11px;
        font-weight: 800;
    }

    .welcome-country small {
        color: var(--sage);
        font-size: 9px;
        font-weight: 500;
    }

    .mobile-section {
        margin-top: 31px;
    }

    .section-title {
        margin-bottom: 16px;
    }

    .section-eyebrow {
        color: #398372;
        font-size: 9px;
        font-weight: 850;
        letter-spacing: 1.4px;
    }

    .mobile-section h2 {
        margin: 6px 0 0;
        color: var(--forest);
        font-size: 22px;
        font-weight: 850;
        letter-spacing: -.6px;
    }

    .applications-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .application-card {
        display: flex;
        flex-direction: column;
        min-width: 0;
        min-height: 190px;
        padding: 16px 14px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .application-icon {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin-bottom: 16px;
        border-radius: 13px;
        font-size: 23px;
    }

    .icon-country {
        background: #e1f3e9;
    }

    .icon-jobs {
        background: #fff0d9;
    }

    .icon-immigration {
        background: #e8e7fa;
    }

    .icon-chat {
        background: #dff2f6;
    }

    .icon-notifications {
        background: #fbe8e6;
    }

    .icon-account {
        background: #e8eff6;
    }

    .application-card h3 {
        margin: 0 0 7px;
        color: var(--forest);
        font-size: 15px;
        font-weight: 850;
        line-height: 1.22;
        overflow-wrap: anywhere;
    }

    .application-card p {
        margin-bottom: 13px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.5;
    }

    .application-status {
        margin-top: auto;
        color: #31826b;
        font-size: 9px;
        font-weight: 800;
    }

    .destination-section {
        margin-top: 34px;
    }

    .destination-panel {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        margin-top: 15px;
        padding: 19px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: white;
        box-shadow: var(--shadow);
    }

    .destination-flag {
        font-size: 33px;
        line-height: 1.2;
    }

    .destination-panel h3 {
        margin-bottom: 5px;
        color: var(--forest);
        font-size: 17px;
    }

    .destination-panel p {
        margin-bottom: 8px;
        color: var(--muted);
        font-size: 11px;
    }

    .destination-panel div > span {
        color: #31826b;
        font-size: 10px;
        font-weight: 750;
    }

    .mobile-disclaimer {
        margin-top: 28px;
        padding: 17px;
        border: 1px solid #d6e8de;
        border-radius: 14px;
        background: #eaf4ec;
    }

    .mobile-disclaimer strong {
        color: var(--forest);
        font-size: 12px;
    }

    .mobile-disclaimer p {
        margin: 8px 0 0;
        color: #526f65;
        font-size: 10px;
        line-height: 1.7;
    }

    .mobile-footer {
        padding: 28px 0 10px;
        color: var(--muted);
        font-size: 10px;
        text-align: center;
    }
}

@media screen and (max-width: 350px) {
    .mobile-content {
        padding-inline: 11px;
    }

    .applications-grid {
        gap: 9px;
    }

    .application-card {
        padding: 13px 10px;
    }

    .application-card h3 {
        font-size: 13px;
    }

    .welcome-panel {
        padding: 23px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
