/* Fenêtre « Installe Par cœur » (ERGONOMIE.md, étape 18), avec js/installation.js. Une feuille bristol qui monte du bas
   de l'écran sur un fond assombri ; animations seulement quand le JS pose .pci-monte (réglage Animations sur Oui). */
.pc-installer{position:fixed;inset:0;z-index:60}
.pc-installer[hidden]{display:none}
.pci-fond{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.pci-feuille{position:absolute;left:0;right:0;bottom:0;max-width:480px;margin:0 auto;box-sizing:border-box;
  display:flex;flex-direction:column;align-items:stretch;gap:var(--espace-3);
  padding:24px 20px calc(20px + env(safe-area-inset-bottom));background:var(--bristol);
  border-radius:var(--rayon-boite) var(--rayon-boite) 0 0;box-shadow:var(--ombre-fiche-levee)}
.pci-icone{align-self:center;width:64px;height:64px;border-radius:14px;box-shadow:var(--ombre-fiche)}
.pci-feuille h2{margin:0;font:400 24px/1.2 var(--f-display);color:var(--graphite);text-align:center;outline:none}
.pci-texte{margin:0;font-size:15px;line-height:1.45;color:var(--crayon);text-align:center}
.pci-texte.pcam-note{font-size:14px}   /* fenêtre des matières, js/avis-matieres.js (17c) */
/* Haute (iPhone, 3 gestes) : défile plutôt que de sortir par le haut d'un petit écran */
.pci-feuille{max-height:calc(100% - 16px);overflow-y:auto}
@media (max-height:700px){.pci-feuille .pci-icone{display:none}}
.pci-note{margin:0;font-size:14px;line-height:1.4;color:var(--crayon);text-align:center}
.pci-note b{color:var(--graphite);font-weight:600}

/* Marche à suivre (15/11) : à gauche un petit dessin du geste, l'endroit à toucher entouré au correcteur ; à droite le geste */
.pci-gestes{list-style:none;margin:2px 0;padding:0;display:flex;flex-direction:column;gap:10px}
.pci-gestes li{display:grid;grid-template-columns:118px 1fr;gap:12px;align-items:center;padding:10px 12px 10px 10px;
  border-radius:var(--rayon-fiche);background:var(--bristol-pale);font-size:14.5px;line-height:1.35;color:var(--crayon)}
.pci-gestes li>span svg{display:inline;vertical-align:-3px;color:var(--graphite)}
.pci-gestes b{color:var(--graphite);font-weight:600}
.pci-dessin{position:relative;height:62px;border-radius:6px;background:var(--kraft);display:flex;align-items:center;justify-content:center}
.pci-num{position:absolute;top:-7px;left:-7px;width:20px;height:20px;border-radius:50%;background:var(--action);color:var(--on-action);
  font:600 12px/20px var(--font-texte);text-align:center}
.pci-cercle{position:relative}
.pci-cercle::after{content:"";position:absolute;inset:-6px -7px;border:2px solid var(--correcteur);border-radius:50%;transform:rotate(-7deg);pointer-events:none}
.pci-barre{display:flex;align-items:center;gap:4px}
.pci-rond,.pci-pilule,.pci-carte{background:var(--bristol);box-shadow:0 1px 0 var(--bristol-ombre);color:var(--crayon);font:500 9px/1 var(--font-texte)}
.pci-rond{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:700 12px/1 var(--font-texte);color:var(--graphite)}
.pci-pilule{height:22px;padding:0 8px;border-radius:11px;display:flex;align-items:center}
.pci-pilule.pci-large{width:86px;box-sizing:border-box}
.pci-carte{width:100px;border-radius:5px}
.pci-carte>div{display:flex;justify-content:space-between;align-items:center;gap:4px;padding:5px 7px}
.pci-carte>div+div{border-top:1px solid var(--bristol-pale)}
.pci-carte .pci-fort{color:var(--graphite);font-weight:700}
.pci-carte span.pci-cercle{padding:1px 4px;margin:-1px -4px -1px 0}
.pci-carte .pci-cercle::after{inset:-2px;border-radius:10px;transform:rotate(-2deg)}
.pci-carte img{width:16px;height:16px;border-radius:4px}
.pci-carte .pci-appli{justify-content:flex-start;color:var(--graphite)}
.pci-bulle{position:absolute;top:6px;left:50%;transform:translateX(-50%);padding:4px 7px;border-radius:5px;background:var(--action);color:var(--on-action);font:600 9px/1 var(--font-texte)}
.pci-bas{margin-top:18px}
.pci-copier{padding:6px 9px;border-radius:7px 7px 3px 3px;background:var(--action);color:var(--on-action);box-shadow:0 2px 0 var(--action-ombre);font:600 10px/1 var(--font-texte)}
/* « Un petit rappel le soir ? » : la notification telle qu'elle arrivera */
.pci-ecran{padding:12px;border-radius:6px;background:var(--kraft)}
.pci-notif{display:grid;grid-template-columns:34px 1fr auto;gap:2px 10px;align-items:center;padding:10px 12px;border-radius:14px;
  background:var(--bristol-pale);box-shadow:0 1px 0 var(--bristol-ombre);font:500 13px/1.3 var(--font-texte);color:var(--crayon)}
.pci-notif img{grid-row:span 2;width:34px;height:34px;border-radius:8px}
.pci-notif b{color:var(--graphite);font-weight:700}
.pci-notif i{font-style:normal;font-size:12px;justify-self:end}
.pci-notif span{grid-column:2 / 4;color:var(--graphite)}
.pci-feuille .btn.big{width:100%}
.pci-feuille .link-btn{align-self:center;color:var(--crayon)}

.pc-installer.pci-monte .pci-fond{animation:pc-apparait .25s ease both}
.pc-installer.pci-monte .pci-feuille{animation:pci-monte .35s cubic-bezier(.2,.8,.3,1) both}
@keyframes pci-monte{from{transform:translateY(100%)}to{transform:none}}
/* Fermée : elle redescend par le même chemin, un peu plus vite (js/installation.js, descendreFeuille) */
.pc-installer.pci-descend{pointer-events:none}
.pc-installer.pci-descend .pci-fond{animation:pci-efface .22s ease-in both}
.pc-installer.pci-descend .pci-feuille{animation:pci-descend .22s cubic-bezier(.7,0,.8,.2) both}
@keyframes pci-efface{to{opacity:0}}
@keyframes pci-descend{to{transform:translateY(100%)}}
@media (prefers-reduced-motion:reduce){
  .pc-installer.pci-monte .pci-fond,.pc-installer.pci-monte .pci-feuille{animation:none}
}
