/* ============================================================
   👤 MON COMPTE (24/10/2026, demande d'Alex : « créer un bouton profil »)
   ------------------------------------------------------------
   La page /compte.html (/en/compte.html), tirée de la maquette qu'il a
   validée (maquettes/profil/). Le rond de l'en-tête vit dans styles.css
   (toutes les pages) ; ici, seulement la page.

   24/10/2026 — RÉORGANISÉE (« que l'utilisateur comprenne aisément son
   interface », la plupart sont au téléphone) : quatre parties — Résumé,
   Résultats, Packs, Réglages — au lieu de dix cartes à la suite.
   · Téléphone et tablette : le nom, puis les quatre onglets collés sous
     l'en-tête du site, puis la partie ouverte.
   · Ordinateur (940 px et plus) : une colonne à gauche (nom, état des
     packs, les quatre parties, « Se déconnecter »), collante ; la partie
     ouverte à droite, en deux colonnes à partir de 1100 px.
   ============================================================ */
.pf { padding: 32px 0 64px; }
.pf-tete { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 20px; }
.pf-tete h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); margin: 0; text-wrap: balance; }
@media (max-width: 767px) { .pf { padding-top: 20px; } .pf-tete { margin-bottom: 16px; } }

/* ---------- la charpente ---------- */
/* Hauteur de l'en-tête du site, sous laquelle les onglets se collent :
   56 px + son filet au téléphone, 68 px + son filet au-dessus. */
.pf-app { --pf-colle: 57px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .pf-app { --pf-colle: 69px; } }
.pf-cote { display: contents; }
/* Résumé, téléphone et tablette : une colonne, dans l'ordre de ce qu'on vient chercher. */
.pf-r-col { display: contents; }
.pf-r-pack { order: 1; } .pf-r-niveau { order: 2; } .pf-afaire { order: 3; } .pf-p-resume .pf-c-outils { order: 4; }
.pf-panneau { display: grid; gap: 16px; min-width: 0; }
.pf-panneau[hidden] { display: none; }
.pf-panneau:focus { outline: none; }
.pf-entre { animation: pf-entre .26s var(--ease-out); }
@keyframes pf-entre { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .pf-entre { animation: none; } }

/* Les onglets du téléphone : toute la largeur, collés sous l'en-tête, une
   icône dessinée au-dessus d'un mot. Rien à voir avec la barre du bas du
   site (ronds, pied d'écran) : ceux-ci changent de partie DANS la page. */
.pf-nav {
  position: sticky; top: var(--pf-colle); z-index: 90;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 -20px; padding: 0 8px; background: var(--white); border-bottom: 1px solid var(--line);
}
.pf-nav button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 0; min-height: 60px; padding: 8px 2px; border: 0; background: none; cursor: pointer;
  font: 600 var(--fs-xs)/1.2 Inter, sans-serif; color: var(--muted); -webkit-tap-highlight-color: transparent;
  transition: color .2s;
}
.pf-nav button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf .pf-nav svg.pf-trait { width: 22px; height: 22px; }
.pf-nav button::after {
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--red); transform: scaleX(0); transition: transform .26s var(--ease-out);
}
.pf-nav button[aria-selected="true"] { color: var(--red-dark); }
.pf-nav button[aria-selected="true"]::after { transform: none; }
.pf-nav button:hover { color: var(--navy-dark); }
.pf-nav button[aria-selected="true"]:hover { color: var(--red-dark); }
.pf-nav button:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; border-radius: var(--r-sm); }
/* 320 px, cinq parties : chaque colonne prend la largeur de son mot (« Résultats »,
   « Réglages », « Overview » étaient coupés en colonnes égales de 64 px, mesuré le 24/10). */
@media (max-width: 360px) { .pf-nav { padding: 0; grid-template-columns: repeat(5, auto); } }

/* Les états des packs et la déconnexion de la colonne : à l'ordinateur seulement. */
.pf-cote .pf-puces, .pf-cote .pf-sortir { display: none; }

