/* TalatYai : bloc « Application mobile » du pied de page, bulle et guide d'installation (maquettes 19/11/2026) */
.ty-app-footer { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); width: max-content; min-width: 100%; max-width: min(440px, calc(100vw - 32px)); }
.ty-app-link { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; color: #fff !important; text-decoration: none; }
.ty-app-tile { width: 56px; height: 56px; border-radius: 14px; background: #fff; flex: 0 0 auto; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 5px; }
.ty-app-tile img { width: 100%; height: auto; display: block; }
.ty-app-tile svg { width: 78%; height: 7px; display: block; }
.ty-app-tile.big { width: 96px; height: 96px; border-radius: 22px; padding: 0 9px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); gap: 3px; }
.ty-app-tile.big svg { height: 12px; }
.ty-app-sep { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .35); }
.ty-app-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.ty-app-text strong { font-size: 1.12rem; font-weight: 700; }
.ty-app-text span { font-size: .92rem; opacity: .85; }
.ty-app-link:hover .ty-app-text strong { text-decoration: underline; text-underline-offset: 3px; }
.ty-app-info { flex: 0 0 auto; width: 40px; height: 40px; border: 0; padding: 0; background: none; color: #f58220; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.ty-app-info svg { width: 36px; height: 36px; }
.ty-app-info:hover, .ty-app-info[aria-expanded="true"] { background: rgba(245, 130, 32, .14); }
.ty-app-info:focus-visible, .ty-app-x:focus-visible, .ty-app-guide-link:focus-visible, .ty-app-modal-x:focus-visible { outline: 3px solid #f58220; outline-offset: 2px; }

/* Bulle */
.ty-app-pop { position: absolute; z-index: 60; left: 50%; top: calc(100% + 12px); transform: translateX(-30%); width: 310px; background: #fff; color: #1f2937; border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); padding: 14px 16px 12px; }
.ty-app-pop::before { content: ""; position: absolute; top: -8px; right: 26%; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.ty-app-pop[hidden] { display: none; }
.ty-app-pop-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.ty-app-pop-head strong { font-size: 1.05rem; }
.ty-app-x { width: 28px; height: 28px; border: 0; background: none; color: #4b5563; cursor: pointer; padding: 3px; border-radius: 50%; }
.ty-app-x:hover { background: #f3f4f6; }
.ty-app-pop-line { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-size: .9rem; }
.ty-app-pop-line svg { width: 16px; height: 16px; flex: 0 0 auto; }
.ty-app-pop-pad { width: 16px; flex: 0 0 auto; }
.ty-app-guide-link { display: block; margin: 10px auto 0; border: 0; background: none; color: #2477c9; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.ty-app-guide-link:hover { text-decoration: underline; }

/* Guide d'installation */
.ty-app-modal { width: min(830px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; padding: 30px 30px 26px; border-radius: 28px; background: #fff; color: #1f2937; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: auto; }
.ty-app-modal::backdrop { background: rgba(17, 24, 39, .6); }
.ty-app-modal-open { overflow: hidden; }
.ty-app-modal-x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f3f4f6; color: #111827; cursor: pointer; padding: 10px; }
.ty-app-modal-x:hover { background: #e5e7eb; }
.ty-app-modal-head { display: flex; align-items: center; gap: 22px; padding-right: 50px; margin-bottom: 26px; }
.ty-app-modal-head > div { border-left: 1px solid #e5e7eb; padding-left: 22px; }
.ty-app-modal-head h2 { margin: 0 0 6px; font-size: 1.65rem; color: #173a6b; line-height: 1.15; }
.ty-app-modal-head p { margin: 0; font-size: 1.05rem; color: #4b5563; }
.ty-app-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ty-app-col { border-radius: 20px; padding: 18px 14px 0; overflow: hidden; }
.ty-app-col.ios { background: linear-gradient(180deg, #eaf2fc 0%, #f4f8fd 100%); }
.ty-app-col.android { background: linear-gradient(180deg, #e8f5ec 0%, #f3faf5 100%); }
.ty-app-col h3 { display: flex; align-items: center; gap: 12px; margin: 0 6px 14px; font-size: 1.4rem; color: #111827; }
.ty-app-col h3 svg { width: 34px; height: 34px; }
.ty-app-col.ios h3 svg { color: #111; }
.ty-app-col.android h3 svg { color: #3ddc84; }
.ty-app-steps { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 14px; }
.ty-app-step { display: grid; grid-template-columns: 34px 1fr 52px; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid #edf1f6; }
.ty-app-step:last-child { border-bottom: 0; }
.ty-app-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }
.ios .ty-app-num { background: #2477c9; }
.android .ty-app-num { background: #2e9e57; }
.ty-app-step-text { font-size: 1rem; line-height: 1.3; color: #1f2937; }
.ty-app-step-icon svg { width: 46px; height: 46px; display: block; }
.ty-app-key { width: 48px; height: 48px; border-radius: 10px; background: #f1f4f8; display: grid; place-items: center; box-shadow: inset 0 0 0 1px #e2e8f0; }
.ty-app-key svg { width: 28px; height: 28px; color: #2477c9; }
.android .ty-app-key svg { color: #1f2937; }
.ty-app-phone { position: relative; height: 150px; margin: 18px auto 0; width: 82%; border: 6px solid #1f2937; border-bottom: 0; border-radius: 34px 34px 0 0; background: linear-gradient(180deg, #f9fafb, #eef2f7); }
.ty-app-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 14px; background: #111; }
.ty-app-camera { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: #111; }
.ty-app-chip { position: absolute; left: 8%; right: 14%; top: 66px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(15, 23, 42, .16); font-size: .98rem; font-weight: 600; color: #111827; }
.ty-app-chip svg { width: 24px; height: 24px; color: #2477c9; flex: 0 0 auto; }
.android .ty-app-chip svg { color: #111827; }
.ty-app-arrow { position: absolute; right: -2px; top: 30px; width: 56px; height: 56px; }
.ty-app-note { display: flex; align-items: center; gap: 14px; margin: 20px 0 0; padding: 14px 18px; background: #eef5fd; border-radius: 14px; font-size: 1.02rem; color: #1f2937; }
.ty-app-note svg { width: 28px; height: 28px; color: #2477c9; flex: 0 0 auto; }

@media (max-width: 720px) {
  .ty-app-cols { grid-template-columns: 1fr; }
  .ty-app-modal { padding: 22px 16px 18px; border-radius: 22px; }
  .ty-app-modal-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ty-app-tile.big { width: 72px; height: 72px; border-radius: 18px; }
  .ty-app-modal-head > div { border-left: 0; padding-left: 0; }
  .ty-app-modal-head h2 { font-size: 1.3rem; }
  .ty-app-pop { left: 0; transform: none; width: min(310px, calc(100vw - 32px)); }
  .ty-app-pop::before { right: 24px; }
}
[data-theme="dark"] .ty-app-modal, [data-theme="dark"] .ty-app-pop, [data-theme="dark"] .ty-app-pop::before { background: #1f2937; color: #f3f4f6; }
[data-theme="dark"] .ty-app-modal-head h2 { color: #93c5fd; }
[data-theme="dark"] .ty-app-modal-head p, [data-theme="dark"] .ty-app-step-text, [data-theme="dark"] .ty-app-col h3, [data-theme="dark"] .ty-app-note { color: #e5e7eb; }
[data-theme="dark"] .ty-app-col.ios { background: #1e3a5f; }
[data-theme="dark"] .ty-app-col.android { background: #14432a; }
[data-theme="dark"] .ty-app-steps, [data-theme="dark"] .ty-app-chip { background: #111827; color: #f3f4f6; }
[data-theme="dark"] .ty-app-step { border-color: #374151; }
[data-theme="dark"] .ty-app-key { background: #374151; box-shadow: none; }
[data-theme="dark"] .ty-app-note { background: #1e3a5f; }
[data-theme="dark"] .ty-app-x, [data-theme="dark"] .ty-app-modal-x { color: #f3f4f6; background: #374151; }
[data-theme="dark"] .ty-app-col.ios h3 svg { color: #f3f4f6; }

/* Le guide est placé dans le pied de page : on neutralise les styles du pied de page (majuscules, couleurs claires). */
.ty-app-modal, .ty-app-modal * { text-transform: none; letter-spacing: normal; }
.ty-app-modal .ty-app-modal-head > div { flex: 1 1 auto; min-width: 0; display: block; }
.ty-app-modal .ty-app-modal-head h2, .ty-app-modal .ty-app-modal-head p { display: block; width: auto; max-width: none; text-align: left; }
.ty-app-modal .ty-app-modal-head h2 { font-size: 1.65rem; font-weight: 800; color: #173a6b; opacity: 1; }
.ty-app-modal .ty-app-modal-head p, .ty-app-modal .ty-app-note, .ty-app-modal .ty-app-note span { color: #374151; opacity: 1; }
.ty-app-modal .ty-app-modal-head p { font-size: 1.05rem; line-height: 1.4; }
.ty-app-modal .ty-app-note span { font-size: 1.02rem; }
.ty-app-modal .ty-app-step-text { color: #1f2937; opacity: 1; }
.sp-footer-v2 .ty-app-pop p, .sp-footer-v2 .ty-app-pop span, .sp-footer-v2 .ty-app-pop strong { color: #1f2937; opacity: 1; }
.sp-footer-v2 .ty-app-pop .ty-app-pop-line span { color: #374151; }
[data-theme="dark"] .ty-app-modal .ty-app-modal-head p, [data-theme="dark"] .ty-app-modal .ty-app-note span, [data-theme="dark"] .ty-app-modal .ty-app-step-text, [data-theme="dark"] .sp-footer-v2 .ty-app-pop p, [data-theme="dark"] .sp-footer-v2 .ty-app-pop span, [data-theme="dark"] .sp-footer-v2 .ty-app-pop strong { color: #e5e7eb; }
[data-theme="dark"] .ty-app-modal .ty-app-modal-head h2 { color: #93c5fd; }
@media (max-width: 720px) { .ty-app-modal .ty-app-modal-head h2 { font-size: 1.3rem; } }
.ty-app-modal div, .ty-app-modal section, .ty-app-modal ol, .ty-app-pop, .ty-app-footer { columns: auto; column-count: auto; }
/* design.css applique « .footer div:nth-child(2) { columns: 2; width: 40%; margin: 20px 0 } » : annulé pour le bloc application. */
.footer .ty-app-modal div:nth-child(2), .footer .ty-app-footer div:nth-child(2), .footer .ty-app-pop div:nth-child(2) { columns: auto; width: auto; margin: 0; }
