/* Peume Photos : en plus de peume.css (mêmes règles : gris pleins sans bordure, pilules, survol en gras) */
.page { flex:1; width:min(960px, 100%); margin:0 auto; padding:56px 16px 40px; }
.page.etroite { width:min(640px, 100%); }
h1.titre { margin:0 0 12px; font-size:clamp(32px, 5vw, 48px); font-weight:500; letter-spacing:-.045em; line-height:1.05; }
h1.titre .pale { opacity:.35; }
h2.section { margin:56px 0 18px; font-size:20px; font-weight:600; letter-spacing:-.03em; }
.sous { margin:0 0 32px; color:var(--muted); font-size:16px; }
.vide { padding:48px 24px; border-radius:16px; background:var(--plein); color:var(--muted); text-align:center; }
.vide .btn { margin-top:18px; }

/* la galerie : seulement les photos, à angles droits, sans titre ni légende */
.grille { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:16px; }
.carte { display:block; aspect-ratio:4 / 5; background:var(--gris); overflow:hidden; transition:transform .35s var(--rebond); }
.carte:hover { transform:translateY(-3px); }
.carte img { width:100%; height:100%; object-fit:cover; display:block; }

/* l'échelle : la longueur du lien pour chaque note, en barres */
.echelle { display:grid; gap:6px; padding:20px; border-radius:16px; background:var(--plein); }
.echelle .ligne { display:grid; grid-template-columns:28px 1fr 92px; align-items:center; gap:12px; font-size:13px; }
.echelle .ligne b { font-weight:600; text-align:right; }
.echelle .ligne span { color:var(--muted); text-align:right; font-variant-numeric:tabular-nums; }
.echelle .barre { height:8px; border-radius:999px; background:var(--fg); min-width:4px; transform-origin:left; animation:pousse .9s var(--rebond) both; }
@keyframes pousse { from { transform:scaleX(0); } }

/* le lien d'une photo, en entier : il défile dans sa case, le bas s'efface */
.lien-photo { position:relative; max-height:220px; overflow:auto; padding:16px 18px; border-radius:14px; background:var(--plein); font:13px/1.45 "Geist Mono", ui-monospace, monospace; word-break:break-all; }
.lien-photo .dom { color:var(--faint); }
.lien-photo a { text-decoration:none; }
.lien-photo a:hover { color:#0e15e4; }
.actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }

.statut { color:var(--muted); font-size:14px; }
.note-grande { font-size:clamp(44px, 8vw, 72px); font-weight:500; letter-spacing:-.05em; line-height:1; }
.note-grande small { font-size:.4em; color:var(--muted); letter-spacing:-.02em; }

/* le curseur de note (celui de la calculatrice de peume-url) : la piste se remplit en noir jusqu'au pouce */
.curseur-note { --p:50%; -webkit-appearance:none; appearance:none; width:100%; height:6px; margin:0; border-radius:999px; outline:none; cursor:pointer;
  background:linear-gradient(var(--fg), var(--fg)) 0 0 / var(--p) 100% no-repeat, var(--gris2); }
.curseur-note::-webkit-slider-thumb { -webkit-appearance:none; width:18px; height:18px; border:0; border-radius:50%; background:var(--fg); transition:transform .35s var(--rebond); }
.curseur-note:active::-webkit-slider-thumb { transform:scale(1.2); }
.curseur-note::-moz-range-thumb { width:18px; height:18px; border:0; border-radius:50%; background:var(--fg); transition:transform .35s var(--rebond); }
.curseur-note:active::-moz-range-thumb { transform:scale(1.2); }
.curseur-note:focus-visible { box-shadow:0 0 0 3px rgba(29,29,27,.12); }
.reperes { display:flex; justify-content:space-between; margin-top:10px; font-size:12.5px; color:var(--faint); font-variant-numeric:tabular-nums; }
/* le lien modèle : en entier, à même la page, sans encart (40 000 caractères à droite de la piste) */
.apercu { margin:8px 0 0; font:13px/1.45 "Geist Mono", ui-monospace, monospace; word-break:break-all; }

/* le compteur kilométrique : le mot est une roue d'une ligne de haut, la pile glisse de l'ancien mot au nouveau */
.roue { display:block; height:1.1em; line-height:1.1; overflow:hidden; white-space:nowrap; }
.pile { display:flex; flex-direction:column; }
.pile > span { display:block; height:1.1em; line-height:1.1; white-space:pre; }
.pile.monte { animation:monte .42s var(--rebond) both; }
.pile.descend { animation:descend .42s var(--rebond) both; }
@keyframes monte { from { transform:translateY(0); } to { transform:translateY(-1.1em); } }
@keyframes descend { from { transform:translateY(-1.1em); } to { transform:translateY(0); } }
.pile .sort { animation:sort .3s ease both; }
.pile .entre { animation:entre .36s ease both; }
@keyframes sort { to { opacity:0; } }
@keyframes entre { from { opacity:0; } }
.apercu .dom { color:var(--faint); }
