/* ==========================================================================
   Effet « L'aimant à papiers » : page Sur mesure (sur-mesure.html), 16/11/2026
   Va avec assets/js/effets/aimant-papiers.js (voir l'en-tête du fichier pour l'usage).
   Chargé après palettes.css. Jetons seulement (base.css, palettes.css) : aucune
   couleur en dur. Le mode suit le site : sombre par défaut, clair avec
   html[data-mode="clair"] (bouton jour / nuit, palettes.js).
   Sommaire : 0. matière des papiers · 1. héros · 2. papiers · 3. fenêtre
   rangée · 4. aimant, bouton · 5. téléphone · 6. étapes de la page ·
   7. appel final · 8. états (sans JS, mouvement réduit)
   Sans JavaScript : papiers posés, fenêtre cachée, le texte reste lisible.
   ========================================================================== */

/* ---------- 0. Matière des papiers : papier crème sur le bureau sombre ;
   en mode clair (bureau crème), papier presque blanc, encre sombre ---------- */
:root {
  --am-papier: var(--papier);
  --am-papier-2: var(--papier-2);
  --am-encre: var(--graphite);
  --am-gris: var(--gris-papier);
  --am-filet: var(--filet-papier);
  --am-filet-fort: var(--filet-papier-fort);
  --am-accent: var(--tampon-texte);
  --am-postit: color-mix(in srgb, var(--tampon) 24%, var(--papier));
}
html[data-mode="clair"] {
  --am-papier: color-mix(in srgb, var(--encre) 30%, var(--sur-tampon));
  --am-papier-2: var(--encre-2);
  --am-encre: var(--craie);
  --am-gris: var(--gris);
  --am-filet: var(--filet-encre);
  --am-filet-fort: var(--filet-encre-fort);
  --am-accent: var(--tampon-clair);
  --am-postit: color-mix(in srgb, var(--tampon) 17%, var(--am-papier));
}

/* ---------- 1. Héros ---------- */
.am-heros {
  --am-zone-h: clamp(290px, 42svh, 400px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--entete-h));
  display: flex;
  align-items: center;
  padding-block: clamp(72px, 10vh, 120px);
  -webkit-tap-highlight-color: transparent;
}
.am-heros__cadre { position: relative; }
.am-heros__texte {
  display: grid;
  gap: clamp(20px, 3.2vh, 34px);
  justify-items: start;
  width: 46%;
  max-width: 40rem;
}
.am-heros__titre {
  max-width: 11.5ch;
  margin-left: -.04em;
  font-size: clamp(2.5rem, .5rem + 4.9vw, 5.9rem);
  line-height: .9;
  letter-spacing: -.045em;
}
.am-heros__chapeau { color: var(--texte-2); max-width: 30ch; }
.am-heros__chapeau b { font-weight: 400; color: var(--texte); }

/* La scène (décor) : sous le texte ; les papiers vivent dans .am-zone */
.am-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  font-size: clamp(11px, .25rem + .62vw, 13.5px);
}
.am-zone { position: absolute; top: 0; bottom: 0; left: 47%; right: 0; }
/* Voile : le titre reste lisible si un papier vient se coller dessous */
.am-voile {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--encre) 94%, transparent) 0%,
    color-mix(in srgb, var(--encre) 78%, transparent) 36%,
    transparent 49%);
}

/* ---------- 2. Les papiers (HTML + jetons, aucune image) ---------- */
.am-papier {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  translate: -50% -50%;
  transform: rotate(calc(var(--r) * 1deg));
  color: var(--am-encre);
  background-color: var(--am-papier);
  border-radius: 2px;
  box-shadow: 0 16px 34px -16px var(--ombre-feuille), 0 1px 3px var(--ombre-feuille);
  will-change: transform;
  backface-visibility: hidden;
}
.am-papier p { max-width: none; }
.am-papier__in { padding: .9em 1em; }

