/* ===========================================================
   Foody — zone compte (auth.html · reset.html · account.html)
   Complément de site/site.css : mêmes jetons, mêmes formes.
   ===========================================================

   POURQUOI UN FICHIER PLUTÔT QU'UN <style> PAR PAGE

   Les six pages vitrine portent chacune leur bloc <style> : elles ne
   partagent presque rien. Les trois pages compte, elles, partagent la
   carte, les champs, les messages et les modales. Trois copies auraient
   divergé à la première retouche — et la divergence se serait vue sur la
   page qu'on ouvre le moins souvent, donc celle qu'on ne teste jamais.

   Effet de bord voulu : aucune de ces trois pages n'a besoin de
   `style-src 'unsafe-inline'` pour SES styles à elle. Seule auth.html le
   garde dans sa CSP, et pour une raison qui ne dépend pas de nous — Google
   Identity Services injecte sa propre feuille pour habiller le bouton natif.
   Conséquence pratique : PAS d'attribut style="…" dans ces trois pages,
   même « juste pour un padding ». Une classe ici, toujours.
   (Poser une propriété depuis JS — el.style.display = 'none' — reste permis :
   c'est du CSSOM, la CSP ne le bloque pas.)
*/

/* L'attribut `hidden` doit l'emporter sur nos classes.
   hidden vaut display:none dans la feuille du navigateur — spécificité nulle.
   Une classe qui pose display:flex (.auth-google, .pwd-strength, .auth-tabs,
   .field, .check…) gagne contre elle et annule le masquage. Le symptôme est
   discret et faux : le bloc Google et la jauge de mot de passe s'affichent
   alors que le HTML les déclare masqués, et la vue « mot de passe oublié »
   garde ses onglets. Cette règle rétablit l'ordre attendu. */
[hidden]{display:none !important;}

:root{
  /* Signal d'alerte : absent de site.css, qui n'en avait pas l'usage sur des
     pages vitrine. Même valeur que la console support Foody (support.css),
     pour que « erreur » ait la même couleur d'un produit à l'autre. */
  --danger:#C9533A;
  --danger-d:#9B3D28;
  --danger-soft:#FBEAE6;
  --danger-line:rgba(201,83,58,.28);
}

/* ── En-tête du site, sans attribut style ────────────────────────────────
   index.html écrit ces deux réglages en style="…" sur le CTA et le bouton
   menu. Ici, deux classes : même rendu, CSP stricte préservée. */
/* .btn-nav et .btn-icon sont remontés dans site.css : ce sont des gabarits de
   l'en-tête, commun aux neuf pages, pas des styles de la console de compte. */

