/* La page de téléchargement de L.I.V.E — feuille externe (CSP style-src 'self').
   Jetons repris de la maquette C « Vitrine », thème Base : porcelaine, encre, rose thé.
   Partagée avec /diagnostic/ (même habillage). */
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --bg: #F6F5F3; --surface: #FBFBFA; --raised: #FFFFFF; --text: #26222B; --text2: #66616D;
  --border: #E4E2E6; --border-strong: #8A8590; --action: #26222B; --on-action: #FBFBFA;
  --accent: #A24D68; --accent-soft: #F3E4EA; --on-accent-soft: #8E3F5A;
  --success: #2F6B4F; --success-soft: #E5F0EA; --warning: #8A5A00; --warning-soft: #F6EDDA; --error: #B3261E; --error-soft: #F7E3E1;
  --tint: 38, 34, 43; --accent-rgb: 162, 77, 104;
  --font: 'Figtree', -apple-system, 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans', 'Microsoft YaHei', sans-serif;
  --lh: 1.5; --track: -0.012em; --track-big: -0.028em;
  --sh-1: 0 1px 2px rgba(var(--tint), .05), 0 8px 24px -6px rgba(var(--tint), .07);
  --sh-2: 0 2px 6px rgba(var(--tint), .05), 0 18px 40px -10px rgba(var(--tint), .08);
  --ease: cubic-bezier(.23, 1, .32, 1);
}
:root[lang='zh-Hans'] { --lh: 1.7; --track: 0; --track-big: 0; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; font-family: var(--font); font-size: 16px; line-height: var(--lh); letter-spacing: var(--track); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; font-synthesis: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, p, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hors-ecran { position: fixed; left: -9999px; top: 0; }

.page { display: flex; justify-content: center; padding: max(44px, calc(env(safe-area-inset-top) + 28px)) 16px max(36px, calc(env(safe-area-inset-bottom) + 24px)); }
.colonne { width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; }

/* En-tête : l'icône telle qu'elle sera sur l'écran d'accueil, puis le nom. */
.icone { display: block; width: 88px; height: 88px; border-radius: 22.5%; box-shadow: 0 2px 6px rgba(var(--accent-rgb), .10), 0 18px 36px -12px rgba(var(--accent-rgb), .28); }
.nom { margin-top: 18px; font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: .06em; }
.nom b { color: var(--accent); font-weight: 800; }
.client { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--text2); letter-spacing: 0; }

h1 { margin-top: 36px; text-align: center; font-weight: 700; font-size: clamp(26px, 7vw, 34px); line-height: 1.15; letter-spacing: var(--track-big); max-width: 16em; text-wrap: balance; }
.sous { margin-top: 12px; text-align: center; color: var(--text2); max-width: 30em; text-wrap: pretty; }

/* Le bouton de l'appareil détecté : encre pleine, comme les CTA de l'app. */
.principal { margin-top: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; background: var(--action); color: var(--on-action); font-weight: 700; font-size: 16px; letter-spacing: 0; box-shadow: var(--sh-2); transition: transform 160ms var(--ease); }
.principal:active { transform: scale(.97); }
.secondaire { min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--raised); box-shadow: var(--sh-1); font-weight: 600; font-size: 15px; }
.secondaire:active { transform: scale(.97); }

.etat { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--success-soft); color: var(--success); font-weight: 600; }

.bureau { margin-top: 24px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; border-radius: 24px; background: var(--raised); box-shadow: var(--sh-1); text-align: center; }
.adresse { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }

/* Les cartes : une par famille de téléphone. */
.cartes { margin: 32px 0 0; padding: 0; list-style: none; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.carte { position: relative; width: 100%; min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 8px 16px; border-radius: 24px; background: var(--raised); box-shadow: var(--sh-1); text-align: center; transition: transform 160ms var(--ease), box-shadow 160ms var(--ease); }
.carte:active { transform: scale(.97); }
.carte svg { width: 30px; height: 30px; color: var(--text); }
.carte b { font-weight: 700; font-size: 15.5px; letter-spacing: 0; }
.carte small { font-size: 13px; font-weight: 600; color: var(--on-accent-soft); }
.carte .pastille { display: none; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.carte.ici { box-shadow: 0 0 0 2px var(--accent), var(--sh-1); }
.carte.ici .pastille { display: block; }
.carte[aria-pressed='true'] { background: var(--accent-soft); }

/* Le panneau des gestes. */
.panneau { margin-top: 14px; width: 100%; padding: 20px 20px 22px; border-radius: 28px; background: var(--raised); box-shadow: var(--sh-2); }
.panneau-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panneau h2, .bloc h2 { font-size: 19px; font-weight: 700; letter-spacing: var(--track); }
.note { margin-top: 4px; font-size: 14px; color: var(--text2); }
.fermer { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 0 0; border-radius: 50%; color: var(--text2); }
.fermer:active { background: var(--accent-soft); }
.etapes { margin-top: 14px; padding: 0; list-style: none; counter-reset: etape; display: grid; gap: 12px; }
.etapes li { counter-increment: etape; position: relative; padding-left: 40px; min-height: 28px; text-wrap: pretty; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--on-accent-soft); font-weight: 700; font-size: 14px; letter-spacing: 0; }
.aide { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; color: var(--text2); }
.panneau .principal { margin-top: 18px; width: 100%; }

/* Les blocs d'information. */
.bloc { margin-top: 14px; width: 100%; padding: 20px 20px 22px; border-radius: 28px; background: var(--raised); box-shadow: var(--sh-1); }
.ligne { margin-top: 12px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text2); }
.ligne svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--text); }

.liens { margin-top: 26px; text-align: center; }
.lien { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 600; color: var(--on-accent-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

footer { margin-top: 28px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text2); }
.langues { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--raised); box-shadow: var(--sh-1); }
.langues button { min-width: 52px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text2); }
.langues button[aria-pressed='true'] { background: var(--action); color: var(--on-action); }

/* Le voile des navigateurs intégrés (WeChat, QQ…) : la flèche montre le ··· en haut à droite. */
.voile-ouvert, .voile-ouvert body { overflow: hidden; }
.voile { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: flex-end; padding: max(10px, env(safe-area-inset-top)) 16px 16px; background: rgba(var(--tint), .78); }
.fleche { width: 76px; height: 76px; margin-right: 12px; color: #fff; }
.voile-carte { margin-top: 8px; width: 100%; padding: 22px 20px; border-radius: 28px; background: var(--raised); box-shadow: var(--sh-2); }
.voile-carte h2 { font-size: 20px; font-weight: 700; }
.voile-carte p { margin-top: 8px; color: var(--text2); }
.voile-carte .principal { width: 100%; margin-top: 18px; }
.voile-carte .aide:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  .principal, .carte, .secondaire { transition: none; }
  .principal:active, .carte:active, .secondaire:active { transform: none; }
}
