/* PinToDelete — page d'accueil : sections, maquettes de téléphone, démo */

.eyebrow {
    display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: var(--red-light); background: rgba(229, 57, 69, .1); border: 1px solid rgba(229, 57, 69, .3);
    padding: 5px 12px; border-radius: 99px; margin-bottom: 18px;
}
.accent { background: linear-gradient(90deg, #ff7a7f, var(--red) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: #c3c7d1; max-width: 580px; }
.lead.center { margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }

/* Apparition au défilement */
/* Masqué seulement si JavaScript tourne (classe .js ajoutée dans <head>) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ================= HERO ================= */
.l-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; min-height: calc(100vh - 140px); padding: 24px 0 56px; }
.l-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.l-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.l-trust b { color: var(--text); }
.l-trust li::before { content: "✓ "; color: var(--green); font-weight: 900; }

.l-hero-visual { position: relative; height: 620px; display: grid; place-items: center; }
.l-orb {
    position: absolute; width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 199, 129, .22), rgba(229, 57, 69, .12) 45%, transparent 70%);
    filter: blur(10px); animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.l-hero-visual .phone { position: absolute; }
.phone-front { z-index: 3; animation: float 7s ease-in-out infinite; }
.phone.phone-back { --s: .78; z-index: 1; opacity: .55; filter: saturate(.7); }
.phone-left { transform: translateX(-62%) rotate(-9deg); }
.phone-right { transform: translateX(62%) rotate(9deg); }
@keyframes float { 50% { transform: translateY(-14px); } }

@media (max-width: 920px) {
    .l-hero { grid-template-columns: 1fr; min-height: 0; text-align: center; }
    .l-hero .lead { margin-left: auto; margin-right: auto; }
    .hero-cta, .l-trust { justify-content: center; }
    .l-hero-visual { height: 560px; }
}
@media (max-width: 560px) {
    .l-hero-visual { height: 480px; }
    .l-hero-visual .phone-front { --s: .82; }
    .phone-back { display: none; }
}