/* Morceau de tableur */
.am-p--tableur { --x: 36; --y: 26; --r: -6; width: 20em; }
.am-p--tableur .am-papier__in { padding: 0; }
.am-tableur__nom {
  display: flex;
  align-items: center;
  gap: .6em;
  padding: .55em .8em;
  border-bottom: 1px solid var(--am-filet-fort);
  font-family: var(--police-mono);
  font-size: .78em;
  font-weight: 500;
  letter-spacing: .02em;
}
.am-tableur__nom i { width: .9em; height: .9em; background-color: var(--am-accent); flex: none; }
.am-tableur__grille {
  display: grid;
  grid-template-columns: 1.8em repeat(3, minmax(0, 1fr));
  font-size: .8em;
  line-height: 1;
}
.am-c {
  height: 2.1em;
  padding: .6em .45em 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 1px solid var(--am-filet);
  border-bottom: 1px solid var(--am-filet);
}
.am-c--tete {
  padding-inline: 0;
  text-align: center;
  font-family: var(--police-mono);
  font-size: .9em;
  color: var(--am-gris);
  background-color: var(--am-papier-2);
}
.am-c--err { font-family: var(--police-mono); font-weight: 500; color: var(--am-accent); }
.am-c--choisie { box-shadow: inset 0 0 0 2px var(--am-accent); font-family: var(--police-mono); }

/* Post-it */
.am-p--postit { --x: 80; --y: 17; --r: 7; width: 11em; min-height: 10.4em; background-color: var(--am-postit); }
.am-p--postit .am-papier__in { padding: 1.5em 1em 1em; }
.am-p--postit::before {                 /* bout de scotch */
  content: "";
  position: absolute;
  top: -.7em;
  left: 50%;
  width: 4.6em;
  height: 1.4em;
  translate: -50% 0;
  rotate: -4deg;
  background-color: color-mix(in srgb, var(--am-papier-2) 62%, transparent);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ombre-feuille) 40%, transparent);
}
.am-postit__texte {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.6em;
  line-height: 1.02;
  letter-spacing: -.02em;
  transform: rotate(-2deg);
}
.am-postit__trait { display: block; width: 86%; height: .9em; margin-top: .25em; overflow: visible; }
.am-postit__trait path { fill: none; stroke: var(--am-accent); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.am-p--postit-2 { --x: 16; --y: 79; --r: -9; background-color: var(--am-papier-2); }
.am-p--postit-2 .am-postit__texte { font-size: 1.32em; }

/* Enveloppe de mail */
.am-p--mail { --x: 31; --y: 56; --r: -3; width: 18em; }
.am-p--mail .am-papier__in { padding: 0 1.1em 1em; }
.am-mail__rabat { display: block; width: calc(100% + 2.2em); height: 2.6em; margin: 0 -1.1em .5em; overflow: visible; }
.am-mail__rabat path { fill: none; stroke: var(--am-filet-fort); stroke-width: 1; vector-effect: non-scaling-stroke; }
.am-mail__de { font-size: .8em; color: var(--am-gris); }
.am-mail__objet { margin-top: .2em; font-weight: 600; font-size: 1em; letter-spacing: -.01em; }
.am-mail__pj {
  margin-top: .7em;
  padding-top: .55em;
  border-top: 1px dashed var(--am-filet-fort);
  font-family: var(--police-mono);
  font-size: .72em;
  color: var(--am-gris);
}

/* Page de carnet */
.am-p--carnet {
  --x: 80; --y: 55; --r: 5;
  width: 13em;
  height: 16em;
  background-image:
    radial-gradient(circle at 50% 50%, var(--encre) 0 .26em, transparent .29em),
    linear-gradient(90deg, transparent 2.3em, var(--am-accent) 2.3em, var(--am-accent) calc(2.3em + 1px), transparent calc(2.3em + 1px)),
    repeating-linear-gradient(to bottom, transparent 0 calc(1.6em - 1px), var(--am-filet-fort) calc(1.6em - 1px) 1.6em);
  background-size: 1.3em 1.3em, auto, auto;
  background-repeat: repeat-x, no-repeat, repeat;
  background-position: .35em .35em, 0 0, 0 2.4em;
}
.am-p--carnet .am-papier__in { padding: 2.75em .8em 0 2.9em; }
.am-carnet__date { font-family: var(--police-mono); font-size: .75em; color: var(--am-gris); line-height: 2.13; }
.am-carnet__texte {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.12em;
  line-height: 1.43;
  letter-spacing: -.01em;
}
.am-carnet__texte span { color: var(--am-gris); }
.am-carnet__barre { text-decoration: line-through; text-decoration-color: var(--am-accent); text-decoration-thickness: 2px; }

/* Ticket de caisse (bord dentelé : masque, jetons opaques) */
.am-p--ticket { --x: 87; --y: 81; --r: -8; width: 10em; background: none; box-shadow: none; filter: drop-shadow(0 10px 14px color-mix(in srgb, var(--ombre-feuille) 70%, transparent)); }
.am-p--ticket .am-papier__in {
  padding: 1em .9em 1.6em;
  background-color: var(--am-papier);
  font-family: var(--police-mono);
  font-size: .74em;
  line-height: 1.7;
  text-transform: uppercase;
  -webkit-mask:
    linear-gradient(var(--craie) 0 0) top / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, var(--craie) 90deg, transparent 0) bottom / 12px 7px repeat-x;
  mask:
    linear-gradient(var(--craie) 0 0) top / 100% calc(100% - 7px) no-repeat,
    conic-gradient(from -45deg at 50% 100%, var(--craie) 90deg, transparent 0) bottom / 12px 7px repeat-x;
}
.am-ticket__tete { padding-bottom: .4em; margin-bottom: .4em; border-bottom: 1px dashed var(--am-filet-fort); font-weight: 500; }
.am-ticket__total { margin-top: .4em; padding-top: .4em; border-top: 1px dashed var(--am-filet-fort); font-weight: 500; }

