:root {
    --couplis-blue: #07576a;
    --couplis-cream: #fff3d2;
    --couplis-coral: #ff575c;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    background: var(--couplis-blue);
    color: var(--couplis-cream);
    font-family: Georgia, "Times New Roman", serif;
}

body {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

button,
a {
    font: inherit;
}

.app-shell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--couplis-blue);
}

.screens {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(calc(var(--screen-index, 0) * -100%));
    transition: transform 720ms cubic-bezier(.22, .8, .22, 1);
    will-change: transform;
}

.screen,
.single-screen {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    overflow: hidden;
    background: var(--couplis-blue);
    padding: calc(18px + var(--safe-top)) 28px calc(18px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
}

.statusbar {
    flex: 0 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 28px;
    width: 100%;
    color: #061d24;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    opacity: .9;
}

.couplis-logo {
    display: block;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

.logo-xl {
    width: clamp(170px, 46vw, 220px);
    height: clamp(170px, 46vw, 220px);
}

.logo-md {
    width: clamp(104px, 28vw, 132px);
    height: clamp(104px, 28vw, 132px);
}

.logo-final {
    width: clamp(180px, 50vw, 235px);
    height: clamp(180px, 50vw, 235px);
}

.splash-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 34px;
    text-align: center;
}

.splash-content h1 {
    margin: 52px 0 22px;
    font-size: clamp(31px, 8.4vw, 42px);
    line-height: 1.05;
    letter-spacing: .025em;
}

.splash-content p {
    max-width: 310px;
    margin: 0 auto;
    font-size: clamp(19px, 5.3vw, 25px);
    line-height: 1.22;
    font-weight: 700;
}

.top-logo {
    flex: 0 0 auto;
    padding-top: clamp(24px, 6vh, 48px);
    text-align: center;
}

.screen-content {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 8px 0;
}

.welcome-content h2,
.one-content h2 {
    margin: 0 0 34px;
    font-size: clamp(32px, 8.4vw, 41px);
    line-height: 1.08;
    font-weight: 700;
}

.welcome-content p {
    margin: 0 auto;
    max-width: 310px;
    font-size: clamp(21px, 5.6vw, 26px);
    line-height: 1.15;
    font-weight: 700;
}

.quiet-list {
    margin-top: 10px;
}

.quiet-list p {
    margin: 0 0 28px;
    font-size: clamp(20px, 5.3vw, 25px);
    line-height: 1.18;
    font-weight: 700;
}

.text-content h2 {
    margin: 0 0 clamp(30px, 4.8vh, 42px);
    font-size: clamp(23px, 6.05vw, 29px);
    line-height: 1.15;
    font-weight: 700;
}

.text-content p {
    margin: 0 auto clamp(24px, 3.8vh, 34px);
    font-size: clamp(17px, 4.6vw, 21px);
    line-height: 1.18;
    font-weight: 400;
}

.ending-content h2 {
    margin: 0 auto;
    max-width: 330px;
    font-size: clamp(25px, 6.7vw, 32px);
    line-height: 1.18;
    font-weight: 700;
}

.bottom-action {
    flex: 0 0 auto;
    padding-bottom: calc(34px + var(--safe-bottom));
    text-align: center;
}

button,
.app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 280px);
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: var(--couplis-coral);
    color: var(--couplis-cream);
    font-weight: 700;
    font-size: 21px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.app-button.secondary {
    min-height: 38px;
    width: min(100%, 170px);
    background: var(--couplis-cream);
    color: var(--couplis-blue);
    font-size: 16px;
}

button:active,
.app-button:active {
    transform: scale(.98);
}

.final-screen {
    justify-content: flex-start;
}

.final-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: clamp(54px, 9vh, 84px);
}

.brand-block {
    margin-top: clamp(44px, 7vh, 72px);
}

.brand-block h1 {
    margin: 0 0 18px;
    font-size: clamp(31px, 8vw, 40px);
    line-height: 1;
    letter-spacing: .025em;
}

.brand-block p {
    margin: 0 auto;
    max-width: 320px;
    font-size: clamp(19px, 5vw, 24px);
    line-height: 1.2;
    font-weight: 700;
}

.final-actions {
    margin-top: clamp(82px, 13vh, 130px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.onboarding-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    text-align: center;
    padding: 20px 28px 40px;
}

.onboarding-content h1 {
    margin: 20px 0 0;
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.1;
}

.onboarding-content p {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

@media (min-width: 700px) {
    body {
        display: grid;
        place-items: center;
        background: #f5f1ea;
    }

    .app-shell {
        height: min(844px, calc(100dvh - 32px));
        width: auto;
        aspect-ratio: 390 / 844;
        max-width: calc(100vw - 32px);
        border-radius: 28px;
        box-shadow: 0 22px 80px rgba(0, 0, 0, .22);
    }

    .logo-xl {
        width: 180px;
        height: 180px;
    }

    .logo-md {
        width: 108px;
        height: 108px;
    }

    .logo-final {
        width: 220px;
        height: 220px;
    }
}

@media (max-height: 760px) {
    .screen,
    .single-screen {
        padding-left: 24px;
        padding-right: 24px;
        padding-bottom: calc(14px + var(--safe-bottom));
    }

    .top-logo {
        padding-top: 14px;
    }

    .logo-md {
        width: 82px;
        height: 82px;
    }

    .welcome-content h2,
    .one-content h2 {
        margin-bottom: 22px;
    }

    .quiet-list p {
        margin-bottom: 18px;
    }

    .text-content h2 {
        font-size: 21px;
        margin-bottom: 18px;
        line-height: 1.12;
    }

    .text-content p {
        font-size: 15.8px;
        margin-bottom: 15px;
        line-height: 1.12;
    }

    .ending-content h2 {
        font-size: 23px;
    }

    .bottom-action {
        padding-bottom: calc(16px + var(--safe-bottom));
    }

    button,
    .app-button {
        min-height: 50px;
    }

    .final-content {
        padding-top: 28px;
    }

    .logo-final {
        width: 160px;
        height: 160px;
    }

    .brand-block {
        margin-top: 34px;
    }

    .final-actions {
        margin-top: 60px;
    }
}

/* Suppression de la fausse barre téléphone */
.statusbar {
    display: none !important;
}

/* On compense l'espace libéré en haut */
.screen,
.single-screen {
    padding-top: calc(22px + var(--safe-top));
}

.signup-title {
    padding-top: 32px;
}

.top-logo {
    padding-top: clamp(28px, 6.5vh, 56px);
}