/* ── Coquille de page ──────────────────────────────────────────────────── */
.acc-page{position:relative;overflow:hidden;padding:56px 0 88px;}
.acc-bg{position:absolute;inset:0;z-index:0;pointer-events:none;}
.acc-bg .blob{
  position:absolute;border-radius:50%;opacity:.45;
  -webkit-mask:radial-gradient(circle,#000 26%,transparent 70%);
          mask:radial-gradient(circle,#000 26%,transparent 70%);
}
.acc-bg .b1{width:480px;height:480px;background:#CFEFD6;top:-220px;right:-140px;}
.acc-bg .b2{width:380px;height:380px;background:#FBE7D5;bottom:-200px;left:-140px;opacity:.4;}
.acc-inner{position:relative;z-index:1;}

/* ── Champs ────────────────────────────────────────────────────────────── */
.auth-form{display:flex;flex-direction:column;gap:16px;}
.field{display:flex;flex-direction:column;gap:7px;}
.label{font-size:13px;font-weight:700;color:var(--ink-2);letter-spacing:.2px;}
.input{
  font-family:var(--f-body);font-size:16px;color:var(--ink);
  background:var(--paper);border:1.5px solid var(--line);
  border-radius:var(--r-sm);padding:13px 15px;width:100%;
  transition:border-color .15s, box-shadow .15s, background .15s;
}
/* Le placeholder reste clair À CONDITION de ne jamais porter d'information
   seule : #deleteInput y répète la phrase à recopier, mais .phrase-box
   l'affiche déjà en toutes lettres au-dessus, et son <label> nomme le geste. */
.input::placeholder{color:var(--ink-muted);}
/* --green sur le blanc du champ focalisé ne donne que 2,27:1 et l'anneau
   --green-soft 1,10:1 : deux signaux sous le seuil de 3:1 exigé d'un
   indicateur de focus, pour le SEUL outline retiré du dépôt. On garde
   l'anneau doux comme habillage, et on rétablit un vrai contour visible —
   sous :focus-visible, donc absent au clic à la souris. */
.input:focus{outline:none;border-color:var(--green-d);background:#fff;box-shadow:0 0 0 4px var(--green-soft);}
.input:focus-visible{outline:2px solid var(--green-d);outline-offset:2px;}
.input:disabled{opacity:.55;cursor:not-allowed;}
.input.valid{border-color:var(--green);}
.input.invalid{border-color:var(--danger);}

/* ── Jauge de mot de passe ─────────────────────────────────────────────── */
/* Cinq barres pour cinq règles — et les cinq sont bloquantes, comme dans
   l'app (src/components/screens/AuthScreens.tsx). Une jauge qui compte cinq
   critères pendant que la soumission n'en exige que trois apprend au lecteur
   à ignorer la jauge. */
.pwd-strength{display:flex;flex-direction:column;gap:8px;margin-top:2px;}
.pwd-bars{display:flex;gap:5px;}
.pwd-bar{flex:1;height:5px;border-radius:999px;background:var(--paper-3);transition:background .18s;}
.pwd-meta{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;}
.pwd-lbl{font-size:12.5px;font-weight:700;}
.pwd-rules{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px;text-align:right;}
.pwd-rules li{display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:11.5px;color:var(--ink-muted);}
.pwd-rules li .dot{width:6px;height:6px;border-radius:999px;background:var(--paper-3);flex-shrink:0;}
.pwd-rules li.ok{color:var(--green-d);}
.pwd-rules li.ok .dot{background:var(--green);}

/* ── Case à cocher ─────────────────────────────────────────────────────── */
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--ink-2);line-height:1.5;cursor:pointer;}
.check input{margin-top:3px;width:17px;height:17px;accent-color:var(--green);flex-shrink:0;cursor:pointer;}
.check a{color:var(--green-d);font-weight:700;text-decoration:underline;text-underline-offset:2px;}

/* ── Messages ──────────────────────────────────────────────────────────── */
.msg{border-radius:var(--r-sm);padding:12px 14px;font-size:14.5px;line-height:1.5;}
.msg-error{background:var(--danger-soft);color:var(--danger-d);border:1px solid var(--danger-line);}
.msg-ok{background:var(--green-soft);color:var(--green-d);border:1px solid var(--green-line);}
.btn-full{width:100%;}

.noscript-msg{
  max-width:470px;margin:0 auto 26px;padding:14px 16px;border-radius:var(--r-sm);
  background:var(--danger-soft);color:var(--danger-d);border:1px solid var(--danger-line);
  font-size:14.5px;line-height:1.5;
}
.noscript-msg a{text-decoration:underline;font-weight:700;}

/* ── Écran de connexion (auth.html, reset.html) ────────────────────────────
   Le gabarit commun aux apps Lorderis : même ordre, mêmes mesures, mêmes
   textes partout — le compte est le même, l'écran qui le demande aussi.
   Foody n'y met que sa couleur (surtitre, onglet choisi, bouton principal,
   liens), son logo, son nom et son titre. Toutes les mesures viennent des
   jetons « Forme commune Lorderis » de site.css.

   Les champs, messages et liens de ces deux pages sont repris ici sous
   .auth-shell plutôt qu'en changeant .input ou .msg eux-mêmes : les modales
   d'account.html s'en servent aussi, et ne suivent pas ce gabarit. */

/* Barre haute : logo, nom, langue, thème — alignée sur la colonne. */
.auth-bar{background:var(--paper);}
.auth-bar-inner{
  max-width:calc(var(--auth-col-max) + 2 * var(--space-16));margin:0 auto;
  padding:0 var(--space-16);height:var(--bar-h);
  display:flex;align-items:center;justify-content:space-between;gap:var(--space-12);
}
.auth-brand{
  display:inline-flex;align-items:center;gap:var(--space-12);min-height:var(--touch-min);
  font-family:var(--f-display);font-weight:700;font-size:var(--fs-lg);color:var(--ink);
}
.auth-brand-mark{
  width:var(--tile-32);height:var(--tile-32);border-radius:var(--r-tile-32);flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--brand-mark);color:var(--on-brand);
}
.auth-brand:focus-visible{outline:var(--border-focus) solid var(--green-d);outline-offset:var(--space-4);border-radius:var(--r-tile-32);}
.auth-bar-tools{display:flex;align-items:center;gap:var(--space-8);}
/* Colonne : pleine largeur moins 16 de chaque côté, 420 au plus, fond uni. */
.auth-screen{background:var(--paper);padding:0 var(--space-16) var(--space-32);}
.auth-shell{max-width:var(--auth-col-max);margin:0 auto;padding-top:var(--space-24);}

.auth-head{margin-bottom:var(--space-24);}
.auth-eyebrow{
  display:block;font-family:var(--f-body);font-weight:700;font-size:var(--fs-xs);
  letter-spacing:var(--tracking-eyebrow);text-transform:uppercase;color:var(--green-d);
}
.auth-head h1{
  margin-top:var(--space-8);font-family:var(--f-display);font-weight:700;
  font-size:var(--fs-3xl);line-height:var(--lh-tight);letter-spacing:var(--tracking-display);
  color:var(--ink);
}
@media (max-width:389.98px){ .auth-head h1{font-size:var(--fs-2xl);} }
.auth-head .lorderis-note{
  margin:var(--space-12) 0 0;font-size:var(--fs-md);font-weight:400;
  line-height:var(--lh-body);color:var(--ink-2);
}

.auth-card{
  background:var(--card);border:var(--border-hairline) solid var(--line);
  border-radius:var(--r-md);box-shadow:var(--shadow-card);padding:var(--space-24);
  display:flex;flex-direction:column;
}

/* Onglets : segmenté pilule ; le choix se lit à la coche et à la graisse. */
.auth-tabs{
  display:flex;gap:var(--space-4);margin-bottom:var(--space-24);padding:var(--space-4);
  background:var(--paper-2);border:var(--border-hairline) solid var(--line);border-radius:var(--r-pill);
}
.auth-tab{
  flex:1;min-height:var(--touch-min);display:inline-flex;align-items:center;justify-content:center;gap:var(--space-8);
  font-family:var(--f-body);font-weight:600;font-size:var(--fs-md);
  border:none;background:transparent;color:var(--ink-muted);
  padding:0 var(--space-12);border-radius:var(--r-pill);cursor:pointer;
  transition:background .15s,color .15s;
}
.auth-tab:hover{color:var(--ink);}
.auth-tab.active{background:var(--green-btn);color:var(--on-brand);font-weight:700;}
.auth-tab-check{display:none;flex-shrink:0;}
.auth-tab.active .auth-tab-check{display:block;}
.auth-tab:focus-visible{outline:var(--border-focus) solid var(--green-d);outline-offset:var(--border-focus);}

.auth-title{
  margin-bottom:var(--space-24);font-family:var(--f-display);font-weight:700;
  font-size:var(--fs-xl);line-height:var(--lh-snug);color:var(--ink);
}

/* Champs */
.auth-shell .auth-form{gap:var(--space-16);}
.auth-shell .field{gap:var(--space-8);}
.auth-shell .label{
  font-weight:700;font-size:var(--fs-xs);letter-spacing:var(--tracking-eyebrow);
  text-transform:uppercase;color:var(--ink-muted);
}
.auth-shell .field .input{
  min-height:var(--touch-control);padding:0 var(--space-16);
  font-size:var(--fs-field);font-weight:400;color:var(--ink);
  background:var(--paper-2);border:var(--border-hairline) solid var(--line-2);border-radius:var(--r-sm);
}
/* Le liseré en --green-d porte l'indication (5:1 sur le fond du champ) ;
   l'anneau ne fait que l'accompagner. Le contour du navigateur, en plus,
   doublerait le cadre : il est retiré ici et nulle part ailleurs. */
.auth-shell .field .input:focus{
  background:var(--paper-2);border-color:var(--green-d);
  box-shadow:0 0 0 var(--border-focus) var(--focus-ring);
}
.auth-shell .field .input:focus-visible{outline:none;}
.auth-shell .field .input.invalid{border-color:var(--danger);}

/* Œil du mot de passe : un bouton de 44 posé dans le champ. */
.input-wrap{position:relative;}
.auth-shell .input-wrap .input{padding-right:calc(var(--touch-min) + var(--space-4));}
.pwd-eye{
  position:absolute;top:50%;right:var(--space-4);transform:translateY(-50%);
  width:var(--touch-min);height:var(--touch-min);padding:0;border:none;border-radius:var(--r-pill);
  display:inline-flex;align-items:center;justify-content:center;
  background:transparent;color:var(--ink-muted);cursor:pointer;
}
.pwd-eye:hover{color:var(--ink);background:var(--paper-3);}
.pwd-eye:focus-visible{outline:var(--border-focus) solid var(--green-d);outline-offset:calc(-1 * var(--border-focus));}
.pwd-eye .eye-hide,
.pwd-eye[aria-pressed="true"] .eye-show{display:none;}
.pwd-eye[aria-pressed="true"] .eye-hide{display:block;}

/* Liens : mot de passe oublié (à droite, sous le champ), retour. */
.link-btn{
  background:none;border:none;padding:0;cursor:pointer;min-height:var(--touch-min);
  font-family:var(--f-body);font-weight:600;font-size:var(--fs-sm);color:var(--green-d);
}
.link-btn:hover{text-decoration:underline;text-underline-offset:3px;}
.link-btn:focus-visible{outline:var(--border-focus) solid var(--green-d);outline-offset:var(--border-focus);}
.auth-forgot{align-self:flex-end;margin-top:calc(-1 * var(--space-8));margin-bottom:calc(-1 * var(--space-12));}
.auth-back{align-self:center;margin-top:var(--space-12);}

/* Boutons : pilules pleine largeur de 48. */
.auth-shell .btn{min-height:var(--touch-control);padding:0 var(--space-24);font-size:var(--fs-md);font-weight:700;}
.auth-shell .btn-primary{background:var(--green-btn);color:var(--on-brand);box-shadow:var(--shadow-key);}
.auth-shell .btn-primary:hover{background:var(--green-btn-hover);box-shadow:var(--shadow-key);}
.auth-shell .btn-ghost{border-width:var(--border-strong);border-color:var(--line-3);}
.auth-shell .btn-full{margin-top:0;}
.auth-shell .auth-submit{margin-top:var(--space-24);}
.auth-shell .lorderis-account-link{margin-top:var(--space-12);}

/* Séparateur « ou » et bouton Google (rendu par Google, 40 de haut : on lui
   réserve la hauteur d'un contrôle pour garder le rythme de la carte). */
.auth-google{display:flex;flex-direction:column;}
.sep{
  display:flex;align-items:center;gap:var(--space-12);margin:var(--space-20) 0;
  color:var(--ink-muted);font-size:var(--fs-sm);font-weight:500;
}
.sep::before,.sep::after{content:"";flex:1;height:var(--border-hairline);background:var(--line);}
.google-btn{display:flex;justify-content:center;align-items:center;min-height:var(--touch-control);}
/* Le bouton Google est un iframe dont le document n'annonce aucun color-scheme.
   Sous une page en color-scheme sombre, le navigateur peint alors un fond
   opaque (blanc) derrière lui : le cadre blanc autour du bouton. Accorder
   l'iframe à son document rend ce fond transparent. */
.google-btn iframe{color-scheme:light;}

/* Messages : dans la carte, au-dessus du bouton principal, une marque en
   tête pour ne pas porter l'erreur ou la réussite par la seule couleur. */
.auth-shell .msg{
  display:flex;align-items:flex-start;gap:var(--space-8);
  padding:var(--space-12) var(--space-16);border-radius:var(--r-sm);
  font-size:var(--fs-sm);font-weight:500;line-height:var(--lh-body);
}
.auth-shell .msg::before{
  flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;
  width:var(--icon-md);height:var(--icon-md);border-radius:var(--r-pill);
  border:var(--border-strong) solid currentColor;font-size:var(--fs-xs);font-weight:700;line-height:1;
}
/* La seconde forme masque la marque aux lecteurs d'écran (le rôle alert ou
   status dit déjà de quoi il s'agit) ; un navigateur qui ne la connaît pas
   garde la première. */
.auth-shell .msg-error::before{content:"!";content:"!" / "";}
.auth-shell .msg-ok::before{content:"✓";content:"✓" / "";}

/* Couche Lorderis : les phrases du compte commun suivent le thème de Foody
   (le pied de page LordEris, lui, reste sombre dans les deux thèmes). */
.lorderis-note{font-size:var(--fs-sm);line-height:var(--lh-body);color:var(--ink-muted);}
.lorderis-note a{color:var(--green-d);font-weight:700;text-decoration:underline;text-underline-offset:2px;}
.msg-ok a{color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px;}

.auth-shell .check{font-size:var(--fs-sm);}
.auth-shell .noscript-msg{max-width:none;margin:0 0 var(--space-24);}
/* Les états de reset.html s'espacent de 16 ; le bouton garde ses 24 au-dessus
   (16 + 8) et le titre « Lien invalide » n'ajoute rien à l'écart. */
.auth-shell .reset-state{gap:var(--space-16);}
.auth-shell .reset-state .auth-title{margin-bottom:0;}
.auth-shell .reset-state > .auth-submit{margin-top:var(--space-8);}
/* Le pied de page Lorderis reste en bas de la fenêtre quand la carte est
   courte (lien invalide, mot de passe oublié). */
.auth-body{min-height:100vh;display:flex;flex-direction:column;}
.auth-body .auth-screen{flex:1;}
.reset-text{margin:0;font-size:var(--fs-md);line-height:var(--lh-body);color:var(--ink-2);}

.auth-foot{margin:var(--space-24) 0 0;text-align:center;font-size:var(--fs-sm);color:var(--ink-muted);}
.auth-foot a{color:var(--green-d);font-weight:700;text-decoration:underline;text-underline-offset:2px;}

/* Le pied de page LordEris suit la colonne, sans le grand écart des pages vitrine. */
.auth-screen + .lorderis-footer{margin-top:0;}

/* ── Page compte ───────────────────────────────────────────────────────── */
.acc-shell{max-width:720px;margin:0 auto;}
/* Le message qui n'apparaît que quand la page n'a rien de sûr à dire : le
   SDK injoignable, en tête de page. Les marges vivent ici : account.html ne
   porte aucun style="…", c'est ce qui permet à sa CSP de se passer de
   'unsafe-inline'. */
.acc-msg{margin-bottom:26px;}
.acc-top{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:34px;}
.avatar{
  width:66px;height:66px;border-radius:20px;flex-shrink:0;
  background:linear-gradient(150deg,#7AD088,#4FB063);color:#fff;
  font-family:var(--f-display);font-weight:800;font-size:25px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 24px rgba(79,176,99,.32);
}
.acc-top .who{min-width:0;flex:1;}
.acc-top .who h1{font-size:clamp(26px,3.6vw,36px);}
.acc-top .who p{margin:6px 0 0;color:var(--ink-2);font-size:15.5px;word-break:break-word;}

.acc-card{
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);padding:8px 26px;margin-bottom:22px;
}
.section-title{
  font-family:var(--f-body);font-weight:700;font-size:12.5px;letter-spacing:1.6px;
  text-transform:uppercase;color:var(--ink-muted);margin:22px 0 4px;
}
.row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:17px 0;border-bottom:1px solid var(--line-soft);flex-wrap:wrap;
}
.row:last-child{border-bottom:none;}
.row .k{font-size:13px;font-weight:700;color:var(--ink-muted);letter-spacing:.4px;}
.row .v{font-size:16.5px;font-weight:600;color:var(--ink);word-break:break-word;}
.row .side{display:flex;align-items:center;gap:8px;}
.row-edit{display:none;align-items:center;gap:8px;flex:1;min-width:0;}

.icon-btn{
  width:38px;height:38px;border-radius:12px;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);background:var(--paper);color:var(--ink-2);
  cursor:pointer;transition:all .15s;
}
.icon-btn:hover{background:#fff;color:var(--ink);border-color:var(--ink-3);}
.icon-btn.ok{border-color:var(--green);color:var(--green-d);background:var(--green-soft);}

.tag{
  display:inline-flex;align-items:center;gap:7px;padding:6px 13px;border-radius:999px;
  font-size:12.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;
}
.tag.premium{background:var(--gold-soft);color:var(--gold-d);border:1px solid rgba(217,171,62,.35);}
.tag.free{background:var(--paper-2);color:var(--ink-2);border:1px solid var(--line);}

.plan-box{padding:22px 0 24px;}
.plan-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.plan-name{font-family:var(--f-display);font-weight:800;font-size:26px;letter-spacing:-.02em;}
.plan-name.premium{color:var(--gold-d);}
.plan-sub{margin:12px 0 0;color:var(--ink-2);font-size:15.5px;line-height:1.6;max-width:56ch;}
/* Le statut illisible, dans la carte : les marges vivent ici, account.html ne
   portant aucun style="…" (sa CSP refuse 'unsafe-inline' en style-src). */
.plan-msg{margin:0 0 22px;}
/* Bloc d'attente du statut : il n'existe que pendant le chargement, et
   seulement avec JavaScript (data-theme-choice, posé par theme-init.js) —
   sans script, rien ne viendrait le remplacer. */
.plan-wait{display:none;}
:root[data-theme-choice] .acc-shell[aria-busy="true"] .plan-wait{display:block;}
.sk.plan-sk-name{width:120px;height:26px;}
.sk.plan-sk-line{width:min(340px,90%);margin-top:14px;}

/* ── Zone critique ─────────────────────────────────────────────────────── */
.danger-zone{
  border:1px solid var(--danger-line);background:var(--danger-soft);
  border-radius:var(--r-md);padding:26px;
}
.danger-zone h2{font-size:20px;color:var(--danger-d);}
.danger-zone p{margin:12px 0 0;color:#7E4234;font-size:15px;line-height:1.6;max-width:60ch;}
.btn-danger{background:var(--danger);color:#fff;margin-top:20px;}
.btn-danger:hover{background:var(--danger-d);transform:translateY(-2px);}

/* ── Modales ───────────────────────────────────────────────────────────── */
.modal{
  position:fixed;inset:0;z-index:200;padding:20px;
  background:rgba(46,42,36,.55);backdrop-filter:blur(3px);
  display:none;align-items:center;justify-content:center;
}
.modal-box{
  background:var(--card);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);
  padding:30px;width:100%;max-width:470px;max-height:90vh;overflow-y:auto;
}
.modal-box h2{font-size:23px;}
.modal-box p{color:var(--ink-2);font-size:15px;line-height:1.6;margin:12px 0 0;}
.modal-form{display:flex;flex-direction:column;gap:14px;margin-top:20px;}
/* .input.invalid ne dit la non-correspondance que par une bordure rouge —
   une information portée par la seule couleur. Ce texte la double. */
.field-hint{margin:0;font-size:12.5px;font-weight:600;color:var(--danger-d);}
.modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:22px;}
.phrase-box{
  margin-top:16px;padding:13px 16px;border-radius:var(--r-sm);
  background:var(--paper-2);border:1px dashed var(--line);
  font-family:ui-monospace,'SF Mono',Menlo,monospace;font-weight:700;
  letter-spacing:2px;text-align:center;color:var(--ink);
}
.current-mail{font-size:14px;color:var(--ink-muted);word-break:break-word;}

/* Le bouton de suppression n'est armé que si la phrase est recopiée à
   l'identique. La classe .active reste le verrou logique : confirmDelete()
   sort si elle manque, même déclenché par la touche Entrée.
   Le verrou VISUEL, lui, ne peut plus être pointer-events:none — il ne
   concerne que le pointeur. Au clavier le bouton restait dans l'ordre de
   tabulation, annoncé « Supprime définitivement, bouton » sans réserve, et
   Entrée y déclenchait un clic que confirmDelete() rejetait sans un mot :
   la personne concluait à un bug, jamais à une phrase mal recopiée.
   account.js pose donc `disabled`, qui sort du parcours clavier ET s'annonce
   « indisponible ». (Un contrôle désactivé est hors du champ de WCAG 1.4.3 :
   l'opacité .45 ne pose plus de question de contraste.) */
#btnConfirmDelete:disabled{opacity:.45;cursor:not-allowed;}

/* ── Pied de page allégé ───────────────────────────────────────────────
   Les pages compte ne portent pas les quatre colonnes du site : on n'y
   vient pas pour explorer, on y vient pour faire une chose et repartir.
   .footer-bottom de site.css suppose une grille au-dessus (marge + filet) ;
   ces deux classes la font tenir seule. */
.site-footer.slim{padding:38px 0 34px;}
.site-footer.slim .footer-bottom{margin-top:0;padding-top:0;border-top:none;}
.footer-links a{margin-left:16px;}
.footer-links a:first-child{margin-left:0;}

/* ── Réinitialisation ──────────────────────────────────────────────────── */
.reset-state{display:none;flex-direction:column;gap:22px;}
.reset-state.on{display:flex;}
/* reset.js pose tabindex="-1" et le focus sur l'état affiché, pour qu'un
   lecteur d'écran lise le changement de vue au lieu de le laisser passer en
   silence. Le contour du navigateur autour du bloc entier n'ajoute rien à ce
   que le texte qui vient d'apparaître dit déjà. */
.reset-state:focus{outline:none;}

/* ── Squelettes de chargement ──────────────────────────────────────────
   Pendant un chargement réel (la session et le profil sur account.html, la
   vérification du lien sur reset.html), des blocs gris tiennent la place
   et la forme des vrais blocs : la page ne saute pas à l'arrivée des
   valeurs. Ils ne servent qu'à l'œil (aria-hidden, ou texte rendu
   transparent) ; la phrase « Chargement… » est dite par un role="status"
   masqué. La pulsation change la couleur de fond, pas l'opacité, et
   s'arrête quand le système demande moins d'animation. Couleurs prises aux
   jetons du papier, avec un cran de plus en sombre. */
:root{--skeleton:var(--paper-3);--skeleton-hi:var(--paper-2);}
/* En sombre, --paper-3 (#2A2620) ne se détache presque pas de --card
   (#221E19) : un cran plus clair, toujours dans le papier chaud. */
:root[data-theme="dark"]{--skeleton:#3A342C;--skeleton-hi:#2E2923;}
@keyframes sk-pulse{0%,100%{background-color:var(--skeleton);}50%{background-color:var(--skeleton-hi);}}
.sk{
  display:block;height:14px;border-radius:8px;background-color:var(--skeleton);
  animation:sk-pulse 1.6s ease-in-out infinite;
}
.sk-form{display:flex;flex-direction:column;gap:var(--space-8);}
.sk-label{width:42%;height:13px;}                       /* = .label */
.sk-label--short{width:30%;margin-top:var(--space-16);}
.sk-input{height:var(--touch-control);border-radius:var(--r-sm);}  /* = .input */
.sk-button{height:var(--touch-control);border-radius:var(--r-sm);margin-top:var(--space-16);} /* = .auth-submit */
:root:not([data-theme-choice]) .sk-form{display:none;}
/* account.html : les valeurs encore vides deviennent des blocs, à la taille
   du texte qui va les remplir ; le texte d'attente (« … », « ? ») est rendu
   transparent plutôt que retiré, pour que account.js n'ait rien à recoudre.
   Sans JavaScript (data-theme-choice absent, posé par theme-init.js), rien
   ne viendra remplacer les blocs : ils ne s'affichent pas. */
:root[data-theme-choice] .acc-shell[aria-busy="true"] .sk-slot{
  color:transparent;background:var(--skeleton);border-radius:8px;box-shadow:none;
  animation:sk-pulse 1.6s ease-in-out infinite;
}
:root[data-theme-choice] .acc-shell[aria-busy="true"] .avatar.sk-slot{border-radius:20px;}
:root[data-theme-choice] .acc-shell[aria-busy="true"] #headerName{width:min(260px,80%);}
:root[data-theme-choice] .acc-shell[aria-busy="true"] #headerEmail{width:min(220px,65%);height:16px;margin-top:10px;}
:root[data-theme-choice] .acc-shell[aria-busy="true"] .row .v.sk-slot{display:inline-block;width:140px;height:18px;}
:root[data-theme-choice] .acc-shell[aria-busy="true"] #memberSince{width:56px;}
@media (prefers-reduced-motion:reduce){
  .sk,:root[data-theme-choice] .acc-shell[aria-busy="true"] .sk-slot{animation:none;}
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width:560px){
  .acc-page{padding:40px 0 64px;}
  .acc-card{padding:6px 18px;}
  .row{flex-direction:column;align-items:flex-start;gap:10px;}
  .row .side{width:100%;justify-content:flex-start;}
  .pwd-meta{flex-direction:column;gap:8px;}
  .pwd-rules{text-align:left;}
  .pwd-rules li{justify-content:flex-start;}
  .modal-box{padding:24px 20px;}
  .modal-actions .btn{flex:1;}
}