/* Capture de messagerie */
.am-p--chat { --x: 55; --y: 77; --r: 3; width: 15em; }
.am-p--chat .am-papier__in { display: grid; gap: .45em; padding: 0 .8em .9em; }
.am-chat__barre {
  margin: 0 -.8em .2em;
  padding: .55em .8em;
  border-bottom: 1px solid var(--am-filet);
  font-family: var(--police-mono);
  font-size: .7em;
  font-weight: 500;
  letter-spacing: var(--interlettrage-mono);
  text-transform: uppercase;
  color: var(--am-gris);
}
.am-bulle {
  justify-self: start;
  padding: .4em .65em;
  font-size: .86em;
  line-height: 1.25;
  background-color: var(--am-papier-2);
  border-radius: var(--rayon);
}
.am-bulle--moi { justify-self: end; background-color: var(--am-postit); }
.am-bulle--points { display: flex; gap: .3em; padding-block: .62em; }
.am-bulle--points i { width: .32em; height: .32em; background-color: var(--am-gris); }

/* Scan PDF de travers */
.am-p--scan { --x: 62; --y: 38; --r: 9; width: 12.5em; height: 15.5em; }
.am-scan__nom { font-family: var(--police-mono); font-size: .7em; color: var(--am-gris); padding-bottom: .5em; border-bottom: 1px solid var(--am-filet); }
.am-scan__page { display: grid; gap: .62em; margin-top: 1em; transform: rotate(-2.5deg); }
.am-scan__page i { display: block; height: .45em; background-color: var(--am-filet-fort); }
.am-scan__page i:nth-child(1) { width: 62%; height: .7em; }
.am-scan__page i:nth-child(2) { width: 92%; }
.am-scan__page i:nth-child(3) { width: 84%; }
.am-scan__page i:nth-child(4) { width: 96%; }
.am-scan__page i:nth-child(5) { width: 40%; }
.am-scan__page i:nth-child(6) { width: 88%; margin-top: .5em; }
.am-scan__page i:nth-child(7) { width: 70%; }
.am-scan__rond { position: absolute; left: 6%; top: 52%; width: 62%; height: 2.6em; overflow: visible; }
.am-scan__rond path { fill: none; stroke: var(--am-accent); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- 3. La fenêtre rangée (le logiciel) + le tampon ---------- */
.am-place {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px var(--gouttiere) 24px 24px;
}
.am-fenetre {
  --couleur-tampon: var(--tampon);
  position: relative;
  width: min(100%, 46em);
  font-size: 1.1em;
  color: var(--am-encre);
  background-color: var(--am-papier);
  border: 1px solid var(--am-filet-fort);
  border-radius: var(--rayon);
  box-shadow: 0 44px 90px -38px var(--ombre-feuille), 0 2px 8px -2px var(--ombre-feuille);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--sortie-douce), visibility 0s linear .3s;
}
.am-fenetre p { max-width: none; }
.am-fenetre__in { position: relative; }
.am-fenetre__barre {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1em;
  padding: .7em 1.1em;
  background-color: var(--am-papier-2);
  border-bottom: 1px solid var(--am-filet);
  border-radius: var(--rayon) var(--rayon) 0 0;
  font-family: var(--police-mono);
  font-size: .74em;
  font-weight: 500;
  letter-spacing: var(--interlettrage-mono);
  text-transform: uppercase;
  color: var(--am-gris);
}
.am-points { display: flex; gap: .45em; }
.am-points i { width: .7em; height: .7em; border: 1px solid var(--am-filet-fort); }
.am-points i:first-child { background-color: var(--tampon); border-color: var(--tampon); }
.am-fenetre__corps { position: relative; display: grid; grid-template-columns: 9em minmax(0, 1fr); }
.am-fenetre__menu {
  position: relative;
  display: grid;
  align-content: start;
  gap: .2em;
  padding: 1em .6em;
  border-right: 1px solid var(--am-filet);
  font-size: .88em;
  color: var(--am-gris);
}
.am-fenetre__menu span { padding: .42em .6em; white-space: nowrap; }
.am-fenetre__menu .est-actif { color: var(--am-encre); font-weight: 500; background-color: var(--am-papier-2); box-shadow: inset 2px 0 0 var(--tampon); }
.am-fenetre__main { position: relative; padding: 1.1em 1.3em 1.2em; }
.am-fenetre__haut { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1em; padding-bottom: .9em; }
.am-fenetre__titre { font-family: var(--police-titre); font-weight: 700; font-size: 1.5em; line-height: 1; letter-spacing: -.025em; }
.am-fenetre__ajouter {
  padding: .45em .75em;
  font-size: .8em;
  font-weight: 600;
  white-space: nowrap;
  color: var(--sur-tampon);
  background-color: var(--tampon-fort);
  border-radius: var(--rayon);
}
.am-ligne {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 1em;
  align-items: center;
  gap: 1em;
  min-height: 2.55em;
  border-bottom: 1px solid var(--am-filet);
  font-size: .92em;
}
.am-ligne > * { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.am-ligne s, .am-ligne b {
  font-family: var(--police-mono);
  font-size: .9em;
}
.am-ligne s {
  color: var(--am-gris);
  text-decoration-color: color-mix(in srgb, var(--am-accent) 70%, transparent);
  text-decoration-thickness: 1px;
}
.am-ligne b { font-weight: 500; color: var(--am-accent); }
.am-ligne i { width: .55em; height: .55em; justify-self: end; background-color: var(--tampon); }
.am-ligne--tete {
  min-height: 2em;
  border-bottom-color: var(--am-filet-fort);
  font-family: var(--police-mono);
  font-size: .66em;
  font-weight: 500;
  letter-spacing: var(--interlettrage-mono);
  text-transform: uppercase;
  color: var(--am-gris);
}
.am-tampon {
  --tampon-taille: clamp(1.35rem, .9rem + 1.3vw, 2.15rem);
  --tampon-rotation: -9deg;
  position: absolute;
  right: -.5em;
  bottom: -1.1em;
  z-index: 2;
}
/* le tampon n'attend pas le secours de 2,5 s : c'est le script qui le frappe */
.am-heros .am-tampon:not(.est-tamponne) { animation: none; }

/* Les cases se remplissent : vides (trait d'attente), puis le papier arrive */
.am-slot > * { opacity: 0; transform: translateY(.35em); transition: opacity .3s var(--sortie-douce), transform .45s var(--sortie); }
.am-slot.est-pose > * { opacity: 1; transform: none; transition-delay: var(--retard, 0ms); }
.am-slot.am-slot--cadre { --retard: 260ms; }
.am-ligne.am-slot::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 38%;
  height: .5em;
  translate: 0 -50%;
  background-color: var(--am-filet);
  transition: opacity .2s ease;
}
.am-ligne.am-slot.est-pose::after { opacity: 0; }
.am-slot::before {                      /* éclair bordeaux quand un papier se pose */
  content: "";
  position: absolute;
  inset: 0 -.4em;
  background-color: color-mix(in srgb, var(--tampon) 18%, transparent);
  opacity: 0;
  pointer-events: none;
}
.am-slot.est-pose:not(.am-slot--cadre)::before { animation: am-eclair .75s ease-out; }
@keyframes am-eclair { from { opacity: 1; } to { opacity: 0; } }

