/*
 * Page de connexion MyPPM : feuille du module connexion/ du thème (1.0.0, 28/10/2026), reprise de la maquette
 * MAQUETTES-connexion-20261028. Le formulaire reste celui de WordPress (wp-login.php) : seules l'apparence et quelques
 * textes changent. Deux variantes : body.ppm-cnx-a « La ville » (le cadre posé sur l'illustration) et body.ppm-cnx-b
 * « Deux volets ». Ajouts du module autour du formulaire (page.php) : .ppm-cnx-ville et sa .ppm-cnx-toile (l'illustration
 * et ses habitants animés), .ppm-cnx-calme (bouton pause), .ppm-cnx-scene (les deux duos de parrainage),
 * .ppm-cnx-accueil (titre et phrase d'accueil) et .ppm-cnx-aide (ligne sous le formulaire).
 */

body.login.ppm-cnx {
  --turquoise: #06A2C4;
  --turquoise-fonce: #067A97;
  --turquoise-nuit: #05677F;
  --menthe: #8BD4BE;
  --corail: #ED5E54;
  --jaune: #FFD84D;
  --marine: #3F3E8A;
  --nuit: #26265E;
  --texte: #1E2147;
  --doux: #5C6283;
  --bord: #C4CDDD;
  --champ: #F6F8FC;
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background: #E6F6F8;
  color: var(--texte);
  font: 15px/1.5 var(--police);
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}
body.login.ppm-cnx *, body.login.ppm-cnx *::before, body.login.ppm-cnx *::after { box-sizing: border-box; }
body.ppm-cnx > .clear, body.ppm-cnx .language-switcher, body.ppm-cnx #backtoblog { display: none; }

/* ---------- l'illustration de la ville PPM (allégée : 120 Ko au lieu de 1,5 Mo) */
body.ppm-cnx .ppm-cnx-ville {
  background-color: #BFE9EF;
  background-image: url("ville.jpg");
  background-image: image-set(url("ville.webp") type("image/webp"), url("ville.jpg") type("image/jpeg"));
  background-repeat: no-repeat;
  background-size: cover;
}

/* ---------- les habitants de la ville s'animent (motion design)
   Chaque personnage est détouré de l'illustration et posé à sa place exacte sur le décor redessiné sans lui
   (ville-fond.webp) : immobiles, ils redonnent l'image d'origine au pixel près.
   À l'ouverture, la ville se réveille de gauche à droite (chacun se tasse, saute, se réceptionne) et la bulle
   « BIENVENUE ! » éclot ; puis chacun vit sa boucle : foulées des coureurs, galop du chien, conversation,
   promenades, coucou du monsieur du banc, lancer de boules, papillon, nuage, coup de vent dans l'arbre et les fleurs.
   Seulement si l'ordinateur ne demande pas moins d'animations ; le bouton .ppm-cnx-calme les arrête (WCAG 2.2.2).
   var(--k) vaut un pixel de l'illustration (2312 x 1300), quelle que soit la taille d'affichage. */
