/* La toise des célébrités : un grand miroir de dressing (arche) sur l'axe,
   la toise gravée dans le tain, des capsules à l'échelle. Vous au centre,
   les autres de part et d'autre. Jetons du thème seulement ; rayons par --rad.
   Contrastes : encre #1F2327 sur nacre 15,1:1, gris #4F5459 sur nacre 7,4:1,
   rose foncé #9A5446 sur nacre 5,4:1 (liens, écarts) ; le rose poudre ne
   sert qu'au remplissage de votre capsule, jamais au texte. */

.tz-ouv { position: relative; padding: calc(var(--cadre-h) + clamp(1rem, 3svh, 2rem)) var(--gout) var(--sec); text-align: center; overflow: clip; }
.tz-ouv::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(44% 50% at 50% 52%, var(--blanc) 0%, rgb(251 250 248 / 0.8) 42%, rgb(244 243 241 / 0) 74%); }
.tz-t { margin: 0.8rem auto 0; max-width: 24ch; font-family: var(--f-titre); font-weight: 300; font-size: var(--t-xl); line-height: 1.04; letter-spacing: -0.02em; }
.tz-t em { font-style: italic; }
.tz-chapo { margin: 0.9rem auto 0; max-width: 34em; color: var(--gris); }

/* ---------- La scène : réglage | miroir | écarts ---------- */
.tz-scene { margin-top: clamp(1.8rem, 4svh, 2.8rem); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: clamp(1.5rem, 4vw, 4rem); }
.tz-aile { display: grid; gap: 1.2rem; max-width: 16rem; }
.tz-aile--g { justify-self: end; justify-items: end; text-align: right; }
.tz-aile--d { justify-self: start; justify-items: start; text-align: left; }
.tz-petit { font-size: var(--t-xs); color: var(--gris); font-weight: 400; }
.tz-repere { font-size: var(--t-xs); color: var(--gris); line-height: 1.5; }

.tz-champ { display: grid; gap: 0.35rem; justify-items: inherit; }
.tz-champ label { font-size: var(--t-xs); color: var(--gris); }
.tz-reglage { display: flex; align-items: center; gap: 0.5rem; }
.tz-reglage input {
  --rad: var(--r-vif);
  width: 5.6rem; padding: 0.2rem 0; background: transparent; border: 0; border-bottom: 1px solid var(--encre); border-radius: var(--rad);
  font-family: var(--f-titre); font-weight: 300; font-size: var(--t-l); line-height: 1.1; text-align: center; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.tz-reglage input::-webkit-outer-spin-button, .tz-reglage input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tz-reglage input:focus { outline: none; border-bottom-width: 2px; }
.tz-reglage input:focus-visible { outline: 2px solid var(--encre); outline-offset: 4px; }
.tz-pas {
  --rad: var(--r-rond);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--rad);
  border: 1px solid var(--argent-f); background: var(--nacre); font-family: var(--f-titre); font-size: var(--t-m); line-height: 1;
  transition: border-color 0.3s, background-color 0.3s;
}
.tz-pas[hidden] { display: none; }
@media (hover: hover) { .tz-pas:hover { border-color: var(--encre); } }
.tz-pas:active { background: var(--tablette); }

.tz-ecarts { display: grid; gap: 0.55rem; font-size: var(--t-s); line-height: 1.4; }
.tz-ecarts b { font-weight: 500; }

