:root {
  --bg: #0B0D1E;
  --panel: #1A1E48;
  --panel-2: #252B62;
  --line: #363D82;
  --violet: #6E56FF;
  --violet-h: #5B43F0;
  --cyan: #2DD4E6;
  --gold: #F2B84B;
  --red: #FF6B86;
  --text: #F2F3FF;
  --muted: #B0B5E0;
  --edge: rgba(255, 255, 255, .07);
  --r-btn: 10px;
  --r-field: 8px;
  --r-card: 16px;
  --r-sheet: 26px;
  --font-h: "Chakra Petch", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-b: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
/* Tailles fluides : tout ce qui est en rem suit la largeur de l'ecran */
html { font-size: clamp(14.5px, 3.8vw, 16px); -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; background: var(--bg); overflow-x: hidden; overflow-x: clip; }
body { margin: 0; color: var(--text); font: 400 1rem/1.5 var(--font-b); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; overflow-x: clip; }
/* Fond : degrade du noir vers un bleu-gris clair, sur toute la hauteur de la page */
body { background: radial-gradient(70% 420px at 90% 0%, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, #0B0D1E 0%, #1B2050 50%, #40487F 100%); }
body.locked { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: 0; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; max-width: 64ch; text-wrap: pretty; }
a { color: var(--cyan); }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
main:focus, main:focus-visible { outline: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--violet); color: #fff; padding: 10px 14px; border-radius: var(--r-btn); z-index: 100; }
.skip:focus { left: 8px; }
.boot { padding: 48px 20px; color: var(--muted); text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.gold { color: var(--gold); }
.ic { flex: none; }
.illu { display: block; width: 100%; height: auto; }

/* Barres de defilement : invisibles tant que rien ne defile */
* { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.is-scrolling { scrollbar-color: rgba(255, 255, 255, .28) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.is-scrolling::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .28); }

/* Une seule ligne sur mobile : le texte reduit sa taille au besoin (fitAll dans ui.js) */
@media (max-width: 719px) { [data-fit] { white-space: nowrap; overflow: hidden; max-width: 100%; min-width: 0; line-height: 1.25; } }

/* En-tete */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(11, 13, 30, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--edge); padding-top: var(--safe-t); }
.topbar-in { max-width: 1040px; margin: 0 auto; min-height: 58px; padding: 0 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font: 700 1.2rem var(--font-h); min-height: 44px; }
.brand-mark { color: var(--cyan); }
.topnav { display: none; gap: 4px; justify-self: center; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-btn); color: var(--muted); text-decoration: none; font-weight: 700; }
.topnav a:hover { color: var(--text); background: var(--panel); }
.topnav a[aria-current="page"] { color: var(--cyan); background: var(--panel); }
.topnav[hidden] { display: none !important; }
.hdr-actions { justify-self: end; display: flex; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--edge); color: var(--gold); font: 600 .95rem var(--font-h); text-decoration: none; white-space: nowrap; }
.hdr-actions .hide-sm { display: none; }
@media (min-width: 520px) { .hdr-actions .hide-sm { display: inline-flex; } }
@media (min-width: 900px) { .topnav { display: flex; } }

/* Structure */
main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 14px 32px; outline: none; }
main[data-view="home"] { max-width: 1040px; }
main[data-view="boutique"] { max-width: 960px; }
main[data-view="compte"] { max-width: 720px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.stack > *, .grid > *, .split > *, .steps > * { min-width: 0; }
.section { margin-top: 28px; }
.section > h2 { margin-bottom: 12px; }
.panel { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-card); padding: 16px; }
.inner { background: var(--panel-2); border-radius: var(--r-field); padding: 10px 12px; }
.lead { color: var(--muted); font-size: 1rem; margin-top: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list > li { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-field); padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.list .sub { color: var(--muted); font-size: .85rem; }
.empty { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-card); padding: 18px 16px; color: var(--muted); display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; }
.empty strong { display: block; color: var(--text); margin-bottom: 2px; font-family: var(--font-h); font-size: 1.05rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-btn); font-weight: 700; text-decoration: none; cursor: pointer; background: var(--panel-2); color: var(--text); white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--line); }
.btn.primary { background: var(--violet); color: #fff; }
.btn.primary:hover { background: var(--violet-h); }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.btn.big { min-height: 50px; padding: 0 22px; font-size: 1rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.quiet { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.btn.quiet:hover { background: var(--panel); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }

/* Formulaires (compacts) */
.form { display: grid; gap: 10px; }
.field { display: grid; gap: 4px; }
.field label, .field legend { font-weight: 700; font-size: .82rem; }
.field .hint { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.input { width: 100%; min-height: 40px; padding: 0 11px; font-size: .92rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-field); color: var(--text); }
.input::placeholder { color: #8991C7; }
.input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23B0B5E0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
select.input option { background: var(--panel); color: var(--text); }
.phone-row { display: flex; gap: 8px; }
.phone-row .dial { display: grid; place-items: center; min-width: 58px; padding: 0 10px; font-size: .92rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-field); font-weight: 700; }
fieldset { border: 0; padding: 0; margin: 0; }
.err { color: var(--red); font-size: .85rem; margin: 0; }
.err:empty { display: none; }
.linkbtn { background: none; border: 0; color: var(--cyan); padding: 0; min-height: 40px; text-align: left; cursor: pointer; text-decoration: underline; font-size: .9rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel-2); border-radius: var(--r-btn); padding: 3px; }
.seg button { min-height: 38px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--violet); color: #fff; }
.seg.mini { max-width: 240px; }
.choice { display: grid; gap: 6px; }
.choice label { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; font-size: .92rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-field); cursor: pointer; font-weight: 500; }
.choice input { accent-color: var(--cyan); width: 18px; height: 18px; }
.choice label:has(input:checked) { border-color: var(--cyan); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.banner { background: var(--panel); border: 1px solid var(--edge); border-left: 3px solid var(--cyan); border-radius: var(--r-field); padding: 12px 14px; display: grid; gap: 10px; }
.banner.warn { border-left-color: var(--gold); }
.banner.bad { border-left-color: var(--red); }

/* Carte cadeau (SVG) */
.gcsvg { display: block; width: 100%; height: auto; }
.gcsvg .gc-val { font: 700 54px var(--font-h); fill: var(--text); }
.gcsvg .gc-brand { font: 600 17px var(--font-h); fill: var(--text); }
.gcsvg .gc-cur { font: 500 15px var(--font-b); fill: var(--muted); }

/* Accueil */
.hero2 { display: grid; gap: 22px; padding: 4px 0 0; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: center; min-width: 0; }
.hero2 h1 { font-size: 1.95rem; line-height: 1.15; display: grid; grid-template-columns: minmax(0, 1fr); }
.hero2 h1 span { display: block; }
.hero2 .lead { margin-top: 0; }
.hero2 .lead + .lead { margin-top: -6px; font-size: .95rem; }
.cta-row { display: flex; gap: 8px; margin-top: 4px; }
.cta-row .btn { flex: 1 1 0; padding: 0 10px; }
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.proof { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-card); padding: 10px 4px; display: grid; gap: 6px; justify-items: stretch; text-align: center; font-size: .88rem; font-weight: 700; min-width: 0; }
.proof .ic { color: var(--cyan); justify-self: center; }
.hero-art { width: 100%; max-width: 440px; margin: 0 auto; }
@media (min-width: 720px) { html { font-size: 16px; } .hero2 h1 { font-size: 2.6rem; } .cta-row .btn { flex: 0 0 auto; padding: 0 26px; } }
@media (min-width: 900px) {
  .hero2 { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding: 36px 0 8px; }
  .hero2 h1 { font-size: 3rem; }
  .proofs { grid-column: 1 / -1; }
}
.steps { display: grid; gap: 10px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-card); padding: 12px 14px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; }
.step h3 { margin-bottom: 2px; }
.step p { color: var(--muted); font-size: .9rem; }
.step .num { color: var(--cyan); font: 700 .8rem var(--font-h); }
@media (min-width: 720px) { .step { grid-template-columns: 1fr; padding: 18px; justify-items: start; } .step .illu { max-width: 96px; } }
.split { display: grid; gap: 14px; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.head-illu { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 4px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 150px; margin: 14px 0 12px; }
.bar { display: grid; gap: 5px; align-content: end; justify-items: center; font-size: .75rem; color: var(--muted); }
.bar i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: var(--line); }
.bar.last i { background: var(--gold); }
.bar b { color: var(--gold); font: 700 .78rem var(--font-h); }
.cta-panel { background: var(--panel-2); border: 1px solid var(--edge); border-radius: var(--r-sheet); padding: 20px 18px; display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 6px 14px; align-items: center; margin-top: 32px; }
.cta-panel .cta-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.cta-panel .cta-text .btn { justify-self: start; }
.cta-panel h2 { font-size: 1.35rem; }
.legal-note { color: var(--muted); font-size: .875rem; margin-top: 4px; }