body.ppm-cnx .ppm-cnx-toile, body.ppm-cnx .ppm-cnx-calme { display: none; }
@supports (width: 1cqw) {
  @media (prefers-reduced-motion: no-preference) {
    body.login.ppm-cnx .ppm-cnx-ville { container-type: size; overflow: hidden; background-image: none; }
    body.ppm-cnx .ppm-cnx-toile { display: block; }
    body.ppm-cnx .ppm-cnx-calme { display: flex; }
  }
}
/* la toile couvre la zone de l'illustration comme background-size: cover, au même cadrage (--ppm-cnx-x, --ppm-cnx-y) */
body.ppm-cnx .ppm-cnx-toile {
  --k: calc(100cqw / 2312);
  position: absolute;
  left: var(--ppm-cnx-x, 50%);
  top: var(--ppm-cnx-y, 50%);
  width: max(100cqw, calc(100cqh * 2312 / 1300));
  aspect-ratio: 2312 / 1300;
  container-type: inline-size;
  background: url("ville-fond.webp") 0 0 / 100% 100% no-repeat;
  transform: translate(calc(-1 * var(--ppm-cnx-x, 50%)), calc(-1 * var(--ppm-cnx-y, 50%)));
}
/* un personnage : la boîte extérieure (place, réveil, déplacements) et l'image intérieure (sa boucle), même pivot */
body.ppm-cnx .ppm-cnx-h {
  position: absolute;
  left: calc(var(--x) * var(--k));
  top: calc(var(--y) * var(--k));
  width: calc(var(--w) * var(--k));
  height: calc(var(--h) * var(--k));
  transform-origin: calc(var(--ox) * var(--k)) calc(var(--oy) * var(--k));
}
body.ppm-cnx .ppm-cnx-h > i {
  position: absolute;
  inset: 0;
  background: url("habitants.webp") calc(var(--ax) * var(--k) * -1) calc(var(--ay) * var(--k) * -1) no-repeat;
  transform-origin: inherit;
}
/* habitants : début (écrit par publier.py, pixels de l'illustration 2312 x 1300, planche 1024 px de large) */
body.ppm-cnx .ppm-cnx-h > i { background-size: calc(1024 * var(--k)) auto; }
body.ppm-cnx .ppm-cnx-h-nuage { --x: 139; --y: 99; --w: 128; --h: 39; --ax: 512; --ay: 511; --ox: 64; --oy: 19.5; --d: 0.26s; }
body.ppm-cnx .ppm-cnx-h-papillon { --x: 1576; --y: 73; --w: 43; --h: 46; --ax: 465; --ay: 511; --ox: 21.5; --oy: 23; --d: 0.98s; }
body.ppm-cnx .ppm-cnx-h-arbre { --x: 1928; --y: 23; --w: 270; --h: 99; --ax: 4; --ay: 511; --ox: 122; --oy: 96; --d: 1.22s; }
body.ppm-cnx .ppm-cnx-h-ado-1 { --x: 116; --y: 482; --w: 76; --h: 242; --ax: 795; --ay: 4; --ox: 38; --oy: 242; --d: 0.23s; }
body.ppm-cnx .ppm-cnx-h-ado-2 { --x: 190; --y: 480; --w: 105; --h: 243; --ax: 496; --ay: 4; --ox: 52.5; --oy: 243; --d: 0.28s; }
body.ppm-cnx .ppm-cnx-h-famille { --x: 526; --y: 317; --w: 216; --h: 242; --ax: 4; --ay: 265; --ox: 108; --oy: 242; --d: 0.48s; }
body.ppm-cnx .ppm-cnx-h-costume { --x: 747; --y: 310; --w: 85; --h: 253; --ax: 320; --ay: 4; --ox: 42.5; --oy: 253; --d: 0.56s; }
body.ppm-cnx .ppm-cnx-h-bulle { --x: 908; --y: 483; --w: 240; --h: 106; --ax: 548; --ay: 265; --ox: 112; --oy: 104; --d: 0.68s; }
body.ppm-cnx .ppm-cnx-h-bavarde-1 { --x: 948; --y: 585; --w: 83; --h: 248; --ax: 409; --ay: 4; --ox: 41.5; --oy: 248; --d: 0.66s; }
body.ppm-cnx .ppm-cnx-h-bavarde-2 { --x: 1027; --y: 580; --w: 82; --h: 257; --ax: 4; --ay: 4; --ox: 41; --oy: 257; --d: 0.70s; }
body.ppm-cnx .ppm-cnx-h-coureuse { --x: 1415; --y: 558; --w: 186; --h: 243; --ax: 605; --ay: 4; --ox: 93; --oy: 243; --d: 0.93s; }
body.ppm-cnx .ppm-cnx-h-coureur { --x: 1540; --y: 491; --w: 127; --h: 225; --ax: 298; --ay: 265; --ox: 63.5; --oy: 225; --d: 0.98s; }
body.ppm-cnx .ppm-cnx-h-chien { --x: 1718; --y: 598; --w: 115; --h: 112; --ax: 429; --ay: 265; --ox: 57.5; --oy: 112; --d: 1.07s; }
body.ppm-cnx .ppm-cnx-h-bras { --x: 2139; --y: 505; --w: 33; --h: 52; --ax: 428; --ay: 511; --ox: 29; --oy: 46; --d: 1.27s; }
body.ppm-cnx .ppm-cnx-h-joueur { --x: 2229; --y: 387; --w: 70; --h: 229; --ax: 224; --ay: 265; --ox: 35; --oy: 229; --d: 1.33s; }
body.ppm-cnx .ppm-cnx-h-main { --x: 59; --y: 992; --w: 35; --h: 38; --ax: 644; --ay: 511; --ox: 16; --oy: 26; --d: 0.19s; }
body.ppm-cnx .ppm-cnx-h-mere-enfant { --x: 1002; --y: 995; --w: 226; --h: 256; --ax: 90; --ay: 4; --ox: 113; --oy: 256; --d: 0.73s; }
body.ppm-cnx .ppm-cnx-h-fleur-1 { --x: 2198; --y: 999; --w: 71; --h: 55; --ax: 278; --ay: 511; --ox: 35.5; --oy: 55; --d: 1.31s; }
body.ppm-cnx .ppm-cnx-h-fleur-2 { --x: 1397; --y: 1200; --w: 71; --h: 55; --ax: 353; --ay: 511; --ox: 35.5; --oy: 55; --d: 0.89s; }
/* habitants : fin */

/* le réveil : chacun se tasse, saute et se réceptionne, à son tour de gauche à droite (--d) */
body.ppm-cnx :is(.ppm-cnx-h-ado-1, .ppm-cnx-h-ado-2, .ppm-cnx-h-famille, .ppm-cnx-h-costume, .ppm-cnx-h-bavarde-1, .ppm-cnx-h-bavarde-2,
  .ppm-cnx-h-coureuse, .ppm-cnx-h-coureur, .ppm-cnx-h-chien, .ppm-cnx-h-joueur, .ppm-cnx-h-mere-enfant) { animation: ppm-cnx-reveil .95s var(--d) both; }