/* Le miroir de dressing : arche, biseau argenté, tain nacré */
.tz-glace {
  --rad: var(--r-arche);
  --w: min(40rem, 50vw, calc((100svh - 22rem) * 1.34));
  position: relative; width: var(--w); min-width: 30rem; aspect-ratio: 4 / 3; padding: clamp(6px, 0.5vw, 9px);
  border-radius: var(--rad); background: var(--biseau); box-shadow: var(--ombre-m);
}
.tz-glace__tain {
  --rad: var(--r-arche);
  position: absolute; inset: clamp(6px, 0.5vw, 9px); border-radius: var(--rad); overflow: hidden; container-type: inline-size;
  background: radial-gradient(70% 60% at 38% 24%, var(--blanc) 0%, var(--nacre) 40%, var(--tablette) 100%);
  box-shadow: inset 0 0 0 1px rgb(31 35 39 / 0.16), inset 0 4px 18px rgb(31 35 39 / 0.14);
}
.tz-glace__reflet { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(48% 34% at 28% 12%, rgb(255 255 255 / 0.5), transparent 64%); }
.tz-vous {
  position: absolute; left: 0; right: 0; top: 8%; z-index: 3;
  font-family: var(--f-titre); font-weight: 300; font-size: clamp(2.4rem, 11cqi, 4.2rem); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.tz-vous small { font-size: 0.4em; letter-spacing: 0; color: var(--gris); }
.tz-proche { position: absolute; left: 6%; right: 6%; top: calc(8% + clamp(2.6rem, 12cqi, 4.6rem)); z-index: 3; font-family: var(--f-titre); font-style: italic; font-weight: 300; font-size: var(--t-ms); line-height: 1.25; color: var(--rose-f); }

/* La zone graduée : de 0 au haut de la toise, à l'échelle */
.tz-zone { position: absolute; left: 2.6rem; right: 2.6rem; bottom: 3.6rem; height: 56%; z-index: 2; border-bottom: 1px solid var(--argent-f); }
.tz-grad__l { position: absolute; left: -2.4rem; right: -2.4rem; bottom: calc(var(--n) / var(--haut) * 100%); height: 0; border-top: 1px solid rgb(31 35 39 / 0.07); }
.tz-grad__l--fin { border-top-color: rgb(31 35 39 / 0.045); }
.tz-grad__l span { position: absolute; top: 0; translate: 0 -50%; font-size: 0.6875rem; line-height: 1; color: var(--gris); font-variant-numeric: tabular-nums; }
.tz-grad__l span:first-child { left: 0; }
.tz-grad__l span:last-child { right: 0; }
.tz-insee { position: absolute; left: -2.4rem; right: -2.4rem; bottom: calc(var(--n) / var(--haut) * 100%); height: 0; border-top: 1px dashed var(--rose-f); opacity: 0.75; pointer-events: none; }

.tz-rang { position: absolute; inset: 0; display: flex; justify-content: center; align-items: stretch; gap: clamp(0.15rem, 0.8cqi, 0.6rem); }
.tz-pers { position: relative; flex: 0 1 4.6rem; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.tz-caps {
  --rad: var(--r-pilule);
  display: block; width: clamp(1.4rem, 6cqi, 2.6rem); height: calc(var(--cm) / var(--haut) * 100%);
  border-radius: var(--rad); background: var(--biseau);
  box-shadow: inset 0 0 0 1px rgb(31 35 39 / 0.14), inset 0 -10px 18px -12px rgb(31 35 39 / 0.3), 0 10px 18px -14px rgb(31 35 39 / 0.45);
  transition: height 0.9s var(--ease);
}
.tz-pers--vous .tz-caps { background: linear-gradient(160deg, var(--rose-pale) 0%, var(--rose) 70%); box-shadow: inset 0 0 0 1.5px var(--rose-f), 0 10px 18px -14px rgb(31 35 39 / 0.45); }
.tz-haut { margin-bottom: 0.3rem; font-size: 0.6875rem; line-height: 1; color: var(--gris); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tz-pers--vous .tz-haut { color: var(--encre); font-weight: 500; }
.tz-nom { position: absolute; top: calc(100% + 0.45rem); left: 50%; translate: -50% 0; width: max-content; max-width: 5.4rem; display: grid; gap: 0.1rem; font-size: var(--t-xs); line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.tz-pers--vous .tz-nom { font-family: var(--f-titre); font-style: italic; font-size: var(--t-s); }
.tz-ecart { font-size: 0.6875rem; color: var(--rose-f); font-variant-numeric: tabular-nums; }
.tz-pers.est-neuf .tz-caps { animation: tz-pousse 0.9s var(--ease) both; }
@keyframes tz-pousse { from { height: 0; } }

/* Le choix des personnes */
.tz-choix { grid-column: 1 / -1; margin: clamp(2.2rem, 4svh, 3rem) auto 0; max-width: 60rem; border: 0; padding: 0; min-width: 0; display: grid; justify-items: center; gap: 1.1rem; }
.tz-choix__leg { float: left; width: 100%; font-family: var(--f-titre); font-weight: 300; font-size: var(--t-m); text-align: center; }
.tz-choix__leg span { display: block; margin-top: 0.3rem; font-family: var(--f-texte); font-size: var(--t-xs); color: var(--gris); }
.tz-filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.tz-filtres[hidden] { display: none; }
.tz-filtre { --rad: var(--r-pilule); min-height: 2.6rem; padding: 0.45rem 1rem; font-size: var(--t-s); border: 1px solid var(--argent-f); border-radius: var(--rad); }
.tz-filtre[aria-pressed="true"] { background: var(--encre); color: var(--nacre); border-color: var(--encre); }
.tz-filtre__n { font-size: var(--t-xs); margin-left: 0.2rem; }
.tz-puces { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.tz-puce { position: relative; display: inline-flex; }
.tz-puce[hidden] { display: none; }
.tz-puce input { --rad: var(--r-pilule); position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; border-radius: var(--rad); cursor: pointer; }
.tz-puce input:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.tz-puce label {
  --rad: var(--r-pilule);
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; padding: 0.35rem 0.95rem;
  border-radius: var(--rad); box-shadow: inset 0 0 0 1px var(--argent); background: var(--nacre); font-size: var(--t-s); cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.tz-puce label span { font-size: var(--t-xs); color: var(--gris); font-variant-numeric: tabular-nums; }
.tz-puce input:checked + label { background: var(--encre); color: var(--nacre); box-shadow: none; }
.tz-puce input:checked + label span { color: var(--argent); }
@media (hover: hover) { .tz-puce:hover input:not(:checked) + label { box-shadow: inset 0 0 0 1px var(--encre); } }
.tz-vide { max-width: 34em; font-size: var(--t-s); color: var(--gris); }
.tz-vide[hidden], .tz-envoi[hidden] { display: none; }

/* ---------- La base : trois colonnes en miroir autour de l'axe ---------- */
.tz-base { padding: var(--sec) var(--gout); background: var(--nacre); border-block: 1px solid var(--filet); }
.tz-famille { margin: clamp(2.4rem, 4.5vw, 3.4rem) auto 0; max-width: 46rem; }
.tz-famille__t { font-family: var(--f-titre); font-style: italic; font-weight: 300; font-size: var(--t-m); text-align: center; }
.tz-liste { margin-top: 1rem; }
.tz-ligne { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1fr); align-items: baseline; column-gap: 1.2rem; padding-block: 0.7rem; border-bottom: 1px solid var(--filet); }
.tz-ligne__nom { text-align: right; }
.tz-ligne__cm { text-align: center; font-family: var(--f-titre); font-size: var(--t-ms); font-variant-numeric: tabular-nums; }
.tz-ligne__src { text-align: left; font-size: var(--t-xs); color: var(--gris); }

/* ---------- Hors de la toise : un cadre ovale ---------- */
.tz-hors { padding: var(--sec) var(--gout); }
.tz-hors__cadre {
  --rad: var(--r-pilule);
  margin-inline: auto; width: min(44rem, 100%); padding: clamp(2.2rem, 4vw, 3.2rem) clamp(1.6rem, 5vw, 4rem);
  border: 1px solid var(--argent); border-radius: var(--rad); background: radial-gradient(70% 80% at 50% 30%, var(--blanc), var(--nacre));
  box-shadow: 0 0 0 8px var(--perle), 0 0 0 9px rgb(200 204 209 / 0.6); text-align: center; display: grid; justify-items: center; gap: 1rem;
}
.tz-hors__t { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-l); line-height: 1.1; }
.tz-hors__cadre > p { max-width: 32em; color: var(--gris); font-size: var(--t-s); }
.tz-hors__noms { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; font-family: var(--f-titre); font-size: var(--t-ms); }

/* ---------- Ce que valent ces chiffres : deux miroirs ronds en symétrie ---------- */
.tz-vaut { padding: var(--sec) var(--gout); background: var(--nacre); border-block: 1px solid var(--filet); }
.tz-vaut__paire { margin: clamp(2.5rem, 4.5vw, 3.5rem) auto 0; max-width: 40rem; display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); column-gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.tz-vaut__axe { align-self: stretch; background: linear-gradient(to bottom, transparent, var(--argent) 15%, var(--argent) 85%, transparent); }
.tz-moy { display: grid; justify-items: center; gap: 1.1rem; text-align: center; }
.tz-moy__miroir {
  --rad: var(--r-rond);
  display: grid; place-content: center; justify-items: center; width: clamp(8.5rem, 18vw, 12rem); aspect-ratio: 1; border-radius: var(--rad);
  background: var(--verre); box-shadow: inset 0 0 0 1px rgb(31 35 39 / 0.14), 0 0 0 7px var(--blanc), 0 0 0 8px var(--argent), 0 26px 44px -32px rgb(31 35 39 / 0.45);
}
.tz-moy__n { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-l); line-height: 1; font-variant-numeric: tabular-nums; }
.tz-moy__u { font-size: var(--t-xs); color: var(--gris); }
.tz-moy__l { font-size: var(--t-s); color: var(--gris); }
.tz-vaut__texte { margin: clamp(2rem, 4vw, 3rem) auto 0; max-width: var(--lecture); display: grid; gap: 1rem; text-align: center; }

/* ---------- Sources ---------- */
.tz-sources { padding: var(--sec) var(--gout); display: grid; justify-items: center; text-align: center; }
.tz-sources__t { font-family: var(--f-titre); font-weight: 300; font-size: var(--t-l); }
.tz-sources__liste { margin-top: 1.4rem; max-width: 46rem; display: grid; gap: 0.8rem; font-size: var(--t-s); }
.tz-sources__liste b { font-weight: 500; }
.tz-sources__liste span { color: var(--gris); }
.tz-sources__note { display: block; font-size: var(--t-xs); }
.tz-sources__maj { margin-top: 1.4rem; font-size: var(--t-xs); color: var(--gris); }

/* ---------- Tablette et téléphone : le miroir d'abord, les ailes dessous ---------- */
@media (max-width: 1023px) {
  .tz-scene { grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; justify-items: center; }
  .tz-glace { --w: min(36rem, 100%); min-width: 0; aspect-ratio: 20 / 19; grid-row: 2; }
  .tz-aile { max-width: 30rem; }
  .tz-aile--g, .tz-aile--d { justify-self: center; justify-items: center; text-align: center; }
  .tz-aile--g { grid-row: 1; }
  .tz-aile--d { grid-row: 3; }
  .tz-ecarts { justify-items: center; }
}
@media (max-width: 599px) {
  .tz-glace { aspect-ratio: 10 / 13; }
  .tz-zone { left: 1.9rem; right: 1.9rem; bottom: 3.4rem; height: 62%; }
  .tz-grad__l { left: -1.75rem; right: -1.75rem; }
  .tz-grad__l--fin span { display: none; }
  .tz-insee { left: -1.75rem; right: -1.75rem; }
  .tz-proche { left: 10%; right: 10%; font-size: var(--t-s); }
  .tz-nom { max-width: 4.4rem; }
  .tz-ligne { grid-template-columns: minmax(0, 1fr) 4.2rem minmax(0, 1fr); column-gap: 0.7rem; }
  .tz-vaut__paire { column-gap: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tz-caps, .tz-puce label, .tz-pas { transition: none; }
  .tz-pers.est-neuf .tz-caps { animation: none; }
}

/* Les articles du magazine : une liste de titres sur l'axe, sans photo (les images
   des articles ne montrent pas les personnes dont on donne la taille). */
.tz-lire-sec { padding: var(--sec) var(--gout); background: var(--nacre); border-block: 1px solid var(--filet); }
.tz-lire { margin: clamp(2rem, 4vw, 3rem) auto 0; max-width: 40rem; display: grid; justify-items: center; gap: 1.1rem; text-align: center; }
.tz-lire__lien { font-family: var(--f-titre); font-size: var(--t-m); line-height: 1.25; background: linear-gradient(currentColor 0 0) center bottom / 0 1px no-repeat; padding-bottom: 0.15rem; transition: background-size 0.45s var(--ease); }
.tz-lire__lien .fleche { display: inline-block; color: var(--rose-f); transition: translate 0.4s var(--ease); }
@media (hover: hover) { .tz-lire__lien:hover { background-size: 100% 1px; } .tz-lire__lien:hover .fleche { translate: 0.3rem 0; } }
.tz-lire__lien:focus-visible { background-size: 100% 1px; }
@media (max-width: 479px) { .tz-lire__lien { font-size: var(--t-corps); } }
@media (prefers-reduced-motion: reduce) { .tz-lire__lien, .tz-lire__lien .fleche { transition: none; } }