@media (min-width: 940px) {
  .pf-app { display: grid; grid-template-columns: 272px minmax(0, 1fr); align-items: start; gap: 24px; }
  .pf-cote {
    display: block; position: sticky; top: 92px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
  }
  .pf-cote .pf-puces { display: flex; }
  .pf-cote .pf-sortir { display: inline-flex; width: 100%; margin-top: 16px; }
  .pf-nav {
    position: static; display: grid; grid-template-columns: none; gap: 4px;
    margin: 20px 0 0; padding: 16px 0 0; background: none; border: 0; border-top: 1px solid var(--line);
  }
  .pf-nav button {
    flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 8px 12px;
    border-radius: var(--r-sm); font-size: var(--fs-base); text-align: left;
  }
  .pf .pf-nav svg.pf-trait { width: 20px; height: 20px; }
  .pf-nav button::after { display: none; }
  .pf-nav button:hover { background: var(--bg); }
  .pf-nav button[aria-selected="true"] { background: var(--blush); }
  .pf-c-identifiants .pf-sortir { display: none; }
  .pf-panneau { gap: 20px; }
}
@media (min-width: 1100px) {
  .pf-p-resume, .pf-p-reglages, .pf-p-resultats, .pf-p-dossier { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .pf-r-col { display: grid; gap: 20px; min-width: 0; }
  .pf-p-resultats .pf-c-resultats, .pf-p-resultats .pf-c-forts { grid-column: 1 / -1; }
  .pf-p-reglages .pf-c-identifiants { grid-row: span 2; }
}

.pf-carte {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; min-width: 0;
}
@media (min-width: 768px) { .pf-carte { padding: 24px; } }
.pf-carte h2 { font-size: var(--fs-md); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.pf-carte h2 .pf-ico { width: 36px; height: 36px; }
.pf-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--r); background: var(--blush); color: var(--red-dark);
}
.pf-ico svg, .pf-mini svg, .pf svg.pf-trait { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-carte > p, .pf-note { margin: 0; font-size: var(--fs-sm); color: var(--ink); }
.pf-note { color: var(--muted); font-size: var(--fs-xs); margin-top: 12px; }

/* Chargement : la forme de la page avant ses données, sans clignoter. */
.pf-attente { display: grid; gap: 20px; }
@media (min-width: 940px) { .pf-attente { grid-template-columns: 272px minmax(0, 1fr); } }
.pf-attente span { display: block; height: 180px; border-radius: var(--r); background: var(--line); opacity: .55; animation: pf-pouls 1.6s ease-in-out infinite alternate; }
.pf-attente span + span { height: 320px; }
@keyframes pf-pouls { to { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pf-attente span { animation: none; } }

/* Sans session */
.pf-porte { max-width: 560px; margin: 8px auto 0; text-align: center; padding: 32px 24px; }
.pf-porte .pf-ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; }
.pf-porte .pf-ico svg { width: 26px; height: 26px; }
.pf-porte h2 { justify-content: center; font-size: var(--fs-lg); margin-bottom: 8px; }
.pf-porte p { color: var(--muted); margin: 0 auto 20px; max-width: 42ch; }
.pf-porte .pf-actions { justify-content: center; }
.pf-porte .pf-lien { display: inline-block; margin-top: 16px; }

/* Identité : une ligne au téléphone (le nom se change dans Réglages), le haut de la colonne à l'ordinateur. */
.pf-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pf-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%; background: var(--red-fond); color: var(--sur-couleur);
  font-family: Sora, Inter, sans-serif; font-weight: 700; font-size: var(--fs-lg); text-transform: uppercase;
}
.pf-avatar svg { width: 24px; height: 24px; }
.pf-id-texte { display: grid; gap: 2px; min-width: 0; }
.pf-id-texte strong { font-family: Sora, Inter, sans-serif; font-size: var(--fs-md); color: var(--navy-dark); overflow-wrap: anywhere; }
.pf-courriel { color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
@media (min-width: 940px) {
  .pf-avatar { width: 56px; height: 56px; font-size: 1.5rem; }
}
.pf-puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pf-puce {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; background: var(--blush); color: var(--red-dark); white-space: nowrap;
}
.pf-puce.ok { background: #E7F6EE; color: var(--teal-ink); }
:root[data-theme="nuit"] .pf-puce.ok { background: #143326; color: #8FE0B4; }
.pf-puce.neutre { background: var(--line); color: var(--navy-dark); }
.pf-puce::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Identifiants */
.pf-lignes { display: grid; margin: 0; }
.pf-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pf-ligne:first-child { border-top: 0; padding-top: 0; }
.pf-ligne dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.pf-ligne dd { margin: 4px 0 0; color: var(--navy-dark); font-weight: 600; overflow-wrap: anywhere; }
.pf-verrou { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.pf-verrou svg { width: 14px; height: 14px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-ligne > .pf-lien { margin-top: 18px; }
.pf-lien {
  font-size: var(--fs-sm); color: var(--red-dark); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.pf-lien:hover { text-decoration-thickness: 2px; }
.pf-sortir { width: 100%; margin-top: 20px; justify-content: center; }
.pf-sortir:disabled { cursor: progress; opacity: .8; }
.pf-supprimer { display: block; margin-top: 12px; text-align: center; font-size: var(--fs-xs); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* Petits formulaires (nom, e-mail, mot de passe) : ils s'ouvrent sous leur ligne. */
.pf-form { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 4px; padding: 16px; border-radius: var(--r); background: var(--bg); }
.pf-form .field { margin: 0; }
.pf-form .field input { width: 100%; }
.pf-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-form-actions .btn { flex: 1 1 auto; justify-content: center; }
.pf-msg { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.pf-msg:empty { display: none; }
.pf-msg.ko { color: var(--red-dark); }
.pf-msg.ok { color: var(--teal-ink); }

/* Packs */
.pf-packs { display: grid; gap: 16px; }
@media (min-width: 700px) { .pf-packs { grid-template-columns: 1fr 1fr; } }
.pf-pack { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.pf-pack.actif { border-color: #F3D4D2; background: linear-gradient(180deg, var(--blush), var(--white) 70%); }
:root[data-theme="nuit"] .pf-pack.actif { border-color: #5A2B35; }
.pf-pack-tete { display: flex; align-items: center; gap: 12px; }
.pf-pack-tete h3 { font-size: var(--fs-base); margin: 0; }
.pf-pack-tete .pf-puce { margin-left: auto; }
.pf-pack p { margin: 0; font-size: var(--fs-sm); color: var(--ink); }
.pf-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: var(--fs-sm); margin: 0; }
.pf-dates dt { font-size: var(--fs-xs); color: var(--muted); }
.pf-dates dd { margin: 0; font-weight: 700; color: var(--navy-dark); }
.pf-temps { height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.pf-temps i { display: block; height: 100%; border-radius: inherit; background: var(--red); }
.pf-reste { font-size: var(--fs-xs); color: var(--red-dark); font-weight: 600; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pf-actions .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- le Résumé ---------- */
/* Le pack : les jours restants d'abord, en grand ; la carte prend le rose d'un pack actif. */
.pf-r-pack.actif { border-color: #F3D4D2; background: linear-gradient(180deg, var(--blush), var(--white) 60%); }
:root[data-theme="nuit"] .pf-r-pack.actif { border-color: #5A2B35; }
.pf-rp { display: grid; gap: 8px; }
.pf-rp + .pf-rp { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.pf-rp-tete { display: flex; align-items: flex-start; gap: 12px; }
.pf-rp-tete h3 { font-size: var(--fs-base); margin: 0; min-width: 0; }
.pf-rp-tete h3 small { display: block; margin-top: 2px; font: 500 var(--fs-sm) Inter, sans-serif; color: var(--muted); }
.pf-rp-tete .pf-puce { margin-left: auto; }
.pf-rp > p { margin: 0; font-size: var(--fs-sm); color: var(--ink); }
.pf-rp .pf-note { margin: 0; }
.pf-rp > .pf-jours { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; color: var(--navy-dark); font-size: var(--fs-md); font-weight: 600; }
.pf-jours b { font: 700 clamp(2rem, 1.6rem + 1.5vw, 2.5rem)/1 Sora, Inter, sans-serif; letter-spacing: var(--tracking-display); color: var(--navy-dark); font-variant-numeric: tabular-nums; }
.pf-rp > .pf-rp-date { color: var(--muted); }
.pf-rp .pf-temps { margin-top: 4px; }
.pf-rp .pf-actions { margin-top: 8px; }
/* « Voir le détail… » : le lien qui mène à la partie qui en dit plus. */
.pf-suite { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }

/* Le niveau : une tuile par épreuve ; verte si l'objectif est atteint, rose sinon. */
.pf-r-niveau { container-type: inline-size; }
.pf-niveau + .pf-niveau { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.pf-r-meta { margin: -8px 0 12px; font-size: var(--fs-sm); color: var(--muted); }
.pf-tuiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 480px) { .pf-tuiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
/* Les trois lignes d'une tuile s'alignent sur ses voisines (sous-grille), même quand un nom tient sur deux lignes. */
.pf-tuile { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 4px; align-content: start; min-width: 0; padding: 12px; border-radius: var(--r); background: var(--bg); }
.pf-tuile-nom { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); line-height: 1.3; }
.pf-tuile b { align-self: end; padding-top: 4px; font: 700 var(--fs-lg) Sora, Inter, sans-serif; color: var(--navy-dark); font-variant-numeric: tabular-nums; }
.pf-tuile-etat { display: flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.pf .pf-tuile-etat svg.pf-trait { width: 14px; height: 14px; flex: none; stroke-width: 2.4; }
.pf-tuile.fort { background: var(--teal-light); }
.pf-tuile.fort .pf-tuile-etat { color: var(--teal-ink); }
.pf-tuile.faible { background: var(--blush); }
.pf-tuile.faible .pf-tuile-etat { color: var(--red-ink); }

/* À faire maintenant : un conseil, un bouton. */
.pf-afaire > .pf-afaire-titre { margin-bottom: 4px; font: 700 var(--fs-md) Sora, Inter, sans-serif; color: var(--navy-dark); }
.pf-afaire > p:not(.pf-afaire-titre) { color: var(--ink); }
.pf-afaire .pf-actions { margin-top: 16px; }

/* Résumé de la Prépa */
.pf-faits { display: grid; gap: 12px; margin: 0; }
@media (min-width: 560px) { .pf-faits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-fait { padding: 16px; border-radius: var(--r); background: var(--bg); min-width: 0; }
.pf-fait dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.pf-fait dd { margin: 6px 0 0; font-family: Sora, Inter, sans-serif; font-weight: 700; color: var(--navy-dark); font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.pf-fait dd small { display: block; margin-top: 4px; font-family: Inter, sans-serif; font-weight: 500; font-size: var(--fs-xs); color: var(--muted); }
.pf-liens { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }

/* Résultats */
.pf-onglets { display: inline-flex; max-width: 100%; padding: 4px; border-radius: var(--r); background: var(--line); gap: 4px; margin-bottom: 16px; }
.pf-onglets button {
  border: 0; border-radius: var(--r-sm); padding: 8px 16px; min-height: 36px; background: none; cursor: pointer;
  font: 600 var(--fs-sm) Sora, Inter, sans-serif; color: var(--muted);
}
.pf-onglets button[aria-selected="true"] { background: var(--white); color: var(--navy-dark); box-shadow: var(--shadow-sm); }
.pf-resume { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; font-size: var(--fs-sm); color: var(--muted); }
.pf-resume b { color: var(--navy-dark); font-variant-numeric: tabular-nums; }
.pf-epreuves { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.pf-ep { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.pf-ep-nom { font-weight: 600; color: var(--navy-dark); font-size: var(--fs-sm); }
.pf-ep-nom small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.pf-ep-note { text-align: right; font-size: var(--fs-sm); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-ep-vide { font-size: var(--fs-xs); color: var(--muted); text-align: right; }
.pf-nclc { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: var(--r-sm); font-size: var(--fs-xs); font-weight: 700; background: var(--line); color: var(--navy-dark); }
.pf-ep.fort .pf-nclc { background: #E7F6EE; color: var(--teal-ink); }
.pf-ep.faible .pf-nclc { background: var(--blush); color: var(--red-dark); }
:root[data-theme="nuit"] .pf-ep.fort .pf-nclc { background: #143326; color: #8FE0B4; }
.pf-barre { grid-column: 1 / -1; position: relative; height: 10px; border-radius: var(--r-pill); background: var(--line); }
.pf-barre i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--navy-dark); }
.pf-ep.fort .pf-barre i { background: var(--teal); }
.pf-ep.faible .pf-barre i { background: var(--red); }
.pf-barre em { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--navy-dark); border-radius: 1px; }
.pf-legende { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--fs-xs); color: var(--muted); }
.pf-legende i { flex: none; width: 2px; height: 14px; background: var(--navy-dark); }

/* La courbe semaine par semaine (palette vérifiée : clair et sombre, daltonismes) */
.pf-courbe { --c1: var(--red-fond); --c2: #2E5AAC; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
:root[data-theme="nuit"] .pf-courbe { --c1: #E8433A; --c2: #5B8DEB; }
.pf-courbe h3 { font-size: var(--fs-sm); margin: 0 0 4px; }
.pf-courbe > p { margin: 0 0 12px; font-size: var(--fs-xs); color: var(--muted); }
.pf-cles { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; padding: 0; list-style: none; font-size: var(--fs-xs); color: var(--ink); }
.pf-cles li { display: inline-flex; align-items: center; gap: 6px; }
.pf-cles svg { width: 22px; height: 10px; }
.pf-trace { position: relative; }
.pf-trace svg { display: block; width: 100%; height: auto; overflow: visible; }
.pf-trace .grille line { stroke: var(--line); stroke-width: 1; }
.pf-trace .axe text { fill: var(--muted); font: 500 11px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.pf-trace .serie { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-trace .point { stroke: var(--white); stroke-width: 2; }
.pf-trace .curseur { stroke: var(--line-strong); stroke-width: 1; }
.pf-trace .etiq { font: 600 11px Inter, sans-serif; fill: var(--ink); font-variant-numeric: tabular-nums; }
.pf-bulle {
  position: absolute; z-index: 2; pointer-events: none; min-width: 132px; padding: 8px 12px;
  border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm); font-size: var(--fs-xs); color: var(--ink); line-height: 1.5;
  transform: translate(-50%, calc(-100% - 12px));
}
.pf-bulle b { color: var(--navy-dark); font-variant-numeric: tabular-nums; }
.pf-bulle i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }
.pf-chiffres { margin-top: 8px; font-size: var(--fs-xs); }
.pf-chiffres summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.pf-chiffres table { width: 100%; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pf-chiffres th, .pf-chiffres td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.pf-chiffres th:first-child, .pf-chiffres td:first-child { text-align: left; }

/* Forts / faibles */
.pf-deux { display: grid; gap: 16px; }
@media (min-width: 700px) { .pf-deux { grid-template-columns: 1fr 1fr; } }
.pf-deux h3 { font-size: var(--fs-sm); margin: 0 0 12px; }
.pf-deux ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pf-deux li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: var(--fs-sm); color: var(--ink); }
.pf-deux li svg { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pf-fort svg { stroke: var(--teal); }
.pf-faible svg { stroke: var(--red-dark); }
.pf-deux li b { color: var(--navy-dark); }
.pf-deux .pf-rien { display: block; font-size: var(--fs-sm); color: var(--muted); }

/* Conseils */
.pf-conseils { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: c; }
.pf-conseils li {
  counter-increment: c; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px;
  padding: 16px; border-radius: var(--r); background: var(--blush);
}
.pf-conseils li::before {
  content: counter(c); display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--red-fond); color: var(--sur-couleur);
  font: 700 var(--fs-sm) Sora, Inter, sans-serif;
}
.pf-conseils b { display: block; color: var(--navy-dark); margin-bottom: 4px; }
.pf-conseils p { margin: 0 0 8px; font-size: var(--fs-sm); color: var(--ink); }

/* Outils enregistrés */
.pf-outils { list-style: none; margin: 0; padding: 0; display: grid; }
.pf-outil { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pf-outil:first-child { border-top: 0; padding-top: 0; }
.pf-outil .pf-ico { width: 40px; height: 40px; }
.pf-outil b { display: block; color: var(--navy-dark); font-size: var(--fs-sm); }
.pf-outil small { color: var(--muted); font-size: var(--fs-xs); }

/* Préférences */
.pf-reglage { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.pf-reglage:first-of-type { border-top: 0; padding-top: 0; }
.pf-reglage > span { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.pf-reglage .pf-onglets { margin: 0; justify-self: start; }
.pf-reglage .pf-onglets button[aria-pressed="true"] { background: var(--white); color: var(--navy-dark); box-shadow: var(--shadow-sm); }
.pf-reglage p { margin: 0; font-size: var(--fs-sm); color: var(--ink); }
.pf-donnees .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* Mon dossier (24/10/2026) : les étapes de la procédure, une ligne chacune —
   cercle vert coché si la date est remplie, pointillé sinon ; puis les pièces. */
.pf-etapes { list-style: none; margin: 0; padding: 0; display: grid; }
.pf-etape { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pf-etape:first-child { border-top: 0; padding-top: 0; }
.pf-etape-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; border: 2px dashed var(--line-strong); color: var(--teal-ink);
}
.pf-etape.faite .pf-etape-mark { border: 0; background: var(--teal-light); }
.pf-etape-mark svg, .pf-cats svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pf-etape b { display: block; color: var(--navy-dark); font-size: var(--fs-sm); }
.pf-etape-date { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-etape:not(.faite) .pf-etape-date { color: var(--muted); }
.pf-etape-etat { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.pf-etape-etat.ok { color: var(--teal-ink); }
.pf-etape-etat.ko { color: var(--red-ink); }
.pf-c-pieces .pf-temps { margin-bottom: 4px; }
.pf-cats { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.pf-cats li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink); }
.pf-cats li:first-child { border-top: 0; }
.pf-cats span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pf-cats b { color: var(--navy-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-cats li.complet, .pf-cats li.complet b { color: var(--teal-ink); }
.pf-manque { margin-top: 4px; border-top: 1px solid var(--line); }
.pf-manque summary { cursor: pointer; padding: 12px 0; font-size: var(--fs-sm); font-weight: 600; color: var(--red-dark); }
.pf-manque ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink); }

/* L'attestation : deux jauges tant qu'elle n'est pas débloquée ; ensuite le nom et le bouton. */
.pf-att-jauge { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin-top: 14px; font-size: var(--fs-sm); color: var(--ink); }
.pf-att-jauge b { color: var(--navy-dark); font-variant-numeric: tabular-nums; }
.pf-att-jauge .pf-temps { grid-column: 1 / -1; }
.pf-att-nom { margin: 16px 0 12px; }
.pf-att-nom input { width: 100%; }
.pf-c-attestation .pf-msg { margin-top: 8px; }

@media (max-width: 380px) {
  .pf-onglets button { padding: 8px 12px; }
  .pf-ep-note { white-space: normal; }
}
/* Vérifié le 24/10 : « Voir les chiffres » ouvert faisait 325 px de large dans une
   carte de 238 px (320 px) et 293 px (375 px) — « Compréhension » forçait les
   colonnes et le tableau sortait de la carte. Colonnes fixes, en-têtes qui se coupent. */
@media (max-width: 480px) {
  .pf-chiffres table { table-layout: fixed; }
  .pf-chiffres th, .pf-chiffres td { padding: 6px 4px; }
  .pf-chiffres th { font-size: 11px; line-height: 1.25; vertical-align: bottom; overflow-wrap: anywhere; hyphens: auto; }
  .pf-chiffres th:first-child { width: 30%; hyphens: manual; }
}
/* Téléphone : les gestes de la page se touchent du doigt (44 px, comme l'en-tête).
   Mesuré le 24/10 à 375 px : « Changer » 17 px, crayon 32 px, onglets 36 px, liens 17-23 px. */
@media (max-width: 767px) {
  .pf-lien { display: inline-flex; align-items: center; min-height: 44px; }
  .pf-ligne > .pf-lien { margin-top: 10px; }
  .pf-supprimer { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 0; }
  .pf-liens { gap: 0 20px; margin-top: 8px; }
  .pf-onglets button { min-height: 44px; }
  .pf-chiffres summary { padding-block: 11px; }
}
/* À l'impression : le résumé, les résultats et les packs à la suite, sans les gestes. */
@media print {
  .pf-nav, .pf-cote .pf-sortir, .pf-p-reglages, .pf-actions, .pf-liens, .pf-suite { display: none !important; }
  .pf-panneau[hidden]:not(.pf-p-reglages) { display: grid; }
  .pf-app { display: block; }
}
