/* ────────────────────────────────────────────────────────────────────────────
   site.css — ce qui est propre à account.lorderis.dev
   ────────────────────────────────────────────────────────────────────────────
   Le style vient de lorderis.dev : lorderis.css est son style.css recopié tel
   quel (barre du haut, boutons ronds, pied de page, variables, thème sombre),
   et Inter est servie par inter.css. Ce fichier-ci n'ajoute que ce que le
   portfolio n'a pas — formulaires du compte, onglets, porte du code, QR code,
   zone de suppression, Pilotage — et l'écrit avec SES variables (--purple,
   --gray-*, --white, --radius…) et SES composants : chaque règle qui reprend
   un composant du portfolio le nomme (« = .brief-submit »), avec les mêmes
   valeurs, y compris les correctifs de contraste du portfolio (--gray-500,
   --purple-text, fin du dégradé de .brief-submit, voile sombre au survol de
   la barre). Un défaut du portfolio se corrige dans le portfolio, puis se
   recopie : il n'y a ici aucun écart propre au compte.

   Aucun style en ligne dans les pages (la CSP l'interdit) : tout l'habillage
   vit dans assets/css/.

   Thème : <html data-theme="light|dark"> est posé avant le premier rendu par
   theme-init.js ; les variables du portfolio sont redéfinies pour le sombre
   par lorderis.css. Les couleurs propres au compte (états, danger) le sont
   ici. Aucune règle ne dépend d'une couleur seule pour porter un sens.
   ──────────────────────────────────────────────────────────────────────────── */

:root {
  --ok-bg: #E7F6EC; --ok-text: #166534; --ok-rule: #86C79A;
  --warn-bg: #FFF4E5; --warn-text: #8A4B00; --warn-rule: #F0B866;
  --err-bg: #FDECEC; --err-text: #9B1C1C; --err-rule: #EFA3A3;
  --info-bg: #EEF0FF; --info-text: #3730A3; --info-rule: #B4B8F5;
  --danger: #B91C1C;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', ui-monospace, Menlo, Consolas, monospace; /* = .code-body pre */
  color-scheme: light;
}
[data-theme="dark"] {
  --ok-bg: #0F2E1C; --ok-text: #9BE5B4; --ok-rule: #2F6B45;
  --warn-bg: #33240C; --warn-text: #F8CD8B; --warn-rule: #7A5520;
  --err-bg: #3A1414; --err-text: #FBB4B4; --err-rule: #7F2E2E;
  --info-bg: #1C1D3D; --info-text: #C7CAFF; --info-rule: #4245A0;
  --danger: #F87171;
  color-scheme: dark;
}

/* ── Page ────────────────────────────────────────────────────────────────── */
/* Le fond gris clair de la page projet (.project-page de project.css) ; le
   pied de page reste en bas quand une vue est courte. La page de
   confidentialité garde le fond blanc de privacy.html. */
body { display: flex; flex-direction: column; min-height: 100vh; }
/* La barre est fixe (68 px) : un champ atteint au clavier ou une ancre ne
   doivent pas s'arrêter dessous. */
html { scroll-padding-top: 84px; }
.account-page { background: var(--gray-50); }
main { flex: 1 0 auto; width: 100%; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Une vue reçoit le focus par script pour être annoncée (ui.js, showView) :
   ce n'est pas une cible du clavier, elle n'a pas à s'encadrer. */
section[tabindex="-1"]:focus, section[tabindex="-1"]:focus-visible { outline: none; }

/* Les blocs de texte longs (étapes, politique) sont écrits deux fois, une
   par langue : on montre celui de la langue courante. */
html[lang="en"] [data-lang-block="fr"],
html:not([lang="en"]) [data-lang-block="en"] { display: none !important; }

/* La page courante, dans la barre : graisse et fond du survol de la barre
   (.nav-links a:hover sur le bandeau, .navbar.scrolled .nav-links a:hover
   une fois opaque) — pas la couleur seule. */
.navbar:not(.scrolled) .nav-links:not(.mobile-open) a[aria-current="page"] { color: white; background: rgba(17,24,39,0.18); font-weight: 700; }
.navbar.scrolled .nav-links a[aria-current="page"] { color: var(--gray-900); background: var(--gray-100); font-weight: 700; }
.nav-links.mobile-open a[aria-current="page"] { color: var(--gray-900); background: var(--gray-100); font-weight: 700; }

/* ── Bandeau d'une vue : = .project-hero (project.css du portfolio) ──────── */
.account-hero { background: var(--hero-grad); padding: 100px 2rem 60px; }
/* Le texte du bandeau s’aligne sur celui des cartes : .account-main fait
   780 px, marges intérieures comprises (box-sizing du portfolio). */
.account-hero-inner { max-width: calc(780px - 4rem); margin: 0 auto; }
/* = .project-hero-text h1 */
.account-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: white;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
/* = .project-hero-text > p */
.account-hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
  max-width: 560px;
}
.account-hero-lead.who strong { color: white; word-break: break-all; }
.account-hero .status { margin-top: 1rem; }

