/* ============================================================
   assets/css/application.css · La page /application (pages/application.php)
   ============================================================
   26/11/2026. La charte sombre de l'app : fond #12100d, cartes #1c1917, accent orange, Barlow Condensed en capitales.
   ⚠ SOMBRE DANS LES DEUX THÈMES (comme la scène de l'accueil) : c'est la vitrine de l'app, pas un fond de page. Les
   couleurs sont donc écrites en dur. Tout est préfixé appli-. Les badges eux-mêmes (.app-badge) sont dans app.css :
   ils servent aussi sur l'accueil et au pied de page. */

.appli {
  --ap-bg: #12100d; --ap-carte: #1c1917; --ap-ligne: rgba(255, 255, 255, .08); --ap-txt: #f5f1ea; --ap-doux: #cfc5b8;
  --ap-or: #f97316; --ap-ease: cubic-bezier(.32, .72, 0, 1);
  margin: -28px -16px 0; padding: 0 16px 8px; background: var(--ap-bg); color: var(--ap-txt);
  border-radius: 0 0 30px 30px; overflow: hidden;
}
.appli em { font-style: normal; color: var(--ap-or); }
.appli h2, .appli h3 { color: var(--ap-txt); }
.appli-sur { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ap-or); }

/* ── Le héros ─────────────────────────────────────────── */
.appli-hero { position: relative; isolation: isolate; display: grid; gap: 26px; padding: 34px 0 30px; }
.appli-hero::before {
  content: ""; position: absolute; inset: -40px -16px auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 320px at 78% 30%, rgba(249, 115, 22, .26), transparent 70%),
              radial-gradient(420px 260px at 8% 10%, rgba(249, 115, 22, .10), transparent 70%);
}
.appli-sourcil { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-doux); }
.appli-sourcil i { width: 8px; height: 8px; border-radius: 50%; background: var(--ap-or); box-shadow: 0 0 0 4px rgba(249, 115, 22, .2); animation: appli-pouls 2.4s ease-in-out infinite; }
@keyframes appli-pouls { 50% { box-shadow: 0 0 0 9px rgba(249, 115, 22, 0); } }
.appli-titre { margin: 14px 0 0; font-family: var(--f-display); text-transform: uppercase; color: var(--ap-txt); }
.appli-titre-l1 { display: block; font-size: clamp(2.3rem, 10vw, 4.4rem); line-height: .95; letter-spacing: .005em; }
.appli-titre-l2 { display: block; margin-top: 14px; font-family: var(--f-body); text-transform: none; font-weight: 400; font-size: 1.08rem; line-height: 1.5; color: var(--ap-doux); max-width: 34em; }
.appli-badges { margin-top: 22px; }
.appli-badges .app-badge img { height: 48px; }

.appli-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px;
  padding: 8px 8px 8px 22px; min-height: 58px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #fb8a3c, var(--ap-or) 55%, #ea580c); color: #12100d; font: inherit; font-weight: 800; font-size: 1.04rem;
  box-shadow: 0 14px 34px rgba(249, 115, 22, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .5s var(--ap-ease), box-shadow .3s;
}
.appli-cta:hover { color: #12100d; box-shadow: 0 18px 40px rgba(249, 115, 22, .5), inset 0 1px 0 rgba(255, 255, 255, .35); }
.appli-cta:active { transform: scale(.98); }
.appli-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.appli-cta i { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(18, 16, 13, .14); transition: transform .5s var(--ap-ease); }
.appli-cta:hover i { transform: translateX(3px); }
.appli-note { margin: 12px 0 0; font-size: .9rem; color: var(--ap-doux); }

.appli-visuel { margin: 0; position: relative; perspective: 1200px; }
.appli-visuel img {
  display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid rgba(249, 115, 22, .35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(249, 115, 22, .22);
}

/* ── Les fonctions ────────────────────────────────────── */
.appli-sec { padding-top: 44px; }
.appli-sec-tete { margin-bottom: 18px; }
.appli-sec-tete h2 { margin: 6px 0 0; font-family: var(--f-display); font-size: clamp(1.9rem, 8vw, 2.8rem); line-height: 1; text-transform: uppercase; }
.appli-grille { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.appli-carte {
  position: relative; padding: 20px 18px 18px; border-radius: 22px; background: var(--ap-carte); border: 1px solid var(--ap-ligne);
  transition: transform .5s var(--ap-ease), border-color .3s;
}
.appli-carte:hover { transform: translateY(-3px); border-color: rgba(249, 115, 22, .45); }
.appli-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--ap-or); background: rgba(249, 115, 22, .12); box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .25); }
.appli-carte h3 { margin: 14px 0 6px; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }
.appli-carte p { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ap-doux); }

