/* ============================================================
   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);
}

/* ── L'encart « vues éclatées » : un téléphone qui cherche un modèle et liste ses vraies pièces (26/11/2026) ── */
.appli-demo {
  position: relative; isolation: isolate; display: grid; gap: 26px; margin-top: 30px; padding: 26px 18px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #241a12, #16120e 55%); border: 1px solid rgba(249, 115, 22, .35);
}
.appli-demo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 30%, rgba(249, 115, 22, .22), transparent 70%); }
.appli-demo h2 { margin: 6px 0 10px; font-family: var(--f-display); font-size: clamp(1.9rem, 8vw, 2.8rem); line-height: 1; text-transform: uppercase; }
.appli-demo-txt > p { margin: 0; color: var(--ap-doux); line-height: 1.55; }
.appli-demo-etapes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.appli-demo-etapes li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.appli-demo-etapes b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ap-or); color: #12100d; font-family: var(--f-display); }
.appli-demo-source { margin-top: 16px !important; font-size: .78rem; color: #9d9388 !important; }

.appli-tel { justify-self: center; width: min(100%, 340px); padding: 10px; border-radius: 40px; background: #0a0908; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 6px #1b1814, 0 0 60px rgba(249, 115, 22, .2); }
.appli-tel-ecran { position: relative; height: 520px; overflow: hidden; border-radius: 31px; background: #12100d; padding: 18px 12px 12px; }
.appli-tel-haut { position: relative; z-index: 2; margin: -18px -12px 0; padding: 18px 12px 10px; background: #12100d; box-shadow: 0 10px 14px -8px #12100d; }
.appli-tel-barre { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-display); text-transform: uppercase; font-size: 1.05rem; }
.appli-tel-liste { font-family: var(--f-body); text-transform: none; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(249, 115, 22, .14); color: var(--ap-or); }
.appli-tel-liste b { display: inline-block; min-width: 1.1em; text-align: center; color: var(--ap-txt); transition: transform .3s; }
.appli-tel-recherche { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0 12px; height: 42px; border-radius: 14px; background: #1c1917; border: 1px solid rgba(249, 115, 22, .55); color: var(--ap-doux); font-size: .95rem; }
.appli-tel-recherche [data-demo-saisie] { color: var(--ap-txt); white-space: nowrap; }
.appli-tel-curseur { width: 2px; height: 18px; margin-left: -6px; background: var(--ap-or); animation: appli-curseur 1s steps(1) infinite; }
@keyframes appli-curseur { 50% { opacity: 0; } }
.appli-tel-modele { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(249, 115, 22, .2), rgba(249, 115, 22, .05)); border: 1px solid rgba(249, 115, 22, .3);
  display: grid; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ap-ease); }
.appli-tel-modele b { font-family: var(--f-display); text-transform: uppercase; font-size: 1.05rem; }
.appli-tel-modele small { color: var(--ap-doux); font-size: .74rem; }
.appli-tel-pieces { list-style: none; margin: 0; position: relative; z-index: 1; padding: 0; display: grid; gap: 6px; transition: transform 2.2s cubic-bezier(.45, 0, .25, 1); }
.appli-tel-ecran::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(transparent, #12100d); pointer-events: none; }
.appli-tel-pieces li {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ref plus" "nom plus" "grp plus"; column-gap: 8px; align-items: center;
  padding: 7px 8px 7px 10px; border-radius: 12px; background: #1c1917; border: 1px solid rgba(255, 255, 255, .06);
  opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .45s var(--ap-ease), border-color .3s, background-color .3s;
  transition-delay: calc(var(--i) * 90ms + .25s);
}
.appli-tel-ref { grid-area: ref; font-family: ui-monospace, Menlo, monospace; font-size: .68rem; color: var(--ap-or); letter-spacing: .02em; }
.appli-tel-nom { grid-area: nom; font-size: .8rem; line-height: 1.25; color: var(--ap-txt); }
.appli-tel-grp { grid-area: grp; font-size: .64rem; color: #9d9388; text-transform: uppercase; letter-spacing: .08em; }
.appli-tel-plus { grid-area: plus; padding: 6px 9px; border-radius: 99px; font-size: .7rem; font-weight: 800; color: var(--ap-or); border: 1px solid rgba(249, 115, 22, .5); white-space: nowrap; transition: all .3s; }
.appli-tel.est-trouve .appli-tel-modele, .appli-tel.est-trouve .appli-tel-pieces li { opacity: 1; transform: none; }
.appli-tel.est-trouve .appli-tel-curseur { display: none; }
.appli-tel-pieces li.est-ajoutee { border-color: rgba(249, 115, 22, .6); background: rgba(249, 115, 22, .1); transition-delay: 0s; }
.appli-tel-pieces li.est-ajoutee .appli-tel-plus { background: var(--ap-or); color: #12100d; font-size: 0; padding: 6px 12px; }
.appli-tel-pieces li.est-ajoutee .appli-tel-plus::after { content: "Ajoutée ✓"; font-size: .7rem; }

/* ── 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.est-large { background: linear-gradient(135deg, rgba(249, 115, 22, .16), var(--ap-carte) 60%); border-color: rgba(249, 115, 22, .35); }
.appli-exclu { position: absolute; top: 16px; right: 16px; padding: 4px 9px; border-radius: 99px; background: var(--ap-or); color: #12100d; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.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-carte.est-large { grid-column: span 2; }
  .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-carte.est-large { grid-column: span 2; }
  .appli-beta { grid-template-columns: 1fr 1fr; padding: 40px; align-items: start; }
  .appli-demo { grid-template-columns: minmax(0, 1fr) 360px; align-items: center; padding: 44px 48px; gap: 48px; }
  .appli-tel { width: 360px; }
}