/* ================= BANDEAU CHIFFRES ================= */
.l-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 110px; }
.l-strip > div {
    position: relative; overflow: hidden; padding: 24px 20px 22px; text-align: center; border-radius: 22px;
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, #171b26, #10131a) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(229, 57, 69, .22)) border-box;
    transition: transform .25s ease, box-shadow .25s ease;
}
.l-strip > div::after {
    content: ""; position: absolute; left: 50%; bottom: -60px; width: 160px; height: 120px; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(229, 57, 69, .22), transparent 70%); transition: opacity .25s; opacity: .6;
}
.l-strip > div:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(229, 57, 69, .12); }
.l-strip > div:hover::after { opacity: 1; }
.s-ico {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; margin-bottom: 10px; font-size: 19px;
    color: var(--red-light); background: rgba(229, 57, 69, .12); border: 1px solid rgba(229, 57, 69, .3);
}
.l-strip b { display: block; font-size: 2.5rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1;
    background: linear-gradient(180deg, #fff, #a3a9b7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-strip > div > span:last-child { color: var(--muted); font-size: .88rem; line-height: 1.35; display: block; margin-top: 4px; position: relative; z-index: 1; }
@media (max-width: 860px) { .l-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= SECTIONS ================= */
.l-section { margin-bottom: 110px; scroll-margin-top: 90px; }
.l-head { text-align: center; margin-bottom: 48px; }
.l-head h2, .l-demo h2, .faq h2, .l-final h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; letter-spacing: -.02em; }

/* --- Histoire en 4 étapes --- */
.l-story { list-style: none; padding: 0; margin: 0 auto; max-width: 1360px; position: relative; }
.l-story::before {
    content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 2px; transform: translateX(-50%);
    background: linear-gradient(180deg, var(--green), var(--orange) 40%, var(--red) 70%, var(--muted-2));
    opacity: .35;
}
.l-story li { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 40px; position: relative; }
.l-story li:nth-child(even) .l-story-phone { order: 2; }
.l-story-phone { display: grid; place-items: center; }
.l-story-text {
    padding: 28px; border-radius: 24px; border: 1px solid transparent;
    background:
        linear-gradient(180deg, rgba(24, 28, 39, .9), rgba(16, 19, 26, .9)) padding-box,
        linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 60%, rgba(229, 57, 69, .25)) border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.l-story-text h3 { font-size: 1.45rem; font-weight: 800; }
.l-story-text p { color: var(--muted); font-size: 1.03rem; margin: 0; }
.l-story li:nth-child(1) .l-num { background: linear-gradient(135deg, #4ee0a0, #179961); box-shadow: 0 10px 30px rgba(39, 199, 129, .35); }
.l-story li:nth-child(2) .l-num { background: linear-gradient(135deg, #ffc56b, #e08a12); box-shadow: 0 10px 30px rgba(255, 170, 53, .35); }
.l-story li:nth-child(4) .l-num { background: linear-gradient(135deg, #a3a9b7, #4a5060); box-shadow: none; }
.l-num {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 14px;
    background: linear-gradient(135deg, var(--red-light), var(--red-dark)); font-weight: 900; font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(229, 57, 69, .35);
}
@media (max-width: 760px) {
    .l-story::before { display: none; }
    .l-story li { grid-template-columns: 1fr; gap: 20px; text-align: center; margin-bottom: 64px; }
    .l-story li:nth-child(even) .l-story-phone { order: 0; }
}

/* --- Démo --- */
.l-demo {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 110px; padding: 48px;
    border-radius: 32px; scroll-margin-top: 90px; border: 1px solid transparent;
    background:
        radial-gradient(600px 300px at 80% 50%, rgba(229, 57, 69, .18), transparent 70%) padding-box,
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 32px) padding-box,
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 32px) padding-box,
        linear-gradient(180deg, #171b26, #10131a) padding-box,
        linear-gradient(140deg, rgba(255, 90, 95, .55), rgba(255, 255, 255, .05) 40%, rgba(255, 255, 255, .03)) border-box;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.l-demo-counter { display: flex; align-items: center; gap: 10px; margin: 24px 0 14px; }
.l-demo-counter span { width: 46px; height: 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); transition: background .3s, box-shadow .3s; }
.l-demo-counter span.hit { background: var(--red); border-color: var(--red); box-shadow: 0 0 18px rgba(229, 57, 69, .7); }
.l-demo-counter b { margin-left: 8px; font-size: 1.05rem; }
.l-sound { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; margin-bottom: 18px; cursor: pointer; }
.l-sound input { accent-color: var(--red); }
.l-demo-phone { display: grid; place-items: center; }
.demo-stage { position: relative; width: calc(28em * 1.02); height: calc(60.6em * 1.02); font-size: 10px; }
.demo-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.demo-layer.is-on { opacity: 1; visibility: visible; }
.demo-stage.shake .demo-layer.is-on .phone { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.demo-stage.flash .demo-layer.is-on .screen::after {
    content: ""; position: absolute; inset: 0; background: rgba(229, 57, 69, .45); animation: flash .5s forwards; pointer-events: none;
}
@keyframes flash { to { opacity: 0; } }
@media (max-width: 900px) {
    .l-demo { grid-template-columns: 1fr; text-align: center; padding: 28px 16px; }
    .l-demo .lead { margin: 0 auto; }
    .l-demo-counter, .l-sound { justify-content: center; }
}
@media (max-width: 420px) {
    .demo-stage { font-size: 8.6px; }
    .phone.phone-demo { --s: .86; }
}

/* --- Galerie --- */
.l-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; }
.l-gallery figure { margin: 0; display: grid; justify-items: center; gap: 18px; text-align: center; }
.l-gallery figcaption { color: var(--muted); font-size: .93rem; max-width: 240px; }
.l-gallery figcaption b { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: 4px; }
.l-gallery .phone { transition: transform .35s ease; }
.l-gallery figure:hover .phone { transform: translateY(-8px); }
@media (max-width: 1060px) {
    .l-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 24px; margin: 0 -16px; }
    .l-gallery figure { flex: 0 0 auto; scroll-snap-align: center; }
}

/* --- Étapes d'installation --- */
.l-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
/* Ligne pointillée qui relie les étapes */
.l-steps::before {
    content: ""; position: absolute; left: 12%; right: 12%; top: 50px; height: 2px; z-index: 0;
    background: repeating-linear-gradient(90deg, rgba(229, 57, 69, .45) 0 8px, transparent 8px 16px);
}
.l-step {
    position: relative; z-index: 1; overflow: hidden; padding: 26px 22px; border-radius: 22px; border: 1px solid transparent;
    background:
        linear-gradient(180deg, #171b26, #10131a) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)) border-box;
    transition: transform .25s ease, background .25s ease;
}
.l-step:hover {
    transform: translateY(-5px);
    background:
        linear-gradient(180deg, #1b1822, #10131a) padding-box,
        linear-gradient(180deg, rgba(255, 90, 95, .6), rgba(255, 255, 255, .04)) border-box;
}
.l-step-n {
    position: absolute; right: 14px; top: -8px; font-size: 5.4rem; font-weight: 900; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(229, 57, 69, .3);
}
.l-step-ico {
    width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; color: #fff;
    background: linear-gradient(135deg, var(--red-light), var(--red-dark)); box-shadow: 0 10px 26px rgba(229, 57, 69, .35);
}
.l-step h3 { margin-top: 18px; }
.l-step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .l-steps::before { display: none; } }
@media (max-width: 960px) { .l-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .l-steps { grid-template-columns: 1fr; } }

/* --- Avant / après --- */
.l-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: none; margin: 0; }
.l-col { position: relative; border-radius: 24px; padding: 30px; border: 1px solid transparent; }
.l-col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.l-col-head h3 { margin: 0; font-size: 1.25rem; }
.l-col-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; }
.l-col-tag { margin-left: auto; padding: 4px 10px; border-radius: 99px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--green); color: #062817; }
.l-col ul { list-style: none; padding: 0; margin: 0; }
.l-col li { padding: 11px 0 11px 34px; position: relative; color: #c3c7d1; border-top: 1px solid rgba(255, 255, 255, .05); }
.l-col li::before { position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 900; }
.l-col.bad { background: linear-gradient(180deg, #13151c, #0f1117) padding-box, linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)) border-box; }
.l-col.bad h3, .l-col.bad li { color: var(--muted); }
.l-col.bad .l-col-ico { background: rgba(138, 145, 160, .12); color: var(--muted); }
.l-col.bad li::before { content: "✕"; background: rgba(138, 145, 160, .14); color: var(--muted); }
.l-col.good {
    background:
        radial-gradient(400px 200px at 100% 0, rgba(39, 199, 129, .14), transparent 70%) padding-box,
        linear-gradient(180deg, #121a18, #10131a) padding-box,
        linear-gradient(160deg, rgba(39, 199, 129, .7), rgba(39, 199, 129, .1) 60%) border-box;
    box-shadow: 0 24px 60px rgba(39, 199, 129, .1);
}
.l-col.good h3 { color: var(--text); }
.l-col.good .l-col-ico { background: rgba(39, 199, 129, .16); color: var(--green); border: 1px solid rgba(39, 199, 129, .4); }
.l-col.good li { color: #dfe3ea; }
.l-col.good li::before { content: "✓"; background: rgba(39, 199, 129, .18); color: var(--green); }
@media (max-width: 760px) { .l-compare { grid-template-columns: 1fr; } }

/* --- Tarif --- */
.l-pricing { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; max-width: 1080px; margin: 0 auto; }
.l-pricing-mascot img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(229, 57, 69, .3)); }
@media (max-width: 860px) {
    .l-pricing { grid-template-columns: 1fr; justify-items: center; }
    .l-pricing-mascot { max-width: 380px; }
}

/* --- Appel final --- */
.l-final {
    text-align: center; padding: 56px 24px; margin-bottom: 48px; border-radius: 32px;
    background: radial-gradient(500px 220px at 50% 0, rgba(229, 57, 69, .28), transparent 70%), var(--surface);
    border: 1px solid rgba(229, 57, 69, .3);
}
.l-final h2 { max-width: 640px; margin: 0 auto 26px; }

/* ================= MAQUETTE DE TÉLÉPHONE =================
   Toutes les dimensions sont en em : --s change la taille de tout le téléphone. */
.phone {
    --s: 1;
    font-size: calc(10px * var(--s));
    width: 28em; height: 60.6em; padding: .7em; border-radius: 4.2em; position: relative; flex: 0 0 auto;
    background: linear-gradient(150deg, #3a404f, #12141b 40%, #1d212b);
    box-shadow: 0 0 0 .15em #4a5162, 0 3em 6em rgba(0, 0, 0, .55), inset 0 0 .4em rgba(255, 255, 255, .12);
}
.phone-sm { --s: .82; }
.phone-demo { --s: 1.02; }
.phone-notch { position: absolute; top: 1.7em; left: 50%; width: 1.1em; height: 1.1em; margin-left: -.55em; border-radius: 50%; background: #05060a; z-index: 5; box-shadow: 0 0 0 .2em #11131a; }
.screen {
    position: relative; height: 100%; border-radius: 3.6em; overflow: hidden; background: #090B10;
    color: #fff; font-family: Roboto, system-ui, sans-serif; line-height: 1.3;
}
.screen .shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.statusbar { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; justify-content: space-between; padding: 1.3em 2.4em 0; font-size: 1.1em; font-weight: 600; }
.sb-icons { display: flex; align-items: center; gap: .35em; }
.sb-icons i { width: .5em; height: .9em; background: #fff; border-radius: .1em; opacity: .9; }
.sb-icons i:first-child { height: .6em; }
.sb-icons b { width: 1.7em; height: .85em; border: .12em solid #fff; border-radius: .25em; position: relative; }
.sb-icons b::after { content: ""; position: absolute; inset: .12em; right: .45em; background: #fff; border-radius: .08em; }

/* ---- Écran de l'application ---- */
.app {
    height: 100%; min-height: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain;
    padding: 4.2em 1.6em 1.6em; display: flex; flex-direction: column; align-items: center;
    background: linear-gradient(180deg, #10131D, #090B10 45%);
}
.app::-webkit-scrollbar { display: none; }
.app > * { flex: 0 0 auto; }
.a-header { display: flex; align-items: center; gap: .7em; font-weight: 700; font-size: 1.55em; }
.a-header img { width: 1.15em; height: auto; }
.a-header b { color: var(--red); }
.a-emblem { position: relative; width: 17em; height: 17em; display: grid; place-items: center; margin: .2em 0 -.4em; --c: var(--green); }
.a-emblem.tone-orange { --c: var(--orange); }
.a-emblem.tone-grey { --c: #4A5060; }
.a-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 38%, transparent), transparent 68%); animation: breathe 3.6s ease-in-out infinite; }
.tone-grey .a-glow { opacity: .35; animation: none; }
.a-ring {
    position: absolute; width: 14em; height: 14em; border-radius: 50%; border: .25em solid transparent;
    border-top-color: var(--c); border-right-color: color-mix(in srgb, var(--c) 45%, transparent);
    box-shadow: 0 0 0 .08em rgba(36, 41, 56, .9); animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tone-grey .a-ring { border-color: rgba(36, 41, 56, .9); animation: none; }
.a-disc {
    width: 11.6em; height: 11.6em; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(180deg, #1A1E2A, #12151E); border: .15em solid color-mix(in srgb, var(--c) 70%, transparent);
}
.a-disc img { width: 5.4em; height: auto; }
.tone-grey .a-disc img { filter: grayscale(1); opacity: .55; }
.a-dot {
    position: absolute; bottom: 2em; width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center;
    background: var(--c); color: #090B10; font-weight: 900; font-size: 1.05em; border: .22em solid #090B10;
}
.a-pill {
    --c: var(--green); display: flex; align-items: center; gap: .6em; padding: .45em 1.2em; border-radius: 99em;
    background: color-mix(in srgb, var(--c) 13%, transparent); border: .1em solid color-mix(in srgb, var(--c) 45%, transparent);
    color: var(--c); font-weight: 900; letter-spacing: .1em; font-size: 1.5em;
}
.a-pill i { width: .45em; height: .45em; border-radius: 50%; background: var(--c); }
.a-pill.tone-orange { --c: var(--orange); }
.a-pill.tone-grey { --c: #8A91A0; }
.a-sub { color: #8A91A0; text-align: center; font-size: 1.22em; margin: .7em .4em .8em; }
.a-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: .45em; margin-bottom: 1.3em; }
.a-chips span { font-size: .85em; color: #8A91A0; background: #12151E; border: .1em solid #242938; border-radius: 99em; padding: .3em .7em; white-space: nowrap; }
.a-chips em { font-style: normal; color: var(--red-light); margin-right: .3em; }
.a-card { width: 100%; background: #12151E; border: .1em solid #242938; border-radius: 1.6em; padding: 1.3em; margin-bottom: 1em; }
.a-card.tone-red-border { border-color: rgba(229, 57, 69, .55); }
.a-card.tone-green-border { border-color: rgba(39, 199, 129, .5); }
.a-card.tone-orange-border { border-color: rgba(255, 170, 53, .6); }
.a-title { font-weight: 600; font-size: 1.3em; margin-bottom: .6em; }
.tone-green-text { color: var(--green); }
.a-text { font-size: 1.1em; color: #fff; margin: 0; }
.a-th { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55em; }
.a-th div { min-width: 0; background: #1A1E2A; border: .12em solid transparent; border-radius: 1.2em; text-align: center; padding: .8em .2em .6em; }
.a-th div.on { background: rgba(229, 57, 69, .16); border-color: var(--red); }
.a-th b { display: block; font-size: 2.2em; font-weight: 900; line-height: 1; color: #8A91A0; }
.a-th .on b { color: #fff; }
.a-th small { font-size: 1em; color: #4A5060; }
.a-th .on small { color: var(--red-light); }
.a-btn {
    width: 100%; height: 4.4em; border-radius: 1.4em; display: grid; place-items: center; margin-bottom: 1em;
    background: linear-gradient(90deg, #B3122A, var(--red), #FF5252); font-weight: 700; letter-spacing: .08em; font-size: 1.15em;
}
.a-card .a-btn { height: 3.8em; margin: .9em 0 .2em; }
.a-btn.outline { background: none; border: .12em solid #242938; color: #8A91A0; }
.a-btn.locked { background: #1A1E2A; border: .1em solid #242938; color: #4A5060; }
.a-input {
    border: .12em solid var(--red); border-radius: 1.1em; background: #090B10; padding: .85em 1em;
    font-family: ui-monospace, Consolas, monospace; font-size: 1.15em; letter-spacing: .06em; white-space: nowrap; overflow: hidden;
}
.caret { display: inline-block; width: .1em; height: 1.1em; background: var(--red); vertical-align: middle; margin-left: .15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.a-link { text-align: center; color: var(--red-light); font-size: 1.05em; padding-top: .5em; }
.a-link.right { text-align: right; font-weight: 700; }
.a-row { display: flex; align-items: center; gap: 1em; }
.a-row small { color: #8A91A0; font-size: 1em; }
.a-row .a-title { margin-bottom: .2em; }
.a-switch { flex: 0 0 auto; width: 4.6em; height: 2.7em; border-radius: 99em; background: #1A1E2A; border: .15em solid #4A5060; position: relative; }
.a-switch i { position: absolute; top: .45em; left: .5em; width: 1.5em; height: 1.5em; border-radius: 50%; background: #4A5060; }
.a-switch.on { background: var(--orange); border-color: var(--orange); }
.a-switch.on i { left: auto; right: .3em; top: .25em; width: 1.9em; height: 1.9em; background: #fff; }
.a-plan { flex: 0 0 auto; border: .1em solid #3a4050; border-radius: 99em; padding: .28em .7em; color: #c8cbd3; background: #1a1e2a; font-size: .88em; font-weight: 700; white-space: nowrap; }
.a-plan.plan-pro { color: #ff747d; border-color: rgba(229, 57, 69, .45); background: rgba(229, 57, 69, .12); }
.a-plan.plan-ultimate { color: #f5c451; border-color: rgba(245, 196, 81, .4); background: rgba(245, 196, 81, .1); }
.a-feat { display: grid; grid-template-columns: 1.4em minmax(0, 1fr) auto; align-items: start; gap: .65em; width: 100%; padding: .8em 0; border-top: .1em solid #242938; }
.a-feat-ico { color: #7d8494; font-size: 1em; line-height: 1.3; text-align: center; }
.a-feat.on .a-feat-ico, .a-ok { color: var(--green); }
.a-feat-txt { min-width: 0; overflow-wrap: anywhere; }
.a-feat-txt b { display: block; color: #f4f5f8; font-size: 1em; line-height: 1.25; }
.a-feat-txt small { display: block; margin-top: .25em; color: #8A91A0; font-size: .88em; line-height: 1.35; }
.a-lock { align-self: start; padding: .2em .55em; border: .1em solid rgba(229, 57, 69, .25); border-radius: 99em; color: #aeb3c0; background: rgba(229, 57, 69, .08); font-size: .78em; font-weight: 700; white-space: nowrap; }
.a-switch { margin-top: .1em; transform: scale(.78); transform-origin: top right; }
.a-ok { font-size: 1.2em; font-weight: 900; }
.a-wide { display: block; width: 100%; margin-top: .7em; }

/* ---- Écran verrouillé ---- */
.lock {
    height: 100%; display: flex; flex-direction: column; align-items: center; padding: 6em 2.4em 2.4em;
    background: radial-gradient(30em 30em at 30% 10%, #2b3350, transparent 70%), linear-gradient(180deg, #161b2b, #0b0d14);
}
.lock-time { font-size: 6.4em; font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.lock-date { color: #c7cbd6; font-size: 1.3em; margin: .4em 0 2.6em; }
.lock-icon { font-size: 1.8em; }
.lock-msg { font-size: 1.3em; margin: .5em 0 1.2em; min-height: 1.4em; color: #fff; transition: color .2s; }
.lock-msg.err { color: #ff8a90; }
.lock-dots { display: flex; gap: 1.3em; margin-bottom: 2.6em; }
.lock-dots i { width: 1.2em; height: 1.2em; border-radius: 50%; border: .14em solid #fff; transition: background .15s; }
.lock-dots i.on { background: #fff; }
.lock-pad { display: grid; grid-template-columns: repeat(3, 6.2em); gap: 1.3em 2em; }
.lock-pad button, .lock-pad span {
    width: 6.2em; height: 6.2em; border-radius: 50%; border: 0; font: inherit; font-size: 1em; color: #fff;
    display: grid; place-items: center;
}
.lock-pad button { background: rgba(255, 255, 255, .09); font-size: 2.6em; width: 2.4em; height: 2.4em; cursor: default; transition: background .12s; }
.lock-pad button:last-child { background: none; font-size: 2em; width: 3.1em; height: 3.1em; }
.phone-demo .lock-pad button { cursor: pointer; }
.phone-demo .lock-pad button:active, .lock-pad button.pressed { background: rgba(255, 255, 255, .3); }
.lock-dots.err i { border-color: #ff8a90; }
.lock-dots.err i.on { background: #ff8a90; }

/* ---- Écran avant effacement ---- */
.wipe { height: 100%; display: grid; place-items: center; background: #000; }
.wipe img { width: 100%; height: auto; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* ---- Effacement en cours ---- */
.erase { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4em; background: #000; color: #c7cbd6; font-size: 1.4em; }
.erase-logo { font-size: 3em; animation: spin 1.2s linear infinite; color: #fff; }
.erase-bar { width: 60%; height: .35em; border-radius: 99em; background: #1A1E2A; overflow: hidden; }
.erase-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red-light)); }
.demo-layer.is-on .erase-bar i { animation: fill 2.6s ease-in-out forwards; }
@keyframes fill { to { width: 100%; } }

/* ---- Téléphone réinitialisé ---- */
.reset {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3em;
    background: linear-gradient(180deg, #e9eef7, #fff); color: #1b1f2a;
}
.reset-hi { font-size: 3.4em; font-weight: 400; }
.reset-sub { color: #5b6170; font-size: 1.3em; margin: .4em 0 3em; }
.reset-lang { border: .1em solid #cfd5e2; border-radius: 99em; padding: .8em 1.6em; font-size: 1.2em; margin-bottom: 1.6em; }
.reset-btn { background: #2f6fe4; color: #fff; padding: .9em 2.6em; border-radius: 99em; font-size: 1.25em; font-weight: 600; }
.reset-note { margin-top: 3em; color: var(--red); font-weight: 700; font-size: 1.1em; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .phone-front, .l-orb, .a-ring, .a-glow, .erase-logo { animation: none; }
}

/* ================= VIE PRIVÉE ================= */
.l-threats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) { .l-threats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .l-threats { grid-template-columns: 1fr; } }
.l-threat {
    position: relative; overflow: hidden; padding: 28px 24px; border-radius: 24px; border: 1px solid transparent;
    background:
        linear-gradient(180deg, #171b26, #10131a) padding-box,
        linear-gradient(170deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 60%, rgba(229, 57, 69, .3)) border-box;
    transition: transform .25s ease, box-shadow .25s ease;
}
.l-threat::after { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 57, 69, .18), transparent 70%); }
.l-threat:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(229, 57, 69, .14); }
.l-threat-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; color: #fff; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--red-light), var(--red-dark)); box-shadow: 0 12px 28px rgba(229, 57, 69, .35); }
.l-threat h3 { font-size: 1.15rem; }
.l-threat p { color: var(--muted); margin: 0; font-size: .95rem; }
.l-privacy-promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 22px; border-radius: 22px; overflow: hidden; background: var(--border); border: 1px solid var(--border); }
.l-privacy-promise > div { background: #0f1218; padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.l-privacy-promise .i { grid-row: span 2; font-size: 26px; color: var(--green); }
.l-privacy-promise span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .l-privacy-promise { grid-template-columns: 1fr; } }

/* ================= COMPATIBILITÉ ================= */
.l-compat {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px; border-radius: 32px; border: 1px solid transparent;
    background:
        radial-gradient(500px 260px at 0 100%, rgba(39, 199, 129, .12), transparent 70%) padding-box,
        linear-gradient(180deg, #171b26, #10131a) padding-box,
        linear-gradient(140deg, rgba(39, 199, 129, .45), rgba(255, 255, 255, .05) 45%, rgba(229, 57, 69, .35)) border-box;
}
.l-compat h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; }
.l-compat-form { display: grid; gap: 16px; padding: 26px; border-radius: 22px; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); }
.l-compat-form label { display: grid; gap: 8px; font-weight: 700; font-size: .92rem; }
.compat-result { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; border: 1px solid; animation: pop .35s ease; }
.compat-result[hidden] { display: none; }
.compat-result b { font-size: 1.1rem; }
.compat-result span { color: #c3c7d1; font-size: .93rem; }
.compat-result .btn { justify-self: start; margin-top: 6px; }
.compat-result.is-ok { background: rgba(39, 199, 129, .08); border-color: rgba(39, 199, 129, .45); }
.compat-result.is-ok b { color: var(--green); }
.compat-result.is-warn { background: rgba(255, 170, 53, .08); border-color: rgba(255, 170, 53, .45); }
.compat-result.is-warn b { color: var(--orange); }
.compat-result.is-ko { background: rgba(229, 57, 69, .08); border-color: rgba(229, 57, 69, .45); }
.compat-result.is-ko b { color: var(--red-light); }
@media (max-width: 900px) { .l-compat { grid-template-columns: 1fr; padding: 28px 18px; gap: 24px; } }

/* ================= TARIF : écran de réinitialisation ================= */
.l-pricing-visual { display: grid; place-items: center; position: relative; }
.l-pricing-visual::before { content: ""; position: absolute; width: 420px; height: 420px; max-width: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(229, 57, 69, .35), transparent 65%); filter: blur(10px); }
.phone.phone-price { --s: .9; transform: rotate(-5deg); }
@media (max-width: 860px) { .phone.phone-price { --s: .75; transform: none; } }
.wipe-full { background: #000; }
.wipe-full img { width: 100%; height: 100%; object-fit: contain; animation: none; }

/* Comparatif pleine largeur : textes plus grands */
.l-col { padding: 38px 40px; }
.l-col-head h3 { font-size: 1.45rem; }
.l-col li { font-size: 1.05rem; padding-top: 14px; padding-bottom: 14px; }
.l-col li::before { top: 14px; }
@media (max-width: 760px) { .l-col { padding: 26px 22px; } }

/* ---- Maquettes app 2.3 : carte licence active, confirmation ---- */
.a-row-between { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.a-row-between .a-title { margin-bottom: 0; }
.a-chip-ok { font-size: .95em; font-weight: 700; color: var(--green); background: rgba(39, 199, 129, .14); padding: .3em .8em; border-radius: 99em; white-space: nowrap; }
.a-key { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 1.25em; letter-spacing: .06em; margin: .7em 0 .3em; color: #fff; white-space: nowrap; overflow: hidden; }
.a-small { display: block; color: #8A91A0; font-size: 1em; }
.a-btns { display: flex; gap: .8em; margin-top: 1em; }
.a-obtn { flex: 1; text-align: center; padding: .8em .4em; border-radius: 1.1em; border: .1em solid #242938; color: #8A91A0; font-weight: 700; font-size: 1.05em; white-space: nowrap; }
.a-obtn.red { border-color: rgba(229, 57, 69, .6); color: var(--red-light); }
.app-dim { position: relative; }
.app-dim::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); z-index: 1; }
.a-dialog {
    position: absolute; left: 1.6em; right: 1.6em; top: 50%; transform: translateY(-50%); z-index: 2;
    background: #12151E; border-radius: 2.4em; padding: 2em 1.8em 1.4em; box-shadow: 0 2em 4em rgba(0, 0, 0, .6);
}
.a-dialog-title { font-size: 1.7em; font-weight: 500; margin-bottom: .6em; color: #fff; }
.a-dialog p { color: #8A91A0; font-size: 1.1em; margin: 0 0 1.2em; }
.a-check { display: flex; align-items: center; gap: .8em; font-size: 1.15em; color: #fff; }
.a-box { width: 1.4em; height: 1.4em; border-radius: .3em; background: var(--red); display: grid; place-items: center; font-size: .85em; font-weight: 900; }
.a-dialog-actions { display: flex; justify-content: flex-end; gap: 2em; margin-top: 1.6em; font-size: 1.1em; }
.a-dialog-actions span { color: #8A91A0; }
.a-dialog-actions b { color: var(--red); }

/* --- Maquettes v2.9 : seuils Pro, mode vol, écran défilé --- */
.a-upsell { text-align: center; color: #8A91A0; font-size: .95em; margin-top: .9em; }
.a-pill.tone-red { --c: var(--red-light); }
.a-red { color: var(--red-light); }
.a-strong { color: #fff; font-weight: 600; }
.app-scrolled { padding-top: 4.6em; }
.a-switch.red.on { background: var(--red); border-color: var(--red); }
.a-feat .a-switch { width: 3.8em; height: 2.2em; }
.a-feat .a-switch.on i { width: 1.5em; height: 1.5em; top: .2em; }

/* =====================================================================
   RESPONSIVE — page d'accueil sur petits mobiles (jusqu'à 320 px)
   ===================================================================== */
@media (max-width: 480px) {
    .l-section { margin-bottom: 72px; }
    .l-head { margin-bottom: 32px; }
    .l-strip { gap: 10px; margin-bottom: 72px; }
    .l-strip > div { padding: 18px 12px 16px; border-radius: 18px; }
    .l-strip b { font-size: 2rem; }
    .l-story-text { padding: 22px 18px; }
    .l-demo { padding: 22px 14px; }
    .l-col { padding: 22px 18px; }
    .l-threat { padding: 22px 18px; }
    .l-final { padding: 40px 18px; }
    .l-compat-form { padding: 20px; }
    /* Tableau comparatif : défilement interne plutôt que débordement */
    .l-compare-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .l-compare-table table { min-width: 440px; }
}

@media (max-width: 400px) {
    .l-hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
    .l-hero-visual { height: 420px; }
    .l-step-n { font-size: 4.4rem; }
    .l-num, .l-threat-ico { margin-bottom: 12px; }
}

@media (max-width: 360px) {
    .l-strip { grid-template-columns: 1fr; }
    .demo-stage { font-size: 8px; }
    .phone.phone-demo { --s: .78; }
    .l-head h2, .l-demo h2, .faq h2, .l-final h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
}

/* Paysage bas (téléphone à l'horizontale) : réduire la hauteur du héros */
@media (max-height: 520px) and (orientation: landscape) {
    .l-hero { min-height: 0; padding-bottom: 32px; }
    .l-hero-visual { height: 360px; }
}