/* puis chacun sa boucle, une fois réveillé */
body.ppm-cnx .ppm-cnx-h-coureuse { animation: ppm-cnx-reveil .95s var(--d) both, ppm-cnx-allure 6.4s cubic-bezier(.45, 0, .55, 1) calc(var(--d) + .95s) infinite; }
body.ppm-cnx .ppm-cnx-h-coureuse > i { animation: ppm-cnx-foulee .66s calc(var(--d) + .95s) infinite; }
body.ppm-cnx .ppm-cnx-h-coureur { animation: ppm-cnx-reveil .95s var(--d) both, ppm-cnx-allure 7.1s cubic-bezier(.45, 0, .55, 1) calc(var(--d) + 1.6s) infinite; }
body.ppm-cnx .ppm-cnx-h-coureur > i { animation: ppm-cnx-foulee .7s calc(var(--d) + 1.25s) infinite; }
body.ppm-cnx .ppm-cnx-h-chien { animation: ppm-cnx-reveil .95s var(--d) both, ppm-cnx-chien-va 3.4s cubic-bezier(.45, 0, .55, 1) calc(var(--d) + .95s) infinite; }
body.ppm-cnx .ppm-cnx-h-chien > i { animation: ppm-cnx-galop .48s calc(var(--d) + .95s) infinite; }
body.ppm-cnx .ppm-cnx-h-bulle { animation: ppm-cnx-eclot .8s 1.25s both; }
body.ppm-cnx .ppm-cnx-h-bulle > i { animation: ppm-cnx-boing 6.5s 2.6s infinite; }
body.ppm-cnx .ppm-cnx-h-bavarde-1 > i { animation: ppm-cnx-parle-1 7.2s cubic-bezier(.45, 0, .55, 1) 2.1s infinite; }
body.ppm-cnx .ppm-cnx-h-bavarde-2 > i { animation: ppm-cnx-parle-2 7.2s cubic-bezier(.45, 0, .55, 1) 2.1s infinite; }
body.ppm-cnx .ppm-cnx-h-famille > i { animation: ppm-cnx-marche 1.1s calc(var(--d) + .95s) infinite; }
body.ppm-cnx .ppm-cnx-h-mere-enfant > i { animation: ppm-cnx-marche 1.2s calc(var(--d) + .95s) infinite; }
body.ppm-cnx .ppm-cnx-h-costume { animation: ppm-cnx-reveil .95s var(--d) both, ppm-cnx-regard 9s cubic-bezier(.45, 0, .55, 1) calc(var(--d) + 2s) infinite; }
body.ppm-cnx .ppm-cnx-h-costume > i { animation: ppm-cnx-souffle 3.4s cubic-bezier(.45, 0, .55, 1) calc(var(--d) + .95s) infinite; }
body.ppm-cnx .ppm-cnx-h-ado-1 > i { animation: ppm-cnx-rire 5.6s cubic-bezier(.45, 0, .55, 1) calc(var(--d) + .95s) infinite; }
body.ppm-cnx .ppm-cnx-h-ado-2 > i { animation: ppm-cnx-balance 4.6s cubic-bezier(.45, 0, .55, 1) calc(var(--d) + .95s) infinite; }
body.ppm-cnx .ppm-cnx-h-main > i { animation: ppm-cnx-coucou 5.5s cubic-bezier(.45, 0, .55, 1) .4s infinite; }
body.ppm-cnx .ppm-cnx-h-bras > i { animation: ppm-cnx-lancer 5s 1.2s infinite; }
body.ppm-cnx .ppm-cnx-h-joueur > i { animation: ppm-cnx-bravo 5s 1.2s infinite; }
body.ppm-cnx .ppm-cnx-h-papillon { animation: ppm-cnx-vol 12s cubic-bezier(.45, 0, .55, 1) .6s infinite; }
body.ppm-cnx .ppm-cnx-h-papillon > i { animation: ppm-cnx-ailes .3s cubic-bezier(.45, 0, .55, 1) infinite; }
body.ppm-cnx .ppm-cnx-h-nuage { animation: ppm-cnx-derive 34s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
/* le coup de vent passe de gauche à droite : fleurs du bas, arbre, fleurs de droite */
body.ppm-cnx .ppm-cnx-h-fleur-2 > i { --a: 7deg; animation: ppm-cnx-rafale 7.5s cubic-bezier(.45, 0, .55, 1) 1.4s infinite; }
body.ppm-cnx .ppm-cnx-h-arbre > i { --a: 1.3deg; animation: ppm-cnx-rafale 7.5s cubic-bezier(.45, 0, .55, 1) 1.75s infinite; }
body.ppm-cnx .ppm-cnx-h-fleur-1 > i { --a: 7deg; animation: ppm-cnx-rafale 7.5s cubic-bezier(.45, 0, .55, 1) 2s infinite; }
/* au calme (bouton) : tout le monde reprend sa place d'origine */
body.ppm-cnx.ppm-cnx-au-calme .ppm-cnx-h, body.ppm-cnx.ppm-cnx-au-calme .ppm-cnx-h > i { animation: none; }

/* courbes : « monte » ralentit en haut, « tombe » accélère vers le sol, les autres partent et arrivent en douceur */
@keyframes ppm-cnx-reveil {
  0%   { translate: 0 0; scale: 1 1; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  20%  { translate: 0 0; scale: 1.07 .9; animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
  48%  { translate: 0 calc(-18 * var(--k)); scale: .95 1.07; animation-timing-function: cubic-bezier(.6, 0, .85, .4); }
  72%  { translate: 0 0; scale: 1.08 .9; animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
  86%  { translate: 0 0; scale: .98 1.03; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  100% { translate: 0 0; scale: 1 1; }
}
@keyframes ppm-cnx-foulee {
  0%   { translate: 0 0; scale: 1 1; rotate: 0deg; animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
  42%  { translate: 0 calc(-10 * var(--k)); scale: .985 1.03; rotate: -1.5deg; animation-timing-function: cubic-bezier(.6, 0, .85, .4); }
  80%  { translate: 0 0; scale: 1.035 .95; rotate: .5deg; animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
  100% { translate: 0 0; scale: 1 1; rotate: 0deg; }
}
/* les coureurs courent vers la gauche, en descendant le chemin : ils prennent un peu d'avance puis la reperdent */
@keyframes ppm-cnx-allure { 0%, 100% { translate: 0 0; } 50% { translate: calc(-16 * var(--k)) calc(8 * var(--k)); } }
@keyframes ppm-cnx-galop {
  0%   { translate: 0 0; rotate: 0deg; scale: 1 1; animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
  38%  { translate: 0 calc(-12 * var(--k)); rotate: 7deg; scale: .97 1.04; animation-timing-function: cubic-bezier(.6, 0, .85, .4); }
  72%  { translate: 0 0; rotate: -4deg; scale: 1.05 .93; animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
  100% { translate: 0 0; rotate: 0deg; scale: 1 1; }
}
@keyframes ppm-cnx-chien-va { 0%, 100% { translate: 0 0; } 45% { translate: calc(-24 * var(--k)) calc(11 * var(--k)); } 70% { translate: calc(-9 * var(--k)) calc(4 * var(--k)); } }
@keyframes ppm-cnx-eclot {
  0%   { scale: 0; opacity: 0; animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
  45%  { scale: 1.13; opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  68%  { scale: .95; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  85%  { scale: 1.025; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  100% { scale: 1; opacity: 1; }
}
@keyframes ppm-cnx-boing {
  0%, 76%, 100% { scale: 1; rotate: 0deg; animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
  81% { scale: 1.08; rotate: -2.5deg; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  86% { scale: .97; rotate: 1.5deg; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  91% { scale: 1.015; rotate: -.5deg; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
}
/* la conversation : l'une parle (penchée vers l'autre, petits hochements), puis l'autre lui répond */
@keyframes ppm-cnx-parle-1 {
  0%, 46%, 100% { rotate: 0deg; translate: 0 0; }
  7%  { rotate: 1.8deg; translate: 0 calc(-3 * var(--k)); }
  13% { rotate: 1.3deg; translate: 0 0; }
  19% { rotate: 2deg; translate: 0 calc(-3 * var(--k)); }
  25% { rotate: 1.3deg; translate: 0 0; }
  31% { rotate: 1.8deg; translate: 0 calc(-2 * var(--k)); }
  38% { rotate: 1deg; translate: 0 0; }
}
@keyframes ppm-cnx-parle-2 {
  0%, 50%, 96%, 100% { rotate: 0deg; translate: 0 0; }
  57% { rotate: -1.8deg; translate: 0 calc(-3 * var(--k)); }
  63% { rotate: -1.3deg; translate: 0 0; }
  69% { rotate: -2deg; translate: 0 calc(-3 * var(--k)); }
  75% { rotate: -1.3deg; translate: 0 0; }
  81% { rotate: -1.8deg; translate: 0 calc(-2 * var(--k)); }
  88% { rotate: -1deg; translate: 0 0; }
}
/* la marche : deux pas par boucle, le corps monte sur chaque jambe et se balance un peu */
@keyframes ppm-cnx-marche {
  0%, 50%, 100% { translate: 0 0; rotate: 0deg; animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
  25% { translate: 0 calc(-5 * var(--k)); rotate: .8deg; animation-timing-function: cubic-bezier(.6, 0, .85, .4); }
  75% { translate: 0 calc(-5 * var(--k)); rotate: -.8deg; animation-timing-function: cubic-bezier(.6, 0, .85, .4); }
}
@keyframes ppm-cnx-souffle { 0%, 100% { scale: 1 1; } 50% { scale: 1.006 1.018; } }
@keyframes ppm-cnx-regard { 0%, 30%, 100% { rotate: 0deg; } 38%, 62% { rotate: -2deg; } 70% { rotate: .4deg; } }
@keyframes ppm-cnx-rire {
  0%, 55%, 100% { translate: 0 0; scale: 1 1; }
  59% { translate: 0 calc(-4 * var(--k)); scale: .99 1.02; }
  63% { translate: 0 0; scale: 1.01 .99; }
  67% { translate: 0 calc(-4 * var(--k)); scale: .99 1.02; }
  71% { translate: 0 0; scale: 1.01 .99; }
  75% { translate: 0 calc(-3 * var(--k)); scale: .99 1.015; }
  80% { translate: 0 0; scale: 1 1; }
}
@keyframes ppm-cnx-balance { 0%, 100% { rotate: 0deg; } 30% { rotate: 1.6deg; } 70% { rotate: -1.1deg; } }
@keyframes ppm-cnx-coucou {
  0%, 52%, 100% { rotate: 0deg; }
  57% { rotate: -26deg; }
  63% { rotate: 16deg; }
  69% { rotate: -22deg; }
  75% { rotate: 14deg; }
  81% { rotate: -8deg; }
  87% { rotate: 0deg; }
}
/* la pétanque : il prend son élan et lance, son partenaire saute de joie au même moment */
@keyframes ppm-cnx-lancer {
  0%, 38%, 100% { rotate: 0deg; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  56% { rotate: -18deg; animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  62% { rotate: 14deg; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  70% { rotate: -5deg; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  78% { rotate: 0deg; }
}
@keyframes ppm-cnx-bravo {
  0%, 64%, 100% { translate: 0 0; scale: 1 1; animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
  70% { translate: 0 calc(-12 * var(--k)); scale: .96 1.05; animation-timing-function: cubic-bezier(.6, 0, .85, .4); }
  76% { translate: 0 0; scale: 1.05 .94; animation-timing-function: cubic-bezier(.2, .7, .35, 1); }
  82% { translate: 0 0; scale: 1 1; }
}
@keyframes ppm-cnx-vol {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  18% { translate: calc(30 * var(--k)) calc(-16 * var(--k)); rotate: 10deg; }
  38% { translate: calc(62 * var(--k)) calc(4 * var(--k)); rotate: -6deg; }
  58% { translate: calc(36 * var(--k)) calc(22 * var(--k)); rotate: -14deg; }
  80% { translate: calc(-14 * var(--k)) calc(10 * var(--k)); rotate: 8deg; }
}
@keyframes ppm-cnx-ailes { 0%, 100% { scale: 1 1; } 50% { scale: .3 1; } }
@keyframes ppm-cnx-derive { from { translate: 0 0; } to { translate: calc(70 * var(--k)) 0; } }
@keyframes ppm-cnx-rafale {
  0%, 46%, 100% { rotate: 0deg; }
  8%  { rotate: var(--a); }
  17% { rotate: calc(var(--a) * -.55); }
  26% { rotate: calc(var(--a) * .3); }
  35% { rotate: calc(var(--a) * -.12); }
}

/* le bouton qui arrête l'animation (et la relance) : deux barres « pause », un triangle « lecture » une fois arrêtée */
body.ppm-cnx .ppm-cnx-calme {
  position: fixed;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 18px -10px rgba(38, 38, 94, .6), 0 0 0 1px rgba(38, 38, 94, .08);
  color: var(--marine);
  cursor: pointer;
}
body.ppm-cnx .ppm-cnx-calme::before { content: ""; width: 12px; height: 14px; background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px); }
body.ppm-cnx .ppm-cnx-calme[aria-pressed="true"]::before { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; background: none; }
body.ppm-cnx .ppm-cnx-calme:hover { background: #fff; color: var(--nuit); }
body.ppm-cnx .ppm-cnx-calme:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--marine); outline: 2px solid transparent; }

/* ---------- les deux duos de parrainage : chacun arrive de son côté, le cœur apparaît et bat, puis tout se calme
   (moins de 5 secondes de mouvement, pour ne pas gêner la saisie ; aucun mouvement si l'ordinateur en demande moins) */
body.ppm-cnx .ppm-cnx-scene { position: relative; z-index: 2; flex: none; width: 300px; height: 120px; pointer-events: none; }
body.ppm-cnx .ppm-cnx-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
body.ppm-cnx .ppm-cnx-duo { position: absolute; bottom: 6px; width: 104px; height: 116px; background: center bottom / contain no-repeat; transform-origin: 50% 100%; }
body.ppm-cnx .ppm-cnx-duo-1 { left: 26px; background-image: url("duo-1.png"); animation: ppm-cnx-vient-g 1.1s ease-out both, ppm-cnx-pas 1.6s ease-in-out 1.1s 2; }
body.ppm-cnx .ppm-cnx-duo-2 { right: 26px; background-image: url("duo-2.png"); animation: ppm-cnx-vient-d 1.1s ease-out both, ppm-cnx-pas 1.6s ease-in-out 1.5s 2; }
body.ppm-cnx .ppm-cnx-scene .coeur, body.ppm-cnx .ppm-cnx-scene .halo { transform-origin: 93px 17px; animation: ppm-cnx-apparait .45s ease-out 1s both, ppm-cnx-bat 1.6s ease-in-out 1.45s 2; }
body.ppm-cnx .ppm-cnx-scene .halo { opacity: .5; animation-name: ppm-cnx-apparait, ppm-cnx-halo; }
body.ppm-cnx .ppm-cnx-scene .eclat { opacity: .8; transform-box: fill-box; transform-origin: center; animation: ppm-cnx-scintille 1.8s ease-in-out 2; }
body.ppm-cnx .ppm-cnx-scene .e2 { animation-delay: .7s; }
body.ppm-cnx .ppm-cnx-scene .e3 { animation-delay: 1.3s; }
@keyframes ppm-cnx-pas { 0%, 50%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-2px) rotate(-1.2deg); } 75% { transform: translateY(-2px) rotate(1.2deg); } }
@keyframes ppm-cnx-vient-g { from { opacity: 0; transform: translateX(-48px); } 35% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ppm-cnx-vient-d { from { opacity: 0; transform: translateX(48px); } 35% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes ppm-cnx-apparait { from { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.25); } to { opacity: 1; transform: scale(1); } }
@keyframes ppm-cnx-bat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1); } }
@keyframes ppm-cnx-halo { 0%, 100% { transform: scale(.7); opacity: .4; } 15% { transform: scale(1.25); opacity: 1; } 45% { transform: scale(1); opacity: .5; } }
@keyframes ppm-cnx-scintille { 0%, 100% { opacity: .8; transform: scale(1) rotate(0deg); } 50% { opacity: .25; transform: scale(.65) rotate(20deg); } }

/* ---------- le cadre : logo, accueil, formulaire de WordPress */
body.ppm-cnx #login { position: relative; z-index: 1; width: 100%; margin: 0; padding: 0; }
body.ppm-cnx #login h1 { margin: 0 0 16px; }
body.ppm-cnx #login h1 a {
  width: 236px;
  height: 74px;
  margin: 0 auto;
  background: url("logo-ppm-640.png") center / contain no-repeat;
  border-radius: 6px;
}
body.ppm-cnx #login h1 a:focus { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--marine); outline: 2px solid transparent; }
body.ppm-cnx .ppm-cnx-accueil { margin: 0 0 22px; text-align: center; }
body.ppm-cnx .ppm-cnx-accueil h2 { margin: 0 0 6px; color: var(--nuit); font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
body.ppm-cnx .ppm-cnx-accueil p { margin: 0 auto; max-width: 30em; color: var(--doux); font-size: 14.5px; line-height: 1.5; }

body.ppm-cnx #login form { margin: 0; padding: 0; overflow: visible; border: 0; background: none; box-shadow: none; font-weight: 400; }
body.ppm-cnx #login form p, body.ppm-cnx #login .user-pass-wrap { margin: 0 0 16px; }
body.ppm-cnx #login label { display: inline-block; margin: 0 0 6px; color: var(--texte); font-size: 14px; font-weight: 650; line-height: 1.4; }
body.ppm-cnx #login form .input,
body.ppm-cnx #login input[type="text"],
body.ppm-cnx #login input[type="email"],
body.ppm-cnx #login input[type="password"] {
  width: 100%;
  min-height: 50px;
  max-height: none;
  margin: 0;
  padding: 0 16px;
  border: 1.5px solid var(--bord);
  border-radius: 13px;
  background: var(--champ);
  box-shadow: none;
  color: var(--texte);
  font: 16px/1.3 var(--police);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
body.ppm-cnx #login form .input:hover { border-color: #A3B0C6; }
body.ppm-cnx #login form .input:focus {
  border-color: var(--turquoise-fonce);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(6, 162, 196, .22);
  outline: 2px solid transparent;
}
body.ppm-cnx #login .wp-pwd { position: relative; }
body.ppm-cnx #login .wp-pwd .input { padding-right: 54px; }
body.ppm-cnx #login .button.wp-hide-pw {
  display: flex;
  align-items: center;
  justify-content: center;
  top: 5px;
  right: 5px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--marine);
}
body.ppm-cnx #login .button.wp-hide-pw:hover { background: #ECEFFA; color: var(--nuit); }
body.ppm-cnx #login .button.wp-hide-pw:focus { box-shadow: 0 0 0 3px rgba(63, 62, 138, .4); outline: 2px solid transparent; }
body.ppm-cnx #login .button.wp-hide-pw .dashicons { top: 0; width: 20px; height: 20px; font-size: 20px; }

body.ppm-cnx #login .forgetmenot { display: flex; align-items: center; gap: 10px; float: none; margin: 2px 0 20px; }
body.ppm-cnx #login .forgetmenot label { margin: 0; font-weight: 500; cursor: pointer; }
body.ppm-cnx #login input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #8C98B2;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}
body.ppm-cnx #login input[type="checkbox"]:checked {
  border-color: var(--turquoise-fonce);
  background: var(--turquoise-fonce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l3 3 6-6.6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
body.ppm-cnx #login input[type="checkbox"]:checked::before { content: none; }
body.ppm-cnx #login input[type="checkbox"]:focus { box-shadow: 0 0 0 3px rgba(6, 162, 196, .35); outline: 2px solid transparent; }

/* bouton principal : turquoise foncé (texte blanc lisible : contraste 4,9 contre 3,0 pour le turquoise clair d'aujourd'hui) */
body.ppm-cnx #login p.submit { margin: 0; padding: 0; }
body.ppm-cnx #login .button-primary {
  display: block;
  float: none;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--turquoise-fonce);
  box-shadow: 0 12px 24px -14px rgba(6, 122, 151, .95);
  color: #fff;
  font: 700 17px/1.2 var(--police);
  letter-spacing: .01em;
  text-shadow: none;
  cursor: pointer;
  transition: background-color .15s, transform .1s;
}
body.ppm-cnx #login .button-primary:hover { background: var(--turquoise-nuit); }
body.ppm-cnx #login .button-primary:active { transform: translateY(1px); }
body.ppm-cnx #login .button-primary:focus { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--marine); outline: 2px solid transparent; }

/* en attente après un clic (script de page.php) : le texte devient « Connexion », quatre points aux couleurs PPM sautent
   à tour de rôle, un reflet passe sur le bouton, et les duos sautent de joie avec le cœur qui bat, jusqu'à la page suivante */
body.ppm-cnx #login p.submit { position: relative; }
body.ppm-cnx #login .ppm-cnx-envoi .button-primary,
body.ppm-cnx #login .ppm-cnx-envoi .button-primary:hover {
  background-color: var(--turquoise-nuit);
  background-image: linear-gradient(110deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .24) 50%, rgba(255, 255, 255, 0) 65%);
  background-repeat: no-repeat;
  background-size: 250% 100%;
  color: transparent;
  cursor: progress;
  animation: ppm-cnx-reflet 1.4s linear infinite;
}
body.ppm-cnx #login .ppm-cnx-attente { position: absolute; display: flex; align-items: center; justify-content: center; gap: 5px; color: #fff; font: 700 17px/1.2 var(--police); letter-spacing: .01em; pointer-events: none; }
body.ppm-cnx #login .ppm-cnx-attente b { margin-right: 7px; font-weight: 700; }
body.ppm-cnx #login .ppm-cnx-attente i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, #fff); animation: ppm-cnx-point 1s cubic-bezier(.45, 0, .55, 1) infinite; }
body.ppm-cnx #login .ppm-cnx-attente i:nth-of-type(1) { --c: var(--menthe); }
body.ppm-cnx #login .ppm-cnx-attente i:nth-of-type(2) { --c: var(--jaune); animation-delay: .12s; }
body.ppm-cnx #login .ppm-cnx-attente i:nth-of-type(3) { --c: var(--corail); animation-delay: .24s; }
body.ppm-cnx #login .ppm-cnx-attente i:nth-of-type(4) { --c: #fff; animation-delay: .36s; }
body.ppm-cnx.ppm-cnx-envoi .ppm-cnx-scene .coeur { animation: ppm-cnx-bat .9s ease-in-out infinite; }
body.ppm-cnx.ppm-cnx-envoi .ppm-cnx-scene .halo { animation: ppm-cnx-halo .9s ease-in-out infinite; }
body.ppm-cnx.ppm-cnx-envoi .ppm-cnx-duo-1 { animation: ppm-cnx-joie .9s cubic-bezier(.45, 0, .55, 1) infinite; }
body.ppm-cnx.ppm-cnx-envoi .ppm-cnx-duo-2 { animation: ppm-cnx-joie .9s cubic-bezier(.45, 0, .55, 1) .45s infinite; }
@keyframes ppm-cnx-point { 0%, 60%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-7px) scale(1.15); } }
@keyframes ppm-cnx-reflet { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes ppm-cnx-joie { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(0) scale(1.04, .95); } 45% { transform: translateY(-9px) scale(.97, 1.04); } 75% { transform: translateY(0) scale(1.03, .97); } }

body.ppm-cnx #login #nav { margin: 18px 0 0; padding: 0; color: var(--doux); font-size: 14.5px; text-align: center; }
body.ppm-cnx #login #nav a, body.ppm-cnx #login .privacy-policy-page-link a {
  color: var(--marine);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(63, 62, 138, .35);
  text-underline-offset: 3px;
}
body.ppm-cnx #login #nav a:hover { color: var(--nuit); text-decoration-color: currentColor; }
body.ppm-cnx #login #nav a:focus { border-radius: 4px; box-shadow: 0 0 0 3px rgba(63, 62, 138, .35); outline: 2px solid transparent; }
body.ppm-cnx #login .privacy-policy-page-link { margin: 14px 0 0; font-size: 13px; text-align: center; }

/* ---------- messages : information (turquoise), erreur (corail), réussite (menthe) */
body.ppm-cnx #login .message,
body.ppm-cnx #login .notice,
body.ppm-cnx #login .success,
body.ppm-cnx #login #login_error {
  position: relative;
  margin: 0 0 18px;
  padding: 12px 14px 12px 46px;
  border: 0;
  border-radius: 13px;
  background: #E7F5F9;
  box-shadow: none;
  color: var(--texte);
  font-size: 14px;
  line-height: 1.5;
}
body.ppm-cnx #login .notice p, body.ppm-cnx #login .message p { margin: 0; padding: 0; }
body.ppm-cnx #login .message::before,
body.ppm-cnx #login .notice::before,
body.ppm-cnx #login .success::before,
body.ppm-cnx #login #login_error::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 14px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--turquoise-fonce) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='5.6' r='1.6' fill='white'/%3E%3Crect x='8.6' y='8.6' width='2.8' height='7.4' rx='1.4' fill='white'/%3E%3C/svg%3E") center / 15px no-repeat;
}
body.ppm-cnx #login #login_error, body.ppm-cnx #login .notice-error { background: #FDECEA; color: #7D1F17; }
body.ppm-cnx #login #login_error::before, body.ppm-cnx #login .notice-error::before {
  background: var(--corail) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='8.6' y='4' width='2.8' height='8' rx='1.4' fill='white'/%3E%3Ccircle cx='10' cy='14.8' r='1.6' fill='white'/%3E%3C/svg%3E") center / 15px no-repeat;
}
body.ppm-cnx #login .success, body.ppm-cnx #login .notice-success { background: #E3F4EE; color: #14473A; }
body.ppm-cnx #login .success::before, body.ppm-cnx #login .notice-success::before {
  background: #2E9E80 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
body.ppm-cnx #login #login_error a, body.ppm-cnx #login .message a { color: inherit; font-weight: 700; }

/* ---------- nouveau mot de passe (lien reçu par e-mail) */
body.ppm-cnx #login .user-pass1-wrap p { margin: 0; }
body.ppm-cnx #login #pass-strength-result {
  width: 100%;
  margin: 10px 0 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: #EEF1F6;
  color: var(--texte);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
body.ppm-cnx #login #pass-strength-result.short { background: #FDE3E0; color: #7D1F17; }
body.ppm-cnx #login #pass-strength-result.bad { background: #FDEBD5; color: #6E3800; }
body.ppm-cnx #login #pass-strength-result.good { background: #FFF2BF; color: #4F3D00; }
body.ppm-cnx #login #pass-strength-result.strong { background: #DDF3EA; color: #14473A; }
body.ppm-cnx #login .pw-weak { margin: 10px 0 0; }
body.ppm-cnx #login p.indicator-hint, body.ppm-cnx #login p.description { margin: 12px 0 18px; color: var(--doux); font-size: 13px; line-height: 1.5; }
body.ppm-cnx #login .reset-pass-submit { display: flex; flex-direction: column-reverse; gap: 10px; }
body.ppm-cnx #login .reset-pass-submit .button:not(.button-primary) {
  float: none;
  width: 100%;
  min-height: 46px;
  margin: 0;
  border: 1.5px solid var(--bord);
  border-radius: 13px;
  background: #fff;
  color: var(--marine);
  font: 650 15px/1.2 var(--police);
}
body.ppm-cnx #login .reset-pass-submit .button:not(.button-primary):hover { border-color: var(--marine); background: #F4F5FC; }
body.ppm-cnx #login .reset-pass-submit .button:not(.button-primary):focus { box-shadow: 0 0 0 3px rgba(63, 62, 138, .35); outline: 2px solid transparent; }

/* ---------- ligne sous le formulaire */
body.ppm-cnx .ppm-cnx-aide { position: relative; z-index: 1; margin: 0; color: var(--nuit); font-size: 13px; line-height: 1.4; text-align: center; }

/* ======================================================================
   Variante A « La ville » : l'illustration en plein écran, le cadre au centre, les duos debout sur le cadre
   ====================================================================== */
body.login.ppm-cnx-a { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px 24px; }
body.ppm-cnx-a .ppm-cnx-ville { --ppm-cnx-x: 50%; --ppm-cnx-y: 42%; position: fixed; inset: 0; z-index: 0; background-position: 50% 42%; }
body.ppm-cnx-a .ppm-cnx-ville::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 560px at 50% 52%, rgba(238, 250, 251, .82), rgba(238, 250, 251, .5) 55%, rgba(238, 250, 251, 0) 100%);
}
body.ppm-cnx-a .ppm-cnx-scene { margin: 0 0 -10px; }
/* un halo blanc derrière les duos : ils se détachent de l'illustration */
body.ppm-cnx-a .ppm-cnx-scene::before { content: ""; position: absolute; top: -18px; right: -44px; bottom: -4px; left: -44px; background: radial-gradient(closest-side, rgba(255, 255, 255, .96), rgba(255, 255, 255, .72) 58%, rgba(255, 255, 255, 0)); }
body.ppm-cnx-a .ppm-cnx-scene .sol { display: none; }
body.ppm-cnx-a #login {
  max-width: 412px;
  padding: 32px 34px 24px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 32px 70px -30px rgba(38, 38, 94, .6), 0 0 0 1px rgba(38, 38, 94, .07);
}
/* le chemin coloré sous les pieds des duos : turquoise, menthe, jaune, corail */
body.ppm-cnx-a #login::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 224px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--turquoise), var(--menthe) 34%, var(--jaune) 66%, var(--corail));
  transform: translateX(-50%);
}
body.ppm-cnx-a .ppm-cnx-aide { margin-top: 16px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 18px -10px rgba(38, 38, 94, .5); }