/* = .project-main, à la largeur de lecture de privacy.html (.legal-main). */
.account-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Cartes : = .brief-form ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  color: var(--gray-900);
  line-height: 1.6;
}
.card > * + *, .card form > * + * { margin-top: 0.85rem; }
/* = .brief-header h3 */
.card h2 { font-size: 1.05rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.01em; }
/* = .about-card h3 */
.card h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
/* = .about-card p */
.muted { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; }
.card-foot { margin-top: 1.25rem; }
code, .mono { font-family: var(--mono); font-size: .9em; }
/* Un lien dans le texte : = .legal-main a (privacy.html). */
.card a:not(.btn), .prose a { color: var(--purple-text); text-decoration: underline; }

/* ── Champs : = .brief-field ─────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
/* = .brief-field-label. Le portfolio écrit ses étiquettes en capitales dans
   le HTML (« NOM COMPLET * ») ; ici le texte est celui des catalogues, au mot
   près : les capitales viennent donc de text-transform. */
.field__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  display: block;
  text-transform: uppercase;
}
/* Une étiquette qui est une phrase à recopier (l'adresse à saisir pour
   supprimer le compte) garde sa casse : en capitales, l'adresse ne se lirait
   plus telle qu'il faut la taper. */
.field__label--sentence { text-transform: none; letter-spacing: 0; font-size: 0.85rem; color: var(--gray-600); }
.field__hint { font-size: 0.85rem; color: var(--gray-600); margin-top: -0.4rem; }
/* = .brief-field input */
.field__input {
  font: inherit;
  font-size: 0.92rem;
  padding: 11px 14px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  color: var(--gray-900);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  width: 100%;
}
.field__input::placeholder { color: var(--gray-500); }
/* = .brief-field input:focus */
.field__input:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}
.field__input--code { max-width: 12rem; font-family: var(--mono); letter-spacing: .15em; }
.field__row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.field__row .field__input { flex: 1 1 18rem; }
.field__actions, .form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.form-actions { justify-content: space-between; }
.form-actions--start { justify-content: flex-start; }

/* ── Boutons : = .brief-submit, .brief-submit--gmail ─────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}
/* Inactif : gris lisible plutôt qu'une opacité de 0,6, qui faisait tomber le
   texte à 2:1 (le bouton de suppression attend la confirmation saisie).
   Sélecteur doublé : il doit passer devant les règles du thème sombre. */
.btn.btn:disabled { cursor: not-allowed; background: var(--gray-100); color: var(--gray-600); border-color: var(--gray-200); box-shadow: none; filter: none; }
/* = .brief-submit. Le cadre transparent de 1,5 px lui donne la hauteur du
   bouton secondaire et de celui de Google, qui en ont un. */
