/* Liste des personnalités et fiche (maquettes validées le 07/10/2026). Source maintenue directement.
   Lot 3 du chantier UI (4 novembre 2026) : cartes, pastilles, pictogrammes et citations de la bibliothèque
   (components.css), valeurs reprises de tokens.css ; aucune bande de couleur. */
.people-page{display:grid;gap:28px;padding-block:24px 48px}
.people-page h1,.people-page h2,.people-page p{margin:0}
.people-intro{display:grid;gap:12px;max-width:70ch}
.people-intro .eyebrow::before{content:"";width:26px;height:2px;background:var(--color-red-500)}
.people-intro h1{font-family:var(--font-heading);font-weight:650;font-size:var(--text-4xl);letter-spacing:-2px;line-height:1.08}
.people-intro p{font-size:17px;line-height:1.8;color:var(--text-muted)}
.people-intro p b{color:var(--text);font-weight:var(--weight-semibold)}
.people-tools{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center}
/* Recherche : champ de la bibliothèque (bordure, arrondi 12 px, 44 px, anneau de focus). */
.people-search{flex:1 1 260px;display:flex;align-items:center;min-height:44px;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);padding:0 16px}
.people-search input{border:0;outline:0;flex:1;min-width:0;min-height:42px;background:none;font:inherit;font-size:16px;color:var(--text)}
.people-search input::placeholder{color:var(--color-ink-500)}
.people-search:focus-within{outline:3px solid var(--focus);outline-offset:1px;border-color:var(--color-blue-600)}
.people-count{font-size:var(--text-sm);color:var(--text-muted)}
.people-scope{margin:-8px 0 0;font-size:var(--text-sm);color:var(--text-muted);max-width:70ch}
.people-group{display:grid;gap:10px}
.people-group h2,.people-out h2{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-family:var(--font-heading);font-weight:var(--weight-heading);font-size:var(--text-xl);letter-spacing:-.5px}
.people-group>p{color:var(--text-muted);font-size:var(--text-sm);max-width:70ch}
.people-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:10px}
/* Carte de personnalité : carte de la bibliothèque (.ui-card .ui-card-linked) en version compacte, arrondi 12 px. */
.people-card.ui-card{display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:2px;align-content:center;align-items:center;height:100%;padding:12px;border-radius:var(--radius-md);box-shadow:none}
.people-card .people-avatar{grid-row:1 / span 3;align-self:center}
.people-card .ui-card-title{align-self:end;font-size:15px;line-height:1.2;overflow-wrap:anywhere}
.people-card .ui-card-meta,.people-party{align-self:start;font-size:var(--text-xs);line-height:1.3;color:var(--text-muted)}
.people-reason{grid-column:2;margin-top:2px;font-size:var(--text-xs);line-height:1.35;color:var(--text-muted)}
.people-avatar{position:relative;flex:none;width:52px;height:52px;border-radius:50%;overflow:hidden;background:var(--surface-tint);box-shadow:0 0 0 1px var(--border);display:grid;place-items:center;font-family:var(--font-heading);font-weight:var(--weight-heading);font-size:15px;color:var(--color-blue-600)}
.people-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.people-out{border-top:1px solid var(--border);padding-top:14px}
.people-out>summary,.people-sources>summary{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:44px;list-style:none;cursor:pointer;border-radius:var(--radius-sm)}
.people-out>summary::-webkit-details-marker,.people-sources>summary::-webkit-details-marker{display:none}
.people-out>summary:focus-visible,.people-sources>summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.people-out>summary .ui-glyph,.people-sources>summary .ui-glyph{color:var(--text-muted);transition:transform var(--duration-fast) var(--ease)}
.people-out[open]>summary .ui-glyph,.people-sources[open]>summary .ui-glyph{transform:rotate(180deg)}
.people-out .people-grid{margin-top:12px}
.people-empty{color:var(--text-muted)}
.people-sources{border-top:1px solid var(--border);padding-top:6px;font-size:var(--text-sm);color:var(--text-muted)}
.people-sources>summary{font-weight:var(--weight-semibold);font-size:var(--text-sm);color:var(--text)}
.people-sources div{display:grid;gap:8px;padding-top:6px}
.people-sources a{color:var(--link);text-decoration:underline;text-underline-offset:2px}
.people-page [hidden]{display:none!important}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Fiche personnalité V3 */
.profile-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:12px;font-size:var(--text-sm);font-weight:var(--weight-semibold);color:var(--text-muted);text-decoration:none;border-radius:var(--radius-sm)}
.profile-back:hover{color:var(--link-hover)}
.profile-back:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.profile-page{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;max-width:900px;padding-block:12px 56px}
.profile-page h1,.profile-page h2,.profile-page h3,.profile-page p{margin:0}
.profile-hero{display:grid;grid-template-columns:200px 1fr;gap:36px;align-items:start}
.profile-hero .portrait{width:200px;max-width:100%;height:auto;aspect-ratio:5/6;border-radius:var(--radius-md);margin:0;font-size:48px;background:var(--surface-tint);color:var(--color-blue-600);box-shadow:0 0 0 1px var(--border)}
.profile-hero .portrait img{object-fit:cover;object-position:50% 20%;background:var(--surface-tint)}
.profile-hero-body{display:grid;gap:14px;align-content:start}
.profile-party{font-size:15px;font-weight:var(--weight-semibold);color:var(--text-soft)}
.profile-hero h1{font-family:var(--font-heading);font-weight:650;font-size:clamp(34px,5vw,52px);letter-spacing:-2px;line-height:1;color:var(--text)}
.profile-status{display:flex;flex-wrap:wrap;gap:8px;font-size:15px}
.profile-status .ui-badge{min-height:28px;padding:3px 12px;font-size:var(--text-sm)}
/* Sortie de course (DIS-720) : date, source et soutien déclaré, sous le statut ; encadré discret, sans bande. */
.profile-exit{display:grid;gap:6px;max-width:62ch;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-soft);font-size:14.5px;line-height:1.5;color:var(--text)}
.profile-exit-when{color:var(--text-muted)}
.profile-exit a{color:var(--link);text-decoration:underline;text-underline-offset:2px}
.profile-figure{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.profile-figure strong{font-family:var(--font-heading);font-size:30px;font-weight:800;letter-spacing:-.8px;color:var(--text);font-variant-numeric:tabular-nums}
.profile-figure span{color:var(--text-muted);font-size:14.5px}
.profile-bio{max-width:62ch;color:var(--text-soft)}
.profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
/* Partager : même gabarit que le bouton secondaire de la bibliothèque (44 px, arrondi 12 px). */
.profile-actions .share-button{min-height:44px;margin:0;padding:10px 18px;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface);color:var(--text);font-size:15px;align-self:auto}
.profile-actions .share-button:hover{background:var(--surface-soft);border-color:var(--color-ink-500)}
.profile-actions .share-button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.profile-sections{border-top:1px solid var(--border)}
.profile-sec{border-bottom:1px solid var(--border);scroll-margin-top:90px}
.profile-sec>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:4px 16px;padding:22px 2px;border-radius:var(--radius-sm)}
.profile-sec>summary::-webkit-details-marker{display:none}
.profile-sec>summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.profile-sec h2{font-family:var(--font-heading);font-weight:var(--weight-heading);font-size:var(--text-xl);letter-spacing:-.4px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.profile-chev{grid-row:1 / span 2;grid-column:2;align-self:center;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:var(--surface-soft);color:var(--text-soft);transition:transform var(--duration) var(--ease)}
.profile-sec>summary:hover .profile-chev{background:var(--color-ink-100);color:var(--text)}
.profile-sec[open] .profile-chev{transform:rotate(180deg)}
.profile-gist{grid-column:1;color:var(--text-muted);font-size:15px;max-width:66ch}
.profile-gist b{color:var(--text);font-weight:var(--weight-semibold)}
.profile-sec-body{padding:0 2px 26px;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
.profile-stances{list-style:none;margin:0;padding:0;display:grid}
.profile-stances li{display:grid;grid-template-columns:28px 1fr auto;gap:12px;align-items:baseline;padding:12px 0;border-top:1px solid var(--border)}
.profile-stances li:first-child{border-top:0}
/* Pour, contre, ni l'un ni l'autre : pictogramme Tabler dans une pastille neutre (jamais de couleur de jugement). */
.profile-sym{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--color-ink-100);color:var(--text);align-self:start}
.profile-sym .ui-glyph{stroke-width:2.25}
/* Pour en vert, contre en rouge : seul le signe se colore, la pastille reste neutre (décision du propriétaire, 4 novembre 2026). */
.profile-sym.is-for{color:var(--color-success-700)}.profile-sym.is-against{color:var(--color-danger-700)}
.profile-q{font-weight:var(--weight-medium);color:var(--text)}
.profile-old{display:block;margin-top:2px;font-size:13px;font-weight:400;color:var(--color-warning-700)}
.profile-src{font-size:13px;color:var(--text-muted);white-space:nowrap}
.profile-src a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.profile-none,.profile-note{color:var(--text-muted);font-size:14.5px}
.profile-themes{display:flex;flex-wrap:wrap;gap:6px}
.profile-themes button{min-height:40px;border:1px solid var(--border-strong);background:var(--surface);border-radius:var(--radius-pill);padding:6px 14px;font:inherit;font-size:var(--text-sm);font-weight:var(--weight-semibold);color:var(--text-soft);cursor:pointer;transition:background-color var(--duration-fast) var(--ease),border-color var(--duration-fast) var(--ease)}
.profile-themes button:hover{background:var(--surface-soft);color:var(--text)}
.profile-themes button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.profile-themes button small{color:var(--text-muted);font-weight:var(--weight-medium)}
.profile-themes button[aria-selected="true"]{background:var(--surface-tint);border-color:var(--color-blue-600);color:var(--color-blue-800)}
.profile-themes button[aria-selected="true"] small{color:var(--color-blue-800)}
.profile-theme{display:grid;gap:6px}
.profile-theme h3{font-family:var(--font-heading);font-weight:var(--weight-heading);font-size:17px}
.profile-props{list-style:none;margin:0;padding:0;display:grid}
.profile-props li{padding:12px 0;border-top:1px solid var(--border);display:grid;gap:6px}
.profile-props li:first-child{border-top:0}
.profile-props small{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;color:var(--text-muted);font-size:13px}
.profile-page .source-link{display:inline;margin:0;font-size:inherit;line-height:inherit}
.profile-page .source-link a{color:var(--link);text-decoration:underline;text-underline-offset:2px}
.profile-props small .source-link a,.profile-timeline .source-link a{color:inherit}
.profile-timeline{list-style:none;margin:0;padding:0;display:grid}
.profile-timeline li{display:grid;grid-template-columns:110px 1fr;gap:16px;padding:10px 0;border-top:1px solid var(--border)}
.profile-timeline li:first-child{border-top:0}
.profile-timeline li>span:first-child{color:var(--text-muted);font-weight:var(--weight-semibold);font-size:14.5px;font-variant-numeric:tabular-nums}
.profile-links{margin:0;padding-left:18px;display:grid;gap:4px}
#sources .profile-sec-body{font-size:var(--text-sm);color:var(--text-muted)}
#sources b{color:var(--text)}
/* Citations (sourceQuote) dans la fiche : version compacte, fond neutre (le fond « papier » reste réservé aux encadrés
   éditoriaux, décision du 4 novembre 2026). */
.profile-page .ui-quote{padding:14px 16px;background:var(--surface-soft);border-color:var(--border)}
.profile-page .ui-quote blockquote p{font-size:15.5px;line-height:1.55}
.profile-page .ui-quote figcaption{font-size:13px;margin-top:8px}
/* Avec le script : un thème de propositions à la fois. */
.profile-js .profile-theme:not(.is-active){display:none}
.profile-js .profile-theme h3{display:none}
@media (max-width:640px){
  /* Photo à côté du nom, puis chiffre, présentation et boutons sur toute la largeur. */
  .profile-hero{grid-template-columns:96px 1fr;gap:6px 16px;align-items:center}
  .profile-hero-body{display:contents}
  .profile-hero .portrait{width:96px;grid-row:1 / span 3;align-self:start;font-size:32px}
  .profile-party,.profile-hero h1,.profile-status{grid-column:2}
  .profile-party{align-self:end;font-size:12px}
  .profile-status{align-self:start}
  .profile-hero h1{font-size:28px;letter-spacing:-1px}
  .profile-figure,.profile-bio,.profile-actions,.profile-exit{grid-column:1 / -1}
  .profile-exit{margin-top:10px}
  .profile-figure{margin-top:12px}
  .profile-figure strong{font-size:24px}
  .profile-bio{margin-top:6px}
  .profile-actions{margin-top:10px}
  .profile-stances li{grid-template-columns:28px 1fr}
  .profile-src{grid-column:2;white-space:normal}
  .profile-timeline li{grid-template-columns:1fr;gap:0}
  .profile-status .ui-badge{white-space:normal}
  /* Légende des citations : une information par ligne, sans séparateur orphelin en début de ligne. */
  .profile-page .ui-quote figcaption{display:grid;gap:2px}
  .profile-page .ui-quote-sep{display:none}
}
/* Tableau « Dans les sondages » de la fiche : aspect du tableau de la bibliothèque (cadre, en-tête, lignes). */
.profile-page .polls-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}
.profile-page .polls-table caption{padding:14px 16px 10px;font-weight:var(--weight-semibold);color:var(--text)}
.profile-page .polls-table th,.profile-page .polls-table td{padding:11px 14px;border-bottom:0;border-top:1px solid var(--color-ink-100);vertical-align:top}
.profile-page .polls-table thead{background:var(--surface-soft)}
.profile-page .polls-table thead th{font-size:13.5px;color:var(--text-muted);white-space:nowrap}
.profile-page .polls-table td:last-child{font-variant-numeric:tabular-nums}
.profile-page .polls-table details summary{cursor:pointer;color:var(--link);font-weight:var(--weight-medium)}
.profile-page .polls-table details summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
/* Bloc sondages de l'ancienne fiche, repris dans sa section : titre déjà porté par la section. */
.profile-page .candidate-polls{margin:0;padding:0;border:0;display:grid;gap:10px;min-width:0}
.profile-page .candidate-polls>h2{display:none}
.profile-page .candidate-polls>p{margin:0;font-size:var(--text-sm);line-height:1.55;color:var(--text-muted)}
.profile-page .data-note{margin:0;border-radius:var(--radius-md);background:var(--surface-soft);color:var(--text-soft)}
