/* Fichier : site_v3/public/static/css/install_app.css
   Carte « Mets MathClair sur ton écran d'accueil » (templates/install_app.php),
   téléphone seulement (affichée par static/js/install_app.js). */
.iapp { position: relative; display: flex; align-items: flex-start; gap: 14px; max-width: 520px; margin: 0 auto; padding: 16px 44px 16px 16px; background: #fff; border: 1px solid #DCEAF6; border-radius: 18px; box-shadow: 0 14px 30px -18px rgba(16,27,45,.35); color: #101B2D; font-family: 'Source Sans 3', system-ui, sans-serif; }
.iapp[hidden], .iapp [hidden] { display: none !important; }
.iapp-ico { width: 52px; height: 52px; border-radius: 13px; flex: 0 0 auto; box-shadow: 0 4px 10px -4px rgba(16,27,45,.4); }
.iapp-txt { min-width: 0; }
.iapp-t { margin: 0 0 2px; font-family: Lexend, system-ui, sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.25; }
.iapp-s { margin: 0 0 10px; color: #3E4A61; font-size: .92rem; line-height: 1.35; }
.iapp-how { margin: 0; font-size: .9rem; line-height: 1.5; color: #14304A; background: #F0F6FB; border-radius: 12px; padding: 9px 12px; }
.iapp-k { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 5px; margin: 0 1px; border-radius: 7px; background: #fff; border: 1px solid #DCEAF6; color: #1E4E76; font-weight: 800; font-size: .8rem; vertical-align: -2px; }
.iapp-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 10px 18px; background: #F0883E; color: #fff; font-family: Lexend, system-ui, sans-serif; font-weight: 600; font-size: .92rem; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(221,107,32,.7); }
.iapp-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #7C8AA3; font-size: 1rem; cursor: pointer; }
.iapp-x:hover { background: #F0F6FB; color: #101B2D; }
/* Emplacement : rien quand la carte est cachée (ordinateur, appli installée, carte fermée). */
.iapp-wrap:has(> .iapp[hidden]) { display: none; }
.iapp-wrap-dh { padding: 0 16px 18px; }

/* ---- Fenêtre qui monte du bas (2026-10-21) ---- */
.iapp-sheet { position: fixed; inset: 0; z-index: 3000; overscroll-behavior: contain; }
.iapp-sheet[hidden], .iapp-sheet [hidden] { display: none !important; }
.iapp-backdrop { position: absolute; inset: 0; background: rgba(16,27,45,.5); opacity: 0; transition: opacity .25s ease; touch-action: none; }
.iapp-panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; padding: 10px 20px calc(18px + env(safe-area-inset-bottom)); background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -18px 40px -20px rgba(16,27,45,.55); color: #101B2D; font-family: 'Source Sans 3', system-ui, sans-serif; transform: translateY(105%); transition: transform .34s cubic-bezier(.2,.8,.2,1); }
.iapp-sheet.is-open .iapp-backdrop { opacity: 1; }
.iapp-sheet.is-open .iapp-panel { transform: none; }
.iapp-grab { display: block; width: 42px; height: 5px; border-radius: 3px; background: #DCEAF6; margin: 0 auto 16px; }
.iapp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.iapp-ico-lg { width: 64px; height: 64px; border-radius: 16px; flex: 0 0 auto; box-shadow: 0 6px 14px -6px rgba(16,27,45,.45); }
.iapp-kick { margin: 0 0 3px; font-family: Lexend, system-ui, sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #DD6B20; }
.iapp-h { margin: 0; font-family: Lexend, system-ui, sans-serif; font-size: 1.28rem; line-height: 1.2; font-weight: 700; color: #101B2D; }
.iapp-pros { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.iapp-pros li { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: #14304A; }
.iapp-pros i { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex: 0 0 auto; background: #F0F6FB; color: #1E4E76; font-size: 1rem; }
.iapp-cta { display: flex; width: 100%; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 14px; padding: 14px 18px; background: #F0883E; color: #fff; font-family: Lexend, system-ui, sans-serif; font-weight: 600; font-size: 1.02rem; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(221,107,32,.75); }
.iapp-steps { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 10px; background: #F0F6FB; border-radius: 14px; font-size: .97rem; line-height: 1.4; color: #14304A; }
.iapp-steps li { display: flex; align-items: flex-start; gap: 10px; }
.iapp-n { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto; background: #1E4E76; color: #fff; font-size: .75rem; font-weight: 800; }
.iapp-later { display: block; width: 100%; margin-top: 8px; padding: 11px; border: 0; background: none; color: #7C8AA3; font-family: inherit; font-weight: 600; font-size: .97rem; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .iapp-backdrop, .iapp-panel { transition: none; } }

