/* UX layer — applied after each page's own styles.
   Rules from the UI UX Pro Max checklist: touch targets ≥44px on touch screens,
   8px+ spacing between targets, visible focus on every control, press feedback,
   no text under 12px, non-text contrast ≥3:1, anchors not hidden by the sticky nav. */

/* press feedback on every control */
button,a.btn,.tile,.sty,.sug,.preset,.chip,.sw,.pick,label.drop,label.photo{transition:opacity .12s,transform .15s,background-color .2s,border-color .2s,color .2s,box-shadow .2s}
button:not(:disabled):active,a.btn:active{opacity:.82}

/* visible focus on inputs too (not only buttons) */
input:focus-visible,select:focus-visible{outline:3px solid var(--encre);outline-offset:2px}
.big-in:focus-visible{outline:none}
label.drop:focus-within,label.photo:focus-within,label.pick:focus-within{outline:3px solid var(--encre);outline-offset:3px}

/* non-text contrast: empty stamp slots and the reward slot must stay visible (≥3:1) */
.slot{border-color:#A3A99C}
.slot.gift{color:#7D8376}

/* sections reached by anchor links land below the sticky nav */
section[id],header[id]{scroll-margin-top:76px}

/* minimum readable sizes */
.card-top small,.tent small,.shot-kpis span{font-size:12px}

/* touch screens: 44px targets, 8px gaps */
@media (pointer:coarse){
  .who{gap:8px}
  .who button,.chip,.preset,.sug,.seg button,.sbtn,.ok,.no,.dacts button{min-height:44px}
  .linkbtn,.rm,.skip,.cancel,.quit,.reset{display:inline-flex;align-items:center;min-height:44px}
  .sw,.pick{width:44px;height:44px}
  .colors,.presets{gap:10px}
  .tog{position:relative}
  .tog::before{content:"";position:absolute;inset:-8px -4px}
  .drawer .x{width:44px;height:44px}
  .back{min-height:48px}
  nav a.logo,.top a.logo,.lhead a.logo,.solo a.logo,.mob-top a,.foot a,footer .flinks a,.legal-nav a,.demo-tabs button,nav .btn-sm{display:inline-flex;align-items:center;min-height:44px}
  input[type=range]{height:44px}
}

/* mobile bottom nav labels: 12px minimum */
@media (max-width:900px){
  .navlink{font-size:12px;min-height:52px}
  .chart small{font-size:12px}
  .chart .col:nth-child(even):not(:last-child) small{visibility:hidden}
}

/* mobile sticky call-to-action (vitrine) */
.sticky-cta{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:40;display:none;align-items:center;justify-content:center;gap:10px;padding:16px 20px;border-radius:999px;background:var(--encre);color:#fff;font-weight:800;font-size:17px;text-decoration:none;box-shadow:0 14px 30px -10px rgba(28,31,59,.55);transform:translateY(140%);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.sticky-cta svg{width:20px;height:20px}
.sticky-cta.show{transform:none}
@media (max-width:720px){.sticky-cta{display:flex}}

/* --- passe UI UX Pro Max n°2 --- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;left:12px;top:-80px;z-index:300;background:var(--ticket);color:var(--nuit);border:2px solid var(--nuit);padding:12px 18px;border-radius:10px;font-weight:700;text-decoration:none;transition:top .15s}
.skip-link:focus{top:12px}
a,button,summary,label,select,input,textarea,[role=button]{touch-action:manipulation}
summary,select,label:has(input[type=checkbox]),label:has(input[type=radio]){cursor:pointer}
@media (pointer:fine){.nav-links a:not(.btn),footer .flinks a,.legal-nav a,.side-foot a{display:inline-block;padding-block:4px}}