/* Rangé : la fenêtre apparaît, puis le coup de tampon la fait trembler */
.am--range .am-fenetre {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--sortie-douce), visibility 0s;
  animation: am-entree .6s var(--sortie) both;
}
@keyframes am-entree { from { transform: scale(.965); } to { transform: none; } }
.am-fenetre.est-frappee .am-fenetre__in { animation: am-coup .34s cubic-bezier(.3, .7, .2, 1); }
@keyframes am-coup { 35% { transform: translateY(3px) scale(.996); } }

/* ---------- 4. L'aimant (le curseur), le bouton « Ranger » / « Mélanger » ---------- */
.am-aimant {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: block;
  width: 44px;
  height: 44px;
  margin: -4px 0 0 -22px;
  overflow: visible;
  transform-origin: 22px 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  will-change: transform;
}
.am-aimant.est-visible { opacity: 1; }
.am-aimant path { fill: none; stroke-width: 6.5; }
.am-aimant__corps { stroke: var(--tampon); }
.am-aimant__poles { stroke: var(--texte); }
.am-heros.am--curseur { cursor: none; }
.am-heros.am--curseur :is(h1, p, li) { cursor: auto; }

.am-jeu {
  position: absolute;
  right: var(--gouttiere);
  bottom: clamp(16px, 3.2vh, 32px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 12px;
  font-family: var(--police-mono);
  font-size: var(--t-mono-petit);
  font-weight: 500;
  letter-spacing: var(--interlettrage-mono);
  text-transform: uppercase;
  color: var(--texte-2);
  background-color: color-mix(in srgb, var(--encre) 80%, transparent);
  border: 1px solid var(--filet-fort);
  border-radius: var(--rayon);
  transition: color var(--duree-courte) ease, border-color var(--duree-courte) ease;
}
.am-jeu:hover { color: var(--texte); border-color: var(--texte-2); }
.am-jeu svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.am-jeu:active svg { transform: rotate(-30deg); }

/* ---------- 5. Téléphone et tablette : les papiers au-dessus du texte ---------- */
@media (max-width: 899px) {
  .am-heros {
    align-items: flex-end;
    padding-top: calc(var(--am-zone-h) + 12px);
    padding-bottom: clamp(40px, 7vh, 64px);
  }
  .am-heros__texte { width: auto; gap: 20px; }
  .am-heros__titre { max-width: 12ch; }
  .am-scene { font-size: clamp(10.5px, .2rem + 1.4vw, 13px); }
  .am-zone { left: 0; right: 0; bottom: auto; height: var(--am-zone-h); }
  .am-voile {
    background: linear-gradient(to bottom,
      transparent calc(var(--am-zone-h) - 24px),
      color-mix(in srgb, var(--encre) 88%, transparent) calc(var(--am-zone-h) + 36px));
  }
  .am-p--carnet, .am-p--ticket, .am-p--scan { display: none; }
  .am-p--tableur { --x: 33; --y: 25; --r: -6; }
  .am-p--postit { --x: 83; --y: 21; --r: 8; }
  .am-p--mail { --x: 56; --y: 52; --r: -4; }
  .am-p--chat { --x: 22; --y: 67; --r: 4; }
  .am-p--postit-2 { --x: 86; --y: 70; --r: -7; }
  .am-place { padding: 30px 16px 18px; }
  .am-jeu { top: calc(var(--am-zone-h) - 46px); bottom: auto; right: 16px; }
}
@media (max-width: 599px) {
  .am-fenetre { width: min(100%, 50em); font-size: 1em; }
  .am-fenetre__corps { grid-template-columns: minmax(0, 1fr); }
  .am-fenetre__menu { display: none; }
  .am-fenetre__main { padding: .8em 1em .9em; }
  .am-fenetre__haut { padding-bottom: .6em; }
  .am-ligne { min-height: 2.3em; }
  .am-ligne[data-slot="l4"] { display: none; }
  .am-p--tableur { width: 17.5em; }
  .am-p--mail { width: 14em; }
  .am-p--chat { width: 13em; }
  .am-p--postit { width: 9.6em; min-height: 9em; }
  .am-p--postit .am-postit__texte { font-size: 1.4em; }
  .am-p--postit-2 .am-postit__texte { font-size: 1.15em; }
}

/* ---------- 6. Comment ça se passe : 3 étapes, une ligne chacune ---------- */
#titre-etapes { margin-top: var(--espace-5); }
.am-etapes__liste {
  display: grid;
  gap: var(--espace-8) clamp(20px, 3vw, 48px);
  margin-top: clamp(48px, 7vw, 96px);
  list-style: none;
  padding: 0;
}
@media (min-width: 900px) { .am-etapes__liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.am-etape { position: relative; padding-top: var(--espace-5); border-top: 1px solid var(--filet-fort); }
.am-etape__haut { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.am-etape__num {
  max-width: none;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: clamp(4.4rem, 2rem + 6vw, 8.6rem);
  line-height: .78;
  letter-spacing: -.07em;
  color: transparent;
  -webkit-text-stroke: 1px var(--texte-2);
  user-select: none;
}
.am-croquis { width: clamp(84px, 9vw, 120px); height: auto; flex: none; overflow: visible; }
.am-croquis path { fill: none; stroke: var(--texte-2); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.am-croquis .am-croquis__accent { stroke: var(--accent-texte); stroke-width: 2; }
.js .am-etape .am-croquis path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .am-etape.est-visible .am-croquis path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.1s var(--sortie) calc(250ms + var(--i, 0) * 140ms);
}
.am-etape__titre { margin-top: var(--espace-6); font-size: clamp(2rem, 1rem + 2.4vw, 3.4rem); line-height: .95; letter-spacing: -.035em; }
.am-etape__ligne { margin-top: var(--espace-4); max-width: 30ch; color: var(--texte-2); }

/* ---------- 7. Appel final ---------- */
.am-appel__grille { display: grid; gap: var(--espace-8) clamp(16px, 2vw, 32px); align-items: center; }
@media (min-width: 900px) { .am-appel__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.am-appel__texte > * + * { margin-top: var(--espace-6); }
.am-postit-final {
  justify-self: center;
  width: min(100%, 19rem);
  aspect-ratio: 1;
  padding: 2.4rem 1.6rem;
  color: var(--am-encre);
  background-color: var(--am-postit);
  border-radius: 2px;
  box-shadow: 0 30px 60px -30px var(--ombre-feuille), 0 2px 4px var(--ombre-feuille);
  rotate: 3deg;
  position: relative;
  transition: rotate .6s cubic-bezier(.34, 1.56, .64, 1);
}
.am-postit-final:hover { rotate: -1deg; }
@media (max-width: 599px) { .am-postit-final { width: min(72%, 15rem); padding: 1.8rem 1.3rem; } }
.am-postit-final::before {
  content: "";
  position: absolute;
  top: -.8rem;
  left: 50%;
  width: 6rem;
  height: 1.7rem;
  translate: -50% 0;
  rotate: 3deg;
  background-color: color-mix(in srgb, var(--am-papier-2) 62%, transparent);
}
.am-postit-final p {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.am-postit-final__curseur {
  display: inline-block;
  width: 3px;
  height: .9em;
  margin-left: 4px;
  vertical-align: -.08em;
  background-color: var(--am-accent);
  animation: am-clignote 1.1s steps(1) infinite;
}
@keyframes am-clignote { 50% { opacity: 0; } }

/* ---------- 8. États : sans JS (papiers posés, fenêtre cachée) ;
   JS pas encore prêt (papiers cachés, secours à 1,5 s) ; mouvement réduit ---------- */
.js .am-heros:not(.am--pret) .am-papier { opacity: 0; animation: am-secours 0s linear 1.5s forwards; }
@keyframes am-secours { to { opacity: 1; } }
.am--instant, .am--instant * { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .am-postit-final__curseur { animation: none; }
}
@media print { .am-scene, .am-jeu { display: none; } }