/* Boutique */
.page-head { display: grid; gap: 10px; margin-bottom: 14px; }
.title-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 12px; align-items: center; }
.note { display: flex; gap: 10px; align-items: center; overflow: hidden; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-card); padding: 10px 14px; min-width: 0; }
.note .ic { color: var(--gold); }
.note p { min-width: 0; font-size: .92rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.gc { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-card); padding: 8px; display: grid; gap: 10px; align-content: start; }
.gc .meta { padding: 0 4px; display: grid; }
.gc .meta .lbl { color: var(--muted); font-size: .75rem; }
.gc .meta .amt { color: var(--gold); font: 700 1.05rem var(--font-h); }

/* Compte */
.acc-hero { display: grid; gap: 14px; }
.bal-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; align-items: center; }
.bal-v { font: 700 2.2rem var(--font-h); color: var(--gold); line-height: 1.1; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--panel-2); border-radius: var(--r-field); padding: 10px; display: grid; gap: 2px; min-width: 0; }
.stat b { font: 700 1.05rem var(--font-h); white-space: nowrap; }
.stat span { color: var(--muted); font-size: .75rem; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.tabs button { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-btn); background: var(--panel); color: var(--muted); font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--panel-2); color: var(--cyan); }
.own { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-card); padding: 10px; }
.own > div { min-width: 0; }
.code-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.code-val { font: 600 1rem var(--font-h); letter-spacing: .04em; word-break: break-all; }
.progress { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; background: var(--gold); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--panel-2); color: var(--muted); }
.tag.ok { color: var(--cyan); }
.tag.bad { color: var(--red); }
.tag.gold { color: var(--gold); }
.share-box { display: grid; gap: 12px; }
.ref-code { font: 700 1.5rem var(--font-h); letter-spacing: .08em; }
.link-box { word-break: break-all; font-size: .82rem; color: var(--muted); }