.btn--primary {
  background: linear-gradient(135deg, var(--purple), #7F4BF0);
  border: 1.5px solid transparent;
  color: white;
  box-shadow: 0 8px 24px -8px var(--purple);
}
/* = .brief-submit:hover */
.btn--primary:not(:disabled):hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 32px -8px var(--purple);
}
/* = .brief-submit--gmail */
.btn--ghost {
  background: var(--white);
  color: var(--gray-900);
  border: 1.5px solid var(--gray-200);
  box-shadow: none;
}
[data-theme="dark"] .btn--ghost { background: var(--gray-100); color: var(--gray-900); border-color: var(--gray-200); }
.btn--ghost:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.35);
  border-color: var(--purple-xl);
}
.btn--block { width: 100%; }
/* Le geste qui détruit : la géométrie de .brief-submit, en rouge. */
.btn--danger { background: var(--danger); color: white; }
[data-theme="dark"] .btn--danger { color: #111118; }
.btn--danger:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--danger-ghost { background: transparent; color: var(--danger); border: 1.5px solid currentColor; padding: 10px 16px; font-size: 0.9rem; }
.btn--danger-ghost:hover { background: var(--err-bg); }
/* Un lien d'action dans le texte : = .nav-panel-footer a, souligné parce
   qu'il n'a ni fond ni cadre pour se distinguer du texte. */
.btn--link {
  background: none; padding: 0 .25rem; min-height: 44px; border-radius: 4px;
  color: var(--purple-text); font-size: 0.9rem; font-weight: 600; text-decoration: underline;
}
.btn--link:not(:disabled):hover { transform: none; }
.btn[data-copied="true"]::before { content: "✓"; }

/* Bouton Google : fond blanc, logo multicolore, libellé de Google — ce que
   permettent les règles de marque pour un bouton dessiné par le site. Sa
   géométrie est celle des autres boutons. */
.btn--google { background: #fff; color: #1F1F1F; border: 1.5px solid #747775; width: 100%; }
.btn--google:hover { background: #F8F9FA; }
.btn--google svg { width: 1.2em; height: 1.2em; flex: none; } /* la hauteur d'une ligne : le bouton garde celle des autres */

/* Sur le site, le bouton de Google lui-même (Google Identity Services) : un
   cadre dessiné par Google, à sa marque, que rien d'ici ne retouche. Le bloc
   le centre et lui réserve sa hauteur (« large » : 40 px, et la marge que
   Google y ajoute), pour que la phrase en dessous ne saute pas quand il
   paraît ; sa largeur suit la carte, 400 px au plus (google-auth.js la
   mesure). Le cadre garde le schéma clair : avec celui de la page en sombre,
   le navigateur poserait un fond opaque derrière le bouton arrondi. */
.google-gis { display: flex; justify-content: center; min-height: 44px; }
.google-gis__button { display: flex; justify-content: center; width: 100%; max-width: 400px; }
.google-gis iframe { color-scheme: light; }

.divider { display: flex; align-items: center; gap: .75rem; color: var(--gray-600); margin: 1.25rem 0; font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--gray-200); }

/* ── Messages d'état : couleur + pictogramme + libellé lu ────────────────── */
.status { border: 1px solid; border-left-width: 4px; border-radius: var(--radius-sm); padding: .55rem .75rem; font-size: .9rem; line-height: 1.5; }
.status::before { font-weight: 800; margin-right: .4rem; }
.status--info  { background: var(--info-bg); color: var(--info-text); border-color: var(--info-rule); }
.status--info::before { content: "i"; }
.status--ok    { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-rule); }
.status--ok::before { content: "✓"; }
.status--error { background: var(--err-bg); color: var(--err-text); border-color: var(--err-rule); }
.status--error::before { content: "!"; }
.status a { color: inherit; text-decoration: underline; }

/* Pastilles d'état : la forme de .brief-budget (pilule, bordure 1,5 px). */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: 4px 12px; border-radius: 50px; border: 1.5px solid; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.chip__mark { font-weight: 800; }
.chip--ok { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-rule); }
.chip--warn { background: var(--warn-bg); color: var(--warn-text); border-color: var(--warn-rule); }
.chip--unknown { background: var(--gray-50); color: var(--gray-600); border-color: var(--gray-200); }

/* ── Onglets (tabs.js) ───────────────────────────────────────────────────── */
/* La barre : une carte (.brief-form) qui passe à la ligne au lieu de défiler
   — à 390 px, quatre onglets font deux rangées de deux. L'onglet actif se lit
   sans la couleur : graisse, fond et barre épaisse dessous. */
.tabs__list {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--card-shadow);
}
.tabs__tab {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; min-width: 44px; padding: .5rem .9rem; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--gray-600); font-family: inherit; font-size: .92rem; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
/* = .proj-cat-option:hover */
.tabs__tab:hover { background: var(--gray-100); color: var(--gray-900); }
.tabs__tab[aria-selected="true"] { background: var(--gray-100); color: var(--gray-900); font-weight: 800; box-shadow: inset 0 -3px 0 var(--purple); }
.tabs__mark { font-weight: 800; }
.tabs__tab--danger .tabs__mark { color: var(--danger); }
/* = .proj-cat-count */
.tabs__count {
  min-width: 28px; height: 28px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; color: var(--gray-600); font-variant-numeric: tabular-nums;
}
.tabs__panel { display: flex; flex-direction: column; gap: 1.5rem; }
/* Le panneau prend le focus au clavier (Tab depuis la barre) : il s'encadre. */
.tabs__panel:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
@media (max-width: 560px) {
  .tabs__tab { flex-basis: calc(50% - 2px); padding: .5rem .6rem; }
}