/* ======================================================================
   Variante B « Deux volets » : l'illustration à gauche comme une grande carte postale, le formulaire à droite sous le ciel
   ====================================================================== */
body.login.ppm-cnx-b {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 520px);
  grid-template-rows: minmax(24px, 1fr) auto auto auto minmax(24px, 1fr);
  background: radial-gradient(circle at 88% 7%, rgba(255, 222, 110, .75) 0, rgba(255, 222, 110, .3) 56px, rgba(255, 222, 110, 0) 140px),
              linear-gradient(180deg, #A9E4EF 0, #CFF0F4 150px, #EEF9FA 270px, #FFFFFF 400px);
}
/* nuages du ciel, comme le bandeau du tableau de bord */
body.ppm-cnx-b::before {
  content: "";
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
  height: 150px;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 34'%3E%3Cpath d='M14 32c-7 0-12-4.6-12-10.3S7 11.4 13.7 11.4c1.6-6.4 7.5-10.9 14.6-10.9 6.4 0 11.8 3.6 13.9 8.8 1.6-.6 3.3-.9 5.1-.9 6.3 0 11.6 4 12.9 9.4 1-.2 2-.3 3-.3 6.9 0 12.4 4.5 12.4 10.1S70.1 32 63.2 32z' fill='white' fill-opacity='.92'/%3E%3C/svg%3E") 16% 26px / 86px auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 34'%3E%3Cpath d='M14 32c-7 0-12-4.6-12-10.3S7 11.4 13.7 11.4c1.6-6.4 7.5-10.9 14.6-10.9 6.4 0 11.8 3.6 13.9 8.8 1.6-.6 3.3-.9 5.1-.9 6.3 0 11.6 4 12.9 9.4 1-.2 2-.3 3-.3 6.9 0 12.4 4.5 12.4 10.1S70.1 32 63.2 32z' fill='white' fill-opacity='.92'/%3E%3C/svg%3E") 62% 58px / 58px auto no-repeat;
}
body.ppm-cnx-b .ppm-cnx-ville { --ppm-cnx-x: 40%; --ppm-cnx-y: 50%; position: relative; grid-column: 1; grid-row: 1 / -1; min-height: calc(100vh - 28px); margin: 14px 0 14px 14px; border-radius: 28px; background-position: 40% 50%; box-shadow: inset 0 0 0 1px rgba(38, 38, 94, .06); }
body.ppm-cnx-b .ppm-cnx-calme { left: 30px; bottom: 30px; }
body.ppm-cnx-b .ppm-cnx-scene { grid-column: 2; grid-row: 2; justify-self: center; margin: 0 0 14px; }
body.ppm-cnx-b #login { grid-column: 2; grid-row: 3; justify-self: center; max-width: 392px; margin: 0 24px; }
body.ppm-cnx-b .ppm-cnx-aide { grid-column: 2; grid-row: 4; justify-self: center; margin: 22px 24px 0; color: var(--doux); }