/* Informations */
.doc { display: grid; gap: 12px; }
.doc h3 { margin-top: 6px; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); max-width: 64ch; }
.doc p { color: var(--muted); }
.doc strong { color: var(--text); }

/* Pied de page */
.footer { background: var(--panel); border-top: 1px solid var(--edge); border-radius: 26px 26px 0 0; margin-top: 28px; padding: 26px 16px calc(var(--nav-h) + var(--safe-b) + 22px); }
body:not(.has-nav) .footer { padding-bottom: 24px; }
.footer-in { max-width: 1040px; margin: 0 auto; display: grid; gap: 22px; }
.ft-brand { display: grid; gap: 6px; }
.ft-brand .brand { font-size: 1.15rem; }
.ft-brand p { color: var(--muted); font-size: .9rem; }
.ft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ft-cols h4 { font-size: .95rem; margin-bottom: 4px; color: var(--text); }
.ft-cols nav { display: grid; align-content: start; }
.ft-cols a { display: flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.ft-cols a:hover { color: var(--cyan); }
.ft-company { background: var(--panel-2); border-radius: var(--r-card); padding: 14px; display: grid; gap: 12px; }
.ft-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .88rem; }
.ft-row .ic { color: var(--cyan); margin-top: 1px; }
.ft-row b { display: block; font-size: .95rem; }
.ft-row small { display: block; color: var(--muted); font-size: .78rem; }
.ft-row .val { font: 600 .92rem var(--font-h); letter-spacing: .03em; }
.ft-copy { color: var(--muted); font-size: .78rem; text-align: center; }
@media (min-width: 900px) {
  .footer { padding-bottom: 28px; }
  .footer-in { grid-template-columns: 1.1fr 1fr 1.1fr; align-items: start; gap: 36px; }
  .ft-copy { grid-column: 1 / -1; text-align: left; }
}