/* ── Mon compte ──────────────────────────────────────────────────────────── */
/* Une grille pour toute la liste, que chaque ligne partage (subgrid) : la
   colonne des boutons prend la largeur du plus long libellé, et tous les
   boutons la prennent — même largeur, même hauteur, alignés à droite. Sous
   560 px, le bouton passe sous le nom, en pleine largeur. */
.app-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) max-content; column-gap: 1rem; }
.app-row {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center;
  row-gap: .5rem; padding: .75rem 0; border-top: 1px solid var(--gray-200);
}
.app-row__name { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
/* L'icône de l'app, recopiée de son dépôt ; décorative (alt=""), le nom suit. */
.app-row__logo { width: 28px; height: 28px; flex: none; border-radius: 8px; }
.app-row__action { grid-column: 2; width: 100%; }
/* Le rappel des stores, une fois sous la liste : le trait la referme. */
.app-list__note { margin-top: 0; padding-top: .75rem; border-top: 1px solid var(--gray-200); }
@media (max-width: 560px) {
  .app-list { grid-template-columns: minmax(0, 1fr); }
  .app-row__action { grid-column: 1; }
}
.rules { list-style: none; margin-top: .25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .15rem .75rem; font-size: .85rem; color: var(--gray-600); }
.rule { display: flex; gap: .4rem; align-items: center; }
.rule__mark { width: 1.1rem; text-align: center; font-weight: 800; }
.rule--ok { color: var(--ok-text); }

/* ── Double authentification ─────────────────────────────────────────────── */
.state-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.state-list { list-style: none; }
.state-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem 0; border-top: 1px solid var(--gray-200); }
.factor { display: flex; flex-direction: column; min-width: 0; }
.factor__name { font-weight: 700; }
.factor__meta { color: var(--gray-600); font-size: .85rem; word-break: break-word; }
.mfa-setup { border-top: 1px solid var(--gray-200); padding-top: 1.25rem; }
.mfa-setup > * + *, .mfa-setup form > * + * { margin-top: .85rem; }
.qr-box { display: flex; justify-content: center; }
/* Noir sur blanc dans les DEUX thèmes, couleurs écrites ici exprès : un QR
   code inversé n'est pas lu par toutes les applications d'authentification. */
.qr { display: block; width: min(13rem, 100%); height: auto; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200); }
.qr__paper { fill: #FFFFFF; }
.qr__ink { fill: #000000; }
/* La clé à recopier : le cadre d'un champ (.brief-field input), en chasse fixe. */
.secret-key {
  display: block; padding: 11px 14px; background: var(--gray-50); border: 1.5px solid var(--gray-200);
  border-radius: 10px; letter-spacing: .04em; word-break: break-all; user-select: all;
}

/* ── Zone sensible : supprimer le compte entier ──────────────────────────── */
/* Le danger se dit par le titre et le texte ; le filet rouge ne fait que le
   souligner (la couleur n'est jamais seule à porter le sens). */
.card--danger { border-color: var(--err-rule); border-left: 4px solid var(--danger); }
.card--danger h2::before { content: "⚠ "; color: var(--danger); }
.delete-apps { padding-left: 1.2rem; }
.delete-apps li { margin: .15rem 0; font-weight: 700; }
.notes { padding-left: 1.2rem; color: var(--gray-600); font-size: .9rem; }
.notes li { margin: .35rem 0; }

/* ── Pilotage ────────────────────────────────────────────────────────────── */
.state-grid { display: grid; gap: .85rem; }
/* Un identifiant par bloc, séparés d'un filet : le halo du bouton
   « Enregistrer » (box-shadow de .brief-submit) ne doit pas déborder sur
   l'étiquette suivante, il en faisait tomber le contraste à 2,6:1. */
#settingsRows > * + * { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--gray-200); }
.secret-rule { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-rule); border-left-width: 4px; border-radius: var(--radius-sm); padding: .65rem .8rem; font-weight: 600; }
.secret-rule::before { content: "⚠ "; }
.steps { counter-reset: step; list-style: none; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.25rem 2.5rem; }
/* = .brief-step-num */
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple);
  color: white;
  border-radius: 50%;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
}
.steps p { margin: .25rem 0 .5rem; }
.steps ul { padding-left: 1.1rem; }
.copy { margin: .5rem 0; }
.copy__label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .25rem; }
.copy__row { display: flex; gap: .5rem; align-items: stretch; }
/* = .brief-field input, en chasse fixe */
.copy__input {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px;
  background: var(--gray-50); color: var(--gray-900); font: .85rem/1.45 var(--mono); resize: vertical;
}
.copy__btn { flex: none; }