/* ---------- écrans moyens et téléphones */
@media (max-width: 900px) {
  body.login.ppm-cnx-b { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); }
}
@media (max-width: 760px) {
  body.ppm-cnx .ppm-cnx-ville { background-image: url("ville-1400.jpg"); background-image: image-set(url("ville-1400.webp") type("image/webp"), url("ville-1400.jpg") type("image/jpeg")); }
  body.ppm-cnx .ppm-cnx-toile { background-image: url("ville-fond-1400.webp"); }
  body.ppm-cnx .ppm-cnx-calme, body.ppm-cnx-b .ppm-cnx-calme { position: absolute; top: 12px; right: 12px; bottom: auto; left: auto; }
  body.login.ppm-cnx-a { justify-content: flex-start; padding: 18px 16px 20px; }
  body.ppm-cnx-a .ppm-cnx-scene { zoom: .86; }
  body.ppm-cnx-a #login { padding: 28px 22px 22px; border-radius: 22px; }
  body.login.ppm-cnx-b { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; background: #fff; }
  body.ppm-cnx-b::before { display: none; }
  body.ppm-cnx-b .ppm-cnx-ville { --ppm-cnx-x: 30%; --ppm-cnx-y: 60%; grid-column: 1; grid-row: 1; height: 30vh; min-height: 190px; max-height: 250px; margin: 0; border-radius: 0; background-position: 30% 60%; }
  /* la ville se termine par une colline blanche : les duos en sortent pour venir au formulaire */
  body.ppm-cnx-b .ppm-cnx-ville::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 54px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 54' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C90 6 180 4 260 20 S360 44 400 30 V54 H0Z' fill='white'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  }
  body.ppm-cnx-b .ppm-cnx-scene { grid-column: 1; grid-row: 2; margin: -64px 0 6px; zoom: .86; }
  body.ppm-cnx-b #login { grid-column: 1; grid-row: 3; width: auto; max-width: 440px; margin: 0 16px; justify-self: stretch; }
  body.ppm-cnx-b .ppm-cnx-aide { grid-column: 1; grid-row: 4; margin: 22px 16px 24px; }
}
@media (max-width: 380px) {
  body.ppm-cnx .ppm-cnx-scene { zoom: .76; }
  body.ppm-cnx #login h1 a { width: 200px; height: 63px; }
  body.ppm-cnx .ppm-cnx-accueil h2 { font-size: 22px; }
}