/* Navigation basse (mobile) */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(26, 30, 72, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--edge); padding-bottom: var(--safe-b); }
.nav[hidden] { display: none; }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--nav-h); color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 700; }
.nav .ico { display: grid; place-items: center; width: 54px; height: 28px; border-radius: 999px; }
.nav a[aria-current="page"] { color: var(--cyan); }
.nav a[aria-current="page"] .ico { background: var(--panel-2); }
@media (min-width: 900px) { .nav { display: none; } }

/* Panneau (bottom sheet) */
.scrim { position: fixed; inset: 0; background: rgba(5, 6, 20, .7); z-index: 40; animation: fade .2s ease-out; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 520px; margin: 0 auto; max-height: 92dvh; overflow-y: auto; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: 6px 16px calc(20px + var(--safe-b)); animation: rise .28s cubic-bezier(.2, .8, .2, 1); outline: none; }
.sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head h2 { font-size: 1.25rem; }
.sheet-body { display: grid; gap: 12px; }
.auth-intro { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.auth-intro p { color: var(--muted); font-size: .9rem; }
.sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sum strong { font: 700 1.2rem var(--font-h); }
.center { text-align: center; justify-items: center; }
.center p { margin-inline: auto; }
.illu-lg { width: 120px; }
.wait-art { position: relative; width: 120px; }
.wait-art::after { content: ""; position: absolute; inset: 12% 22%; border-radius: 22px; animation: pulse 1.6s ease-in-out infinite; pointer-events: none; }
.count { font: 700 1.5rem var(--font-h); color: var(--cyan); }
.bad-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--red); }
.code-reveal { width: 100%; background: var(--panel-2); border: 1px solid var(--cyan); border-radius: var(--r-card); padding: 16px 12px; font: 700 1.35rem var(--font-h); letter-spacing: .06em; word-break: break-all; overflow: hidden; }
.code-reveal span { display: inline-block; animation: unmask .7s steps(14, end) both; }

/* Notifications */
#toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 60; display: grid; gap: 8px; pointer-events: none; max-width: 536px; margin: 0 auto; }
@media (min-width: 900px) { #toasts { bottom: 16px; } }
.toast { background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: var(--r-field); padding: 12px 14px; pointer-events: auto; animation: rise .25s ease-out; }
.toast.warn { border-left-color: var(--gold); }
.toast.error { border-left-color: var(--red); }

/* Animations : une entree a l'ouverture, puis uniquement des reponses aux actions */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(45, 212, 230, .35); } 50% { box-shadow: 0 0 0 14px rgba(45, 212, 230, 0); } }
@keyframes unmask { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pop-in { animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); }
body.first-load .enter > * { animation: enter .6s cubic-bezier(.2, .8, .2, 1) both; }
body.first-load .enter > *:nth-child(2) { animation-delay: .08s; }
body.first-load .enter > *:nth-child(3) { animation-delay: .16s; }
body.first-load .enter > *:nth-child(4) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Installation de l'application */
.install-panel { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; }
.install-panel .row { flex-wrap: wrap; }
.install-panel .btn { white-space: normal; text-align: left; }
@media (min-width: 720px) { .install-panel .btn { white-space: nowrap; } }
.ft-cols nav a[data-install] { cursor: pointer; }

/* Sur tres petits ecrans, l'icone d'installation de l'en-tete cede la place au solde et a la deconnexion :
   installer reste possible depuis l'accueil, le compte et le pied de page. */
@media (max-width: 379px) { #hdr-actions [data-install] { display: none; } }
