/* Page /application (templates/app/index.html.twig).
   Thème « Deux camps » : jetons --jtp-* de jtp-theme.css (sarcelle A, corail B). */

.apx {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
    color: var(--jtp-ink, #0d2226);
}

.apx h1, .apx h2 {
    font-family: var(--jtp-font-display, inherit);
    color: var(--jtp-ink, #0d2226);
    letter-spacing: -.01em;
}
.apx h2 {
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    text-align: center;
    margin: 0 0 1.5rem;
}

/* ---------- Hero ---------- */
.apx-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem 0 2rem;
}
.apx-kicker {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1rem;
    padding: .3rem .9rem .3rem .3rem;
    border-radius: 999px;
    background: var(--jtp-a-soft, #d6ebed);
    color: var(--jtp-a-deep, #0f4a52);
    font-weight: 700;
    font-size: .9rem;
}
.apx-kicker img { border-radius: 8px; }
.apx-hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.1rem);
    line-height: 1.08;
    margin: 0 0 1rem;
}
.apx-lead {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--jtp-muted, #56696c);
    margin: 0 0 1.25rem;
    max-width: 38rem;
}
.apx-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.apx-pills li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: var(--jtp-surface, #fff);
    border: 1.5px solid var(--jtp-line, #d3dfdd);
    font-weight: 600;
    font-size: .9rem;
}
.apx-pills i { color: var(--jtp-a, #1b6f7c); }

/* Boutons des stores (proches des badges officiels) */
.apx-stores { display: flex; flex-wrap: wrap; gap: .75rem; }
.apx-store {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: 190px;
    padding: .7rem 1.3rem .7rem 1.1rem;
    border-radius: 14px;
    background: #0d2226;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(13, 34, 38, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}
a.apx-store:hover, a.apx-store:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(13, 34, 38, .32);
}
a.apx-store:focus-visible { outline: 3px solid var(--jtp-pop, #ffd23f); outline-offset: 3px; }
.apx-store i { font-size: 1.8rem; width: 1.8rem; text-align: center; }
.apx-store > span { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.25rem; font-weight: 700; }
.apx-store small { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.apx-store.is-soon {
    background: var(--jtp-surface, #fff);
    color: var(--jtp-muted, #56696c);
    border: 1.5px dashed var(--jtp-line, #d3dfdd);
    box-shadow: none;
    cursor: default;
}
.apx-ios-note {
    display: flex;
    gap: .5rem;
    align-items: baseline;
    margin: 1rem 0 0;
    font-size: .9rem;
    color: var(--jtp-muted, #56696c);
    max-width: 34rem;
}

/* Téléphone */
.apx-hero-visual { display: flex; justify-content: center; }
.apx-phone {
    position: relative;
    width: min(280px, 100%);
    padding: 10px;
    border-radius: 42px;
    background: #0d2226;
    box-shadow: 0 30px 60px -20px rgba(13, 34, 38, .45), inset 0 0 0 2px rgba(255, 255, 255, .06);
    transform: rotate(2.5deg);
}
.apx-phone::before {
    content: '';
    position: absolute;
    inset: -28px -40px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--jtp-b-soft, #fde3d7), transparent),
                radial-gradient(closest-side at 20% 80%, var(--jtp-a-soft, #d6ebed), transparent);
}
.apx-phone img { display: block; width: 100%; height: auto; border-radius: 32px; }

/* ---------- Chiffres ---------- */
.apx-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 3.5rem;
    padding: 1.25rem;
    border-radius: var(--jtp-r-lg, 22px);
    background: var(--jtp-surface, #fff);
    box-shadow: var(--jtp-shadow);
}
.apx-stats > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; }
.apx-stats strong {
    font-family: var(--jtp-font-display, inherit);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    line-height: 1.1;
    color: var(--jtp-a, #1b6f7c);
}
.apx-stats > div:nth-child(even) strong { color: var(--jtp-b-deep, #b8471c); }
.apx-stats span { font-size: .9rem; color: var(--jtp-muted, #56696c); }

/* ---------- Sections ---------- */
.apx-section { margin: 0 0 3.5rem; }

/* Captures */
.apx-shots {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: .5rem .25rem 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.apx-shots:focus-visible { outline: 3px solid var(--jtp-a, #1b6f7c); outline-offset: 4px; border-radius: 12px; }
.apx-shots figure { flex: 0 0 auto; width: 220px; margin: 0; scroll-snap-align: start; }
.apx-shots img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    border: 1px solid var(--jtp-line, #d3dfdd);
    box-shadow: 0 10px 24px -10px rgba(13, 34, 38, .3);
}
.apx-shots figcaption { margin-top: .6rem; font-size: .85rem; line-height: 1.4; color: var(--jtp-muted, #56696c); text-align: center; }

/* Fonctionnalités */
.apx-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
}
.apx-feature {
    padding: 1.4rem;
    border-radius: var(--jtp-r-lg, 22px);
    background: var(--jtp-surface, #fff);
    border: 1.5px solid var(--jtp-line, #d3dfdd);
}
.apx-feature h3 { font-size: 1.1rem; margin: .9rem 0 .4rem; color: var(--jtp-ink, #0d2226); }
.apx-feature p { margin: 0; line-height: 1.55; color: var(--jtp-muted, #56696c); }
.apx-feature-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.1rem;
}
.apx-feature.is-a .apx-feature-icon { background: var(--jtp-a-soft, #d6ebed); color: var(--jtp-a-deep, #0f4a52); }
.apx-feature.is-b .apx-feature-icon { background: var(--jtp-b-soft, #fde3d7); color: var(--jtp-b-deep, #b8471c); }

/* Trois gestes */
.apx-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
    counter-reset: apx-step;
    padding: 0;
    margin: 0;
}
.apx-steps li {
    counter-increment: apx-step;
    position: relative;
    padding: 3.4rem 1.3rem 1.3rem;
    border-radius: var(--jtp-r-lg, 22px);
    background: var(--jtp-surface-2, #f5f9f8);
    line-height: 1.5;
    font-weight: 600;
}
.apx-steps li::before {
    content: counter(apx-step);
    position: absolute;
    top: 1rem;
    left: 1.3rem;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--jtp-pop, #ffd23f);
    color: var(--jtp-pop-ink, #231a00);
    font-family: var(--jtp-font-display, inherit);
    font-weight: 800;
}

/* Site ou app */
.apx-site {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    margin: 0 0 3.5rem;
    padding: 2rem;
    border-radius: var(--jtp-r-lg, 22px);
    background: linear-gradient(135deg, var(--jtp-a, #1b6f7c), var(--jtp-a-deep, #0f4a52));
    color: #fff;
}
.apx-site > div { flex: 1 1 26rem; }
.apx-site h2 { color: #fff; text-align: left; margin: 0 0 .6rem; }
.apx-site p { margin: 0; line-height: 1.6; opacity: .95; }
.apx-site-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.3rem;
    border-radius: 12px;
    background: var(--jtp-pop, #ffd23f);
    color: var(--jtp-pop-ink, #231a00);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.apx-site-cta:hover, .apx-site-cta:focus-visible { color: var(--jtp-pop-ink, #231a00); filter: brightness(1.05); }
.apx-site-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* FAQ */
.apx-faq { max-width: 780px; margin-left: auto; margin-right: auto; }
.apx-faq details {
    border-bottom: 1.5px solid var(--jtp-line, #d3dfdd);
}
.apx-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem .25rem;
    cursor: pointer;
    list-style: none;
}
.apx-faq summary::-webkit-details-marker { display: none; }
.apx-faq summary::after {
    content: '+';
    flex: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--jtp-a, #1b6f7c);
    transition: transform .2s ease;
}
.apx-faq details[open] summary::after { transform: rotate(45deg); }
.apx-faq summary h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--jtp-ink, #0d2226); }
.apx-faq details p { margin: 0 .25rem 1.2rem; line-height: 1.6; color: var(--jtp-muted, #56696c); }

/* Appel final */
.apx-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-radius: var(--jtp-r-lg, 22px);
    background: var(--jtp-b-soft, #fde3d7);
}
.apx-final h2 { margin: 0 0 .5rem; }
.apx-final p { margin: 0 0 1.4rem; color: var(--jtp-ink, #0d2226); }
.apx-final .apx-stores { justify-content: center; }

/* ---------- Petits écrans ---------- */
@media (max-width: 800px) {
    .apx-hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 1.5rem; }
    .apx-hero-visual { order: 2; }
    .apx-phone { width: min(230px, 70%); }
    .apx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .apx-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
    .apx-store { flex: 1 1 100%; }
    .apx-shots figure { width: 70vw; }
}
@media (prefers-reduced-motion: reduce) {
    .apx-store, .apx-faq summary::after { transition: none; }
    .apx-phone { transform: none; }
}