.audit { width: 100%; border-collapse: collapse; font-size: .9rem; }
.audit th, .audit td { text-align: left; padding: .5rem .4rem; border-top: 1px solid var(--gray-200); vertical-align: top; }
.audit th { color: var(--gray-600); font-weight: 700; border-top: 0; }
.audit td { word-break: break-word; }
/* Sur un téléphone, une ligne du journal devient une petite fiche : quatre
   colonnes de 90 px ne se lisent pas. */
@media (max-width: 560px) {
  .audit thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .audit tr { display: block; border-top: 1px solid var(--gray-200); padding: .4rem 0; }
  .audit td { display: flex; gap: .5rem; border: 0; padding: .15rem 0; }
  .audit td::before { content: attr(data-label); min-width: 5.5rem; color: var(--gray-600); font-weight: 700; }
}

/* ── Dialogue : une carte (.brief-form) au-dessus de la page ─────────────── */
.dialog {
  margin: auto; border: 1.5px solid var(--gray-200); border-radius: var(--radius); background: var(--white); color: var(--gray-900);
  padding: 0; max-width: min(30rem, calc(100vw - 2rem)); box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.dialog::backdrop { background: rgba(10, 8, 30, .55); }
.dialog__form { padding: 1.5rem; }
.dialog__title { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.dialog__body { margin-top: .6rem; color: var(--gray-600); line-height: 1.6; }
.dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }

/* ── « Donner mon avis » : le formulaire du module de référence ───────────
   assets/js/feedback.js (copie telle quelle de reference/web/feedback.js)
   ne connaît aucune couleur : il pose les classes lfb-*, dessinées ici avec
   les jetons du site. Le dialogue = .dialog, les choix = .chip, l'envoi =
   .btn--primary, l'annulation = .btn--ghost. */
.lfb {
  margin: auto; border: 1.5px solid var(--gray-200); border-radius: var(--radius); background: var(--white); color: var(--gray-900);
  padding: 0; width: min(34rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.lfb::backdrop { background: rgba(10, 8, 30, .55); }
.lfb__form { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.lfb__title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.lfb__subtitle { font-size: 1rem; font-weight: 700; }
.lfb__lead, .lfb__muted, .lfb__privacy, .lfb__counter { color: var(--gray-600); font-size: .9rem; line-height: 1.6; }
.lfb__privacy a { color: var(--purple-text); text-decoration: underline; }
.lfb__counter { font-size: .8rem; text-align: right; }
.lfb__questions { display: flex; flex-direction: column; gap: 1rem; }
.lfb__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.lfb__legend, .lfb__label { display: block; font-size: .9rem; font-weight: 700; color: var(--gray-900); margin-bottom: .45rem; padding: 0; }
.lfb__field { display: flex; flex-direction: column; gap: 4px; }
.lfb__options { display: flex; flex-wrap: wrap; gap: .4rem; }
/* Le bouton radio reste à sa place (lecteurs d'écran, clavier) ; la pastille
   dit l'état par son fond ET par sa graisse, pas par la couleur seule. */
.lfb__option { position: relative; display: inline-flex; align-items: center; }
.lfb__radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.lfb__option span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 0 .8rem; border: 1.5px solid var(--gray-200); border-radius: 50px; background: var(--gray-50);
  color: var(--gray-900); font-weight: 600; font-size: .9rem; cursor: pointer;
}
.lfb__option--none span { color: var(--gray-600); font-weight: 500; }
.lfb__radio:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 800; }
.lfb__radio:checked + span::before { content: "✓ "; white-space: pre; }
.lfb__radio:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.lfb__textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px; background: var(--white);
  color: var(--gray-900); font: inherit; font-size: .95rem; resize: vertical;
}
.lfb__textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18); }
.lfb__notice { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-rule); border-left-width: 4px; border-radius: var(--radius-sm); padding: .55rem .75rem; font-size: .9rem; }
/* = .status */
.lfb__status { border: 1px solid; border-left-width: 4px; border-radius: var(--radius-sm); padding: .55rem .75rem; font-size: .9rem; line-height: 1.5; }
.lfb__status--info  { background: var(--info-bg); color: var(--info-text); border-color: var(--info-rule); }
.lfb__status--ok    { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-rule); }
.lfb__status--ok::before { content: "✓ "; font-weight: 800; }
.lfb__status--error { background: var(--err-bg); color: var(--err-text); border-color: var(--err-rule); }
.lfb__status--error::before { content: "! "; font-weight: 800; }
.lfb__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
/* Les boutons du module, aux couleurs de .btn--ghost et .btn--primary. */
.lfb__submit, .lfb__cancel {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px;
  padding: 11px 22px; border-radius: 50px; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.lfb__submit { background: linear-gradient(135deg, var(--purple), var(--purple-l)); color: #fff; border: 0; }
.lfb__submit:disabled { background: var(--gray-100); color: var(--gray-600); cursor: not-allowed; }
.lfb__cancel { background: transparent; color: var(--gray-900); border: 1.5px solid var(--gray-200); }
.lfb__cancel:hover { background: var(--gray-100); }

/* ── Pilotage, onglet Avis ──────────────────────────────────────────────── */
.field__select { appearance: auto; }
.fb-headline { font-size: 1rem; }
.fb-bars { list-style: none; display: grid; gap: .35rem; }
.fb-bar { display: grid; grid-template-columns: minmax(5.5rem, max-content) minmax(0, 1fr) minmax(5.5rem, max-content); align-items: center; gap: .6rem; font-size: .9rem; }
.fb-bar__meter { width: 100%; height: .8rem; }
.fb-bar__value { color: var(--gray-600); text-align: right; font-variant-numeric: tabular-nums; }
.fb-qsum { list-style: none; }
.fb-qsum__item { padding: .65rem 0; border-top: 1px solid var(--gray-200); }
.fb-qsum__text { font-weight: 700; }
.fb-list { list-style: none; }
.fb-item { padding: .85rem 0; border-top: 1px solid var(--gray-200); }
.fb-item > * + * { margin-top: .35rem; }
.fb-item__meta { color: var(--gray-600); font-size: .85rem; }
.fb-item__rating { font-weight: 700; }
.fb-item__answers { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem; font-size: .9rem; }
.fb-item__answers dt { color: var(--gray-600); font-weight: 600; }
.fb-item__answers dd { margin: 0 0 .35rem; }
.fb-item__label { color: var(--gray-600); font-size: .85rem; font-weight: 600; }
/* Un commentaire garde ses retours à la ligne, et un mot démesuré ne fait
   pas défiler la page de côté. */
.fb-item__comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-question-row { align-items: flex-start; }
.fb-question { flex: 1 1 16rem; min-width: 0; }
.fb-question__meta { color: var(--gray-600); font-size: .85rem; font-weight: 600; }
.fb-question__text { font-weight: 600; overflow-wrap: anywhere; }
.fb-question__text--alt { color: var(--gray-600); font-weight: 500; }
#fbForm { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--gray-200); }
#fbForm > * + * { margin-top: .85rem; }
@media (max-width: 560px) {
  .fb-bar { grid-template-columns: minmax(0, 1fr) minmax(5rem, max-content); }
  .fb-bar__meter { grid-column: 1 / -1; grid-row: 2; }
  .lfb__form { padding: 1.2rem 1rem; }
}

/* ── Squelettes de chargement (skeleton.js) ──────────────────────────────
   Pendant qu'une donnée arrive de Supabase, des blocs gris ont la place et
   la forme des vrais blocs (bandeau, cartes, lignes d'app, champs, tableau
   du journal, avis) : la page ne saute pas quand le contenu arrive, et l'on
   voit ce qui se charge. Ils n'apparaissent que pendant un chargement réel,
   jamais à la place d'une erreur ni d'une liste vide. La pulsation change la
   COULEUR DE FOND, pas l'opacité, et s'arrête sous « mouvement réduit ».
   Les blocs sont décoratifs (aria-hidden) : c'est le texte masqué du groupe
   (role="status") qui dit « Chargement… ». */
:root {
  --skeleton: #E5E7EB;           /* = --gray-200 sur la carte blanche */
  --skeleton-hi: #F1F2F5;
  --skeleton-hero: rgba(255, 255, 255, 0.30);
  --skeleton-hero-hi: rgba(255, 255, 255, 0.18);
}
[data-theme="dark"] {
  --skeleton: #2E2E42;           /* = --gray-200 sombre, sur la carte #18181F */
  --skeleton-hi: #3A3A52;
  --skeleton-hero: rgba(255, 255, 255, 0.16);
  --skeleton-hero-hi: rgba(255, 255, 255, 0.08);
}
@keyframes sk-pulse {
  0%, 100% { background-color: var(--skeleton); }
  50% { background-color: var(--skeleton-hi); }
}
@keyframes sk-pulse-hero {
  0%, 100% { background-color: var(--skeleton-hero); }
  50% { background-color: var(--skeleton-hero-hi); }
}
.sk {
  display: block; height: 0.9rem; width: 100%; max-width: 100%;
  border-radius: 6px; background-color: var(--skeleton);
  animation: sk-pulse 1.6s ease-in-out infinite;
}
.sk--hero { background-color: var(--skeleton-hero); animation-name: sk-pulse-hero; }
/* Les hauteurs reprennent celles des vrais blocs. */
.sk-title { height: 1.15rem; }                                  /* = .card h2 */
.sk-label { height: 0.7rem; }                                   /* = .field__label */
.sk-small { height: 0.75rem; }                                  /* = .muted, .factor__meta */
.sk-input { height: 46px; border-radius: 10px; }                /* = .field__input */
.sk-btn { height: 48px; border-radius: 12px; width: 14rem; flex: none; } /* = .btn */
.sk-btn--small { height: 42px; width: 9rem; }                   /* = .btn--danger-ghost */
.sk-chip { height: 30px; width: 6.5rem; border-radius: 50px; flex: none; } /* = .chip */
.sk-logo { height: 28px; width: 28px; border-radius: 8px; flex: none; } /* = .app-row__logo */
.sk-bar { height: 0.8rem; }                                     /* = .fb-bar__meter */
.sk-tab { height: 44px; border-radius: var(--radius-sm); flex: 1 1 calc(25% - 4px); } /* = .tabs__tab */
.sk-hero-title { height: clamp(2.1rem, 3.6vw, 3rem); margin-bottom: 0.9rem; border-radius: 10px; } /* = .account-hero h1 */
.sk-hero-line { height: 1.05rem; margin-top: 0.45rem; }         /* = .account-hero-lead */
.sk--w20 { width: 20%; } .sk--w25 { width: 25%; } .sk--w30 { width: 30%; } .sk--w40 { width: 40%; }
.sk--w50 { width: 50%; } .sk--w60 { width: 60%; } .sk--w70 { width: 70%; } .sk--w80 { width: 80%; } .sk--w90 { width: 90%; }
/* Le groupe posé devant la liste qu'il annonce ; ses lignes prennent les
   filets et les espacements des vraies lignes. */
.sk-blocks > * + * { margin-top: 0.6rem; }
.sk-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--gray-200); }
.sk-row > .sk:not(.sk-btn):not(.sk-chip):not(.sk-logo) { flex: 0 1 auto; }
.sk-stack { display: flex; flex-direction: column; gap: .45rem; flex: 1 1 auto; min-width: 0; }
.sk-name { display: flex; align-items: center; gap: .65rem; flex: 1 1 auto; min-width: 0; } /* = .app-row__name */
.sk-row--field { display: block; border-top: 0; padding: 0; }
.sk-row--field + .sk-row--field { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--gray-200); } /* = #settingsRows */
.sk-row--field > * + * { margin-top: .5rem; }
.sk-inline { display: flex; gap: .5rem; align-items: center; } /* = .field__row, .copy__row */
.sk-inline > .sk-input { flex: 1 1 auto; }
.sk-row--table { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; padding: .7rem .4rem; } /* = .audit */
.sk-row--feedback { display: block; padding: .85rem 0; }        /* = .fb-item */
.sk-row--feedback > * + * { margin-top: .55rem; }
.sk-row--bar { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) 5.5rem; gap: .6rem; border-top: 0; padding: .2rem 0; } /* = .fb-bar */
.sk-bullets { padding-left: 1.2rem; }                            /* = .delete-apps */
.sk-bullets > * + * { margin-top: .5rem; }
/* La page entière, avant que Supabase ait dit qui est connecté. */
.sk-card > * + * { margin-top: 0.85rem; }
.sk-card .sk-label { margin-top: 1.2rem; }
.sk-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--card-shadow); } /* = .tabs__list */
/* Sans JavaScript, rien ne viendra remplacer les blocs : ils ne s'affichent
   pas (theme-init.js pose data-theme-pref dès qu'un script s'exécute), et le
   message <noscript> reste seul. */