/* ── Le bandeau des atouts ────────────────────────────── */
.appli-atouts { display: grid; gap: 10px; margin-top: 34px; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, rgba(249, 115, 22, .16), rgba(249, 115, 22, .04)); border: 1px solid rgba(249, 115, 22, .3); }
.appli-atouts > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.appli-atouts i { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ap-or); color: #12100d; }
.appli-atouts b { font-family: var(--f-display); text-transform: uppercase; font-size: 1.15rem; }
.appli-atouts span { font-size: .92rem; color: var(--ap-doux); }

/* ── Bêta-testeur ─────────────────────────────────────── */
.appli-beta { display: grid; gap: 22px; margin-top: 44px; padding: 26px 18px; border-radius: 26px; background: var(--ap-carte); border: 1px solid var(--ap-ligne); scroll-margin-top: 80px; }
.appli-beta h2 { margin: 6px 0 10px; font-family: var(--f-display); font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1; text-transform: uppercase; }
.appli-beta p { margin: 0; color: var(--ap-doux); line-height: 1.55; }
.appli-beta-etapes { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .92rem; color: var(--ap-doux); }
.appli-beta-etapes li { padding-left: 16px; position: relative; }
.appli-beta-etapes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--ap-or); }
.appli-beta-etapes b { color: var(--ap-txt); }
.appli-form { display: grid; gap: 14px; }
.appli-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.appli-plateformes { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.appli-plateformes legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .9rem; color: var(--ap-txt); }
.appli-plateformes label { position: relative; }
.appli-plateformes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.appli-plateformes span { display: grid; place-items: center; min-height: 48px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); font-weight: 700; color: var(--ap-doux); transition: all .25s; }
.appli-plateformes input:checked + span { border-color: var(--ap-or); background: rgba(249, 115, 22, .15); color: var(--ap-txt); }
.appli-plateformes input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.appli-champ { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--ap-txt); }
.appli-champ small { font-weight: 400; color: var(--ap-doux); }
.appli-champ input {
  min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: #0f0d0b; color: var(--ap-txt);
  font: inherit; font-weight: 400; font-size: 1rem;
}
.appli-champ input:focus { outline: none; border-color: var(--ap-or); box-shadow: 0 0 0 3px rgba(249, 115, 22, .25); }
.appli-cta-form { width: 100%; margin-top: 4px; }
.appli-rgpd { font-size: .8rem !important; }
.appli-rgpd a { color: var(--ap-or); }

/* ── FAQ ──────────────────────────────────────────────── */
.appli-faq { padding-bottom: 28px; }
.appli-faq details { border-bottom: 1px solid var(--ap-ligne); }
.appli-faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--ap-txt); list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; }
.appli-faq summary::-webkit-details-marker { display: none; }
.appli-faq summary::after { content: "+"; color: var(--ap-or); font-size: 1.4rem; line-height: 1; transition: transform .3s; }
.appli-faq details[open] summary::after { transform: rotate(45deg); }
.appli-faq details p { margin: 0 0 16px; color: var(--ap-doux); line-height: 1.55; }

/* ── Apparition ───────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .appli-hero-txt > * { animation: appli-monte .8s var(--ap-ease) both; }
  .appli-hero-txt > *:nth-child(2) { animation-delay: .08s; }
  .appli-hero-txt > *:nth-child(3) { animation-delay: .16s; }
  .appli-hero-txt > *:nth-child(n+4) { animation-delay: .24s; }
  .appli-visuel img { animation: appli-visuel 1.1s var(--ap-ease) .15s both; }
  .appli-carte { animation: appli-monte .7s var(--ap-ease) both; animation-delay: calc(var(--i) * 60ms + .2s); }
}
@keyframes appli-monte { from { opacity: 0; transform: translateY(18px); } }
@keyframes appli-visuel { from { opacity: 0; transform: rotateX(14deg) translateY(30px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .appli-sourcil i { animation: none; } }

/* ── Écrans larges ────────────────────────────────────── */
@media (min-width: 700px) {
  .appli { padding: 0 28px 12px; }
  .appli-grille { grid-template-columns: repeat(2, 1fr); }
  .appli-atouts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .appli { margin-left: 0; margin-right: 0; border-radius: 0 0 36px 36px; padding: 0 44px 16px; }
  .appli-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; padding: 56px 0 40px; }
  .appli-visuel img { transform: rotateY(-8deg) rotateX(3deg); }
  .appli-grille { grid-template-columns: repeat(4, 1fr); }
  .appli-beta { grid-template-columns: 1fr 1fr; padding: 40px; align-items: start; }
}