/* ---------- reconnexion dans le back-office (fenêtre « session expirée ») : le formulaire seul */
body.login.ppm-cnx.interim-login { display: block; padding: 20px; background: #fff; }
body.ppm-cnx.interim-login .ppm-cnx-ville, body.ppm-cnx.interim-login .ppm-cnx-scene, body.ppm-cnx.interim-login .ppm-cnx-aide, body.ppm-cnx.interim-login .ppm-cnx-accueil p, body.ppm-cnx.interim-login .ppm-cnx-calme { display: none; }
body.ppm-cnx.interim-login #login { max-width: 360px; margin: 0 auto; padding: 0; box-shadow: none; }
body.ppm-cnx.interim-login #login::before { content: none; }

@media (prefers-reduced-motion: reduce) {
  body.ppm-cnx .ppm-cnx-duo, body.ppm-cnx .ppm-cnx-scene .coeur, body.ppm-cnx .ppm-cnx-scene .halo, body.ppm-cnx .ppm-cnx-scene .eclat { animation: none; }
  body.ppm-cnx #login .button-primary, body.ppm-cnx #login form .input { transition: none; }
  body.ppm-cnx.ppm-cnx-envoi .ppm-cnx-duo-1, body.ppm-cnx.ppm-cnx-envoi .ppm-cnx-duo-2, body.ppm-cnx.ppm-cnx-envoi .ppm-cnx-scene .coeur, body.ppm-cnx.ppm-cnx-envoi .ppm-cnx-scene .halo,
  body.ppm-cnx #login .ppm-cnx-attente i, body.ppm-cnx #login .ppm-cnx-envoi .button-primary { animation: none; }
}
@media (forced-colors: active) {
  body.ppm-cnx #login form .input, body.ppm-cnx #login .button-primary, body.ppm-cnx #login input[type="checkbox"] { border: 2px solid ButtonText; }
  body.ppm-cnx #login .ppm-cnx-attente { display: none; }   /* le bouton affiche alors lui-même « Connexion… » */
}