html:not([data-theme-pref]) .sk-page { display: none; }
@media (max-width: 560px) {
  .sk-row--app { flex-direction: column; align-items: stretch; }  /* = .app-row sous 560 px */
  .sk-row--app .sk-btn { width: 100%; }
  .sk-inline--wrap { flex-direction: column; align-items: stretch; }
  .sk-inline--wrap > .sk-btn { width: 100%; }
  .sk-row--table { grid-template-columns: minmax(0, 1fr); gap: .45rem; } /* = .audit en fiches */
  .sk-row--bar { grid-template-columns: minmax(0, 1fr) 5rem; }
  .sk-row--bar .sk-bar { grid-column: 1 / -1; grid-row: 2; }
  .sk-tab { flex-basis: calc(50% - 2px); }
}
@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
}

/* ── Politiques de confidentialité : le gabarit commun ───────────────────
   assets/css/legal.css est le gabarit des politiques Lorderis, recopié TEL
   QUEL de reference/privacy/ : il ne connaît aucune couleur. Ces variables
   lui donnent celles de lorderis.css (violet, gris, Inter), et suivent le
   thème sombre par les jetons qu'elles nomment ; seuls les fonds teintés,
   qui ne sont pas des jetons du portfolio, sont redits en sombre. */
:root {
  --lp-font-head: inherit;
  --lp-font-body: inherit;
  --lp-head-lh: 1.15;
  --lp-ink: var(--gray-900);
  --lp-ink-2: var(--gray-600);
  --lp-muted: var(--gray-500);
  --lp-card: var(--white);
  --lp-line: var(--gray-200);
  --lp-hover: var(--gray-100);
  --lp-accent: var(--purple-l);
  --lp-accent-ink: var(--purple-text);
  --lp-accent-soft: rgba(124, 58, 237, 0.08);
  --lp-accent-line: rgba(124, 58, 237, 0.22);
  --lp-callout-icon: var(--white);
  --lp-contact-bg: var(--hero-grad);
  --lp-contact-ink: #fff;
  --lp-contact-muted: rgba(255, 255, 255, 0.94);
  --lp-contact-link: #fff;
  --lp-tone-1-bg: rgba(124, 58, 237, 0.10); --lp-tone-1-ink: var(--purple-text);
  --lp-tone-2-bg: rgba(11, 120, 150, 0.10); --lp-tone-2-ink: #0B7896;
  --lp-tone-3-bg: var(--gray-100);          --lp-tone-3-ink: var(--gray-600);
  --lp-tone-4-bg: rgba(147, 51, 234, 0.10); --lp-tone-4-ink: #7E22CE;
  --lp-blob: var(--purple-xl);
  --lp-blob-opacity: 0.22;
  --lp-radius-sm: var(--radius-sm);
  --lp-radius-md: var(--radius);
  --lp-shadow: var(--card-shadow);
  --lp-sticky-top: 68px;          /* = .nav-container */
  --lp-wrap: 1200px;              /* = .nav-container */
  --lp-gutter: 24px;
}
[data-theme="dark"] {
  --lp-accent-soft: rgba(167, 139, 250, 0.12);
  --lp-accent-line: rgba(167, 139, 250, 0.28);
  --lp-tone-1-bg: rgba(167, 139, 250, 0.14); --lp-tone-1-ink: var(--purple-xl);
  --lp-tone-2-bg: rgba(34, 211, 238, 0.12);  --lp-tone-2-ink: var(--cyan-l);
  --lp-tone-4-bg: rgba(192, 132, 252, 0.14); --lp-tone-4-ink: #D8B4FE;
  --lp-blob-opacity: 0.12;
}
/* La barre est fixe (lorderis.css) : la page commence sous elle. */
.legal-page { padding-top: 68px; }
.legal-page .legal-hero h1 { font-weight: 800; letter-spacing: -0.02em; }
.legal-page .legal-body h2,
.legal-page .legal-body h3 { font-weight: 700; }

@media (max-width: 560px) {
  /* = .brief-form à 560 px */
  .card { padding: 1.4rem 1.1rem; }
  .copy__row { flex-direction: column; }
  .field__row .field__input { flex-basis: 100%; }
  .form-actions .btn--primary { flex: 1 1 100%; }
}

/* Mouvement réduit : rien ne monte (lorderis.css coupe déjà les durées). */
@media (prefers-reduced-motion: reduce) {
  .btn:not(:disabled):hover { transform: none; }
}
