/* V170 — retouches communes (chargées après les autres feuilles).
   1. Frises des annexes (Fomum, Ellel, Hopesland) : deux lignes régulières
      au lieu d'une grille à 8 colonnes ; un fil par ligne ; mots coupés.
   2. Titres des jalons de la frise passés de h4 à h3 : mêmes styles.
   3. Contraste des petites étiquettes porté au seuil WCAG AA (4,5:1). */

/* 1. Frises des annexes */
.ztf-event b,.ztf-event p{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word}
.ztf-event time{white-space:nowrap}
@media (min-width:761px){
  .ztf-timeline{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:10px;row-gap:40px}
  .ztf-timeline:has(> .ztf-event:nth-child(9)){grid-template-columns:repeat(5,minmax(0,1fr))}
  .ztf-timeline::before{display:none}
  .ztf-event::before{z-index:2}
  .ztf-event::after{content:"";position:absolute;z-index:1;top:-20px;left:-1px;right:-11px;height:4px;border-radius:2px;background:var(--forest)}
  .ztf-event b{font-size:clamp(11px,1.15vw,14px)}
  .ztf-event p{font-size:clamp(10px,1.05vw,13px)}
  .ztf-timeline > .ztf-event:nth-child(1)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--forest2) 0%,var(--forest)),color-mix(in srgb,var(--forest2) 25%,var(--forest)))}
  .ztf-timeline > .ztf-event:nth-child(2)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--forest2) 25%,var(--forest)),color-mix(in srgb,var(--forest2) 50%,var(--forest)))}
  .ztf-timeline > .ztf-event:nth-child(3)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--forest2) 50%,var(--forest)),color-mix(in srgb,var(--forest2) 75%,var(--forest)))}
  .ztf-timeline > .ztf-event:nth-child(4)::after{right:-1px;background:linear-gradient(90deg,color-mix(in srgb,var(--forest2) 75%,var(--forest)),color-mix(in srgb,var(--forest2) 100%,var(--forest)))}
  .ztf-timeline > .ztf-event:nth-child(5)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--wine) 0%,var(--forest2)),color-mix(in srgb,var(--wine) 25%,var(--forest2)))}
  .ztf-timeline > .ztf-event:nth-child(6)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--wine) 25%,var(--forest2)),color-mix(in srgb,var(--wine) 50%,var(--forest2)))}
  .ztf-timeline > .ztf-event:nth-child(7)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--wine) 50%,var(--forest2)),color-mix(in srgb,var(--wine) 75%,var(--forest2)))}
  .ztf-timeline > .ztf-event:nth-child(8)::after{right:-1px;background:linear-gradient(90deg,color-mix(in srgb,var(--wine) 75%,var(--forest2)),color-mix(in srgb,var(--wine) 100%,var(--forest2)))}
  .ztf-timeline:has(> .ztf-event:nth-child(9)) > .ztf-event:nth-child(1)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--forest2) 0%,var(--forest)),color-mix(in srgb,var(--forest2) 20%,var(--forest)))}
  .ztf-timeline:has(> .ztf-event:nth-child(9)) > .ztf-event:nth-child(2)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--forest2) 20%,var(--forest)),color-mix(in srgb,var(--forest2) 40%,var(--forest)))}
  .ztf-timeline:has(> .ztf-event:nth-child(9)) > .ztf-event:nth-child(3)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--forest2) 40%,var(--forest)),color-mix(in srgb,var(--forest2) 60%,var(--forest)))}
  .ztf-timeline:has(> .ztf-event:nth-child(9)) > .ztf-event:nth-child(4)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--forest2) 60%,var(--forest)),color-mix(in srgb,var(--forest2) 80%,var(--forest)))}
  .ztf-timeline:has(> .ztf-event:nth-child(9)) > .ztf-event:nth-child(5)::after{right:-1px;background:linear-gradient(90deg,color-mix(in srgb,var(--forest2) 80%,var(--forest)),color-mix(in srgb,var(--forest2) 100%,var(--forest)))}
  .ztf-timeline:has(> .ztf-event:nth-child(9)) > .ztf-event:nth-child(6)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--wine) 0%,var(--forest2)),color-mix(in srgb,var(--wine) 20%,var(--forest2)))}
  .ztf-timeline:has(> .ztf-event:nth-child(9)) > .ztf-event:nth-child(7)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--wine) 20%,var(--forest2)),color-mix(in srgb,var(--wine) 40%,var(--forest2)))}
  .ztf-timeline:has(> .ztf-event:nth-child(9)) > .ztf-event:nth-child(8)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--wine) 40%,var(--forest2)),color-mix(in srgb,var(--wine) 60%,var(--forest2)))}
  .ztf-timeline:has(> .ztf-event:nth-child(9)) > .ztf-event:nth-child(9)::after{right:-11px;background:linear-gradient(90deg,color-mix(in srgb,var(--wine) 60%,var(--forest2)),color-mix(in srgb,var(--wine) 80%,var(--forest2)))}
  .ztf-timeline:has(> .ztf-event:nth-child(9)) > .ztf-event:nth-child(10)::after{right:-1px;background:linear-gradient(90deg,color-mix(in srgb,var(--wine) 80%,var(--forest2)),color-mix(in srgb,var(--wine) 100%,var(--forest2)))}
}
@media print{
  .ztf-timeline{grid-template-columns:repeat(4,minmax(0,1fr)) !important;row-gap:8px !important}
  .ztf-timeline:has(> .ztf-event:nth-child(9)){grid-template-columns:repeat(5,minmax(0,1fr)) !important}
  .ztf-event::after{display:none !important}
}

/* 2. Jalons de la frise : h3 au lieu de h4, rendu identique */
.v118-frise .fr-texte h3{margin:0 0 5px;color:var(--c);font-size:21.5px !important;line-height:1.2;letter-spacing:-.005em !important;text-wrap:balance}
.v118-frise .fr-texte h3 .fr-fam{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media (max-width:860px){.v118-frise .fr-texte h3{font-size:18px !important}}
@media (max-width:560px){.v118-frise .fr-texte h3{font-size:16.5px !important}}

/* 3. Contraste */
.v140-medailles .md-bandeau,.v140-medailles .md-pied,.v140-medailles .md-meta .md-lab{color:#776f62}
.v140-medailles .md-bandeau span:first-child,.v140-medailles .md-lab,.v140-medailles .md-pied span:last-child{color:#876a3b}
.v140-medailles .md-meta .md-lab{color:#776f62}
.v145-diptyque .dp-velin .dp-cap{color:#896c3c}
.v145-diptyque .dp-fin{color:#697282}
.pieges-pli > summary .pieges-pli-action{background:#92701f}
.pieges-pli > summary:hover .pieges-pli-action{background:#7d5f19}
.v48-note{color:#797468}
.poster-head>div>span{color:#976c20}
.v88-brand{color:#946511}
.v103-note-lab,.v103-note-lab::before,.v103-range,.v49-mandat-kicker,.v52-fig-verset cite b,.v52-fig-verset cite button.v97-vref{color:#926e1e}
.v160-annexes-intro > p{color:#d12222}
.ep-table th[scope="row"] a{color:color-mix(in srgb,var(--famille) 88%,#000)}

/* V174 — audit V173, étape 2.
   4. Titres des jalons de la frise sous 861 px (18 et 16,5 px en gras : ce n'est plus du « grand texte ») :
      couleur de famille assombrie de 15 % pour atteindre 4,5:1 ; fils, pastilles et grands titres inchangés.
   5. Commandes de l'animation des jalons : retour à la ligne sur très petit écran (320 px).
   6. Bulle de verset : bouton « Fermer » et focus visible. */
@media (max-width:860px){.v118-frise .fr-texte h3{color:color-mix(in srgb,var(--c) 85%,#000)}}
.v108-ctrl{flex-wrap:wrap}
.bulle-verset .bv-pied{flex-wrap:wrap}
.bulle-verset .bv-fermer{margin-left:auto;padding:4px 12px;border:1px solid #cfc5b3;border-radius:999px;background:#fffdf8;color:#3b342b;font:700 12px/1.3 Arial,Helvetica,sans-serif;cursor:pointer}
.bulle-verset .bv-fermer:hover,.bulle-verset .bv-fermer:focus-visible{border-color:#926e1e;outline:2px solid #926e1e;outline-offset:2px}
.bulle-verset:focus{outline:none}
.bulle-verset:focus-visible{outline:3px solid #926e1e;outline-offset:3px}

/* V175 — repère « hors du tronc commun » (Témoins de Jéhovah) */
.fr-lane.fr-hors-fil{background:repeating-linear-gradient(to bottom,var(--c) 0 5px,transparent 5px 10px)}
.fr-hors .fr-date{color:#6f6961;font-size:15px}
.fr-fleche{font-weight:400}
.fr-hors .fr-dot{background:#fff;border:2px solid #9a948a;box-shadow:0 0 0 2px #fff}
.fr-hors .fr-lien{background:repeating-linear-gradient(to right,#c9c4bb 0 4px,transparent 4px 8px)}
.fr-sortie{position:absolute;left:calc(6px + 6 * var(--pitch));top:var(--dotY);width:26px;height:1.5px;background:repeating-linear-gradient(to right,#9a948a 0 4px,transparent 4px 7px)}
.fr-sortie::after{content:"";position:absolute;right:-2px;top:-3.5px;border:4px solid transparent;border-left:6px solid #9a948a}
.fr-hors-boite{border:1.5px dashed #b9b2a6;border-radius:10px;padding:10px 14px 11px;background:#faf7f1;max-width:62ch}
.fr-hors-pastille{display:inline-block;margin:0 0 6px;font:700 11px/1 Arial,Helvetica,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#5f5a52;background:#ece6db;border-radius:99px;padding:4px 9px}
.fr-hors-boite h3{margin:2px 0 4px;color:#5f5a52}
.fr-hors-boite p{color:#57524b}
.fr-hors-renvoi{margin:6px 0 0}
.fr-hors-renvoi a{font:600 14px/1.3 Arial,Helvetica,sans-serif;color:#7a4f00;text-decoration:underline;text-underline-offset:3px}
.fr-hors-renvoi a:focus-visible{outline:2px solid #7a4f00;outline-offset:2px}
.v175-renvoi-hors{margin:10px 0 0;padding:9px 12px;border:1.5px dashed #b9b2a6;border-radius:8px;background:#faf7f1;color:#57524b;font:14px/1.45 Georgia,serif}
.v175-renvoi-hors a{color:#7a4f00;font-weight:600;white-space:nowrap}
.v175-annexe-comparative{margin:18px 0 0}
.v175-ac-sur{margin:0 0 6px;font:700 11px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#6f6961}
.v175-annexe-comparative a{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1.5px dashed #b9b2a6;border-radius:10px;background:#faf7f1;color:#3d3833;text-decoration:none;max-width:46ch}
.v175-annexe-comparative a:hover b,.v175-annexe-comparative a:focus-visible b{text-decoration:underline}
.v175-annexe-comparative small{color:#6f6961}
@media print{.fr-hors-boite,.v175-renvoi-hors,.v175-annexe-comparative a{background:#fff}}
@media (min-width:861px){.f-reperes:has(> .f-repere:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}}
.v175-renvoi-hors{flex:0 0 auto;align-self:stretch;height:auto;min-height:0}

/* V176 — lisibilité : mêmes couleurs de famille, portraits et fils.
   Les marges et colonnes sont resserrées seulement sur téléphone. */
.v118-frise .fr-hors .fr-hors-boite h3{color:#5f5a52}
.v160-annexes-intro .v175-annexe-comparative .v175-ac-sur{color:#6f6961}
@media screen and (max-width:560px){
  .v118-frise{padding-left:8px;padding-right:8px}
  .v118-frise .fr-ev{grid-template-columns:60px 40px minmax(0,1fr);column-gap:5px;--pitch:4px}
  .v118-frise .fr-meta{padding-right:4px}
  .v118-frise .fr-texte p{line-height:1.5}
  .v118-frise .fr-hors-boite{padding-left:9px;padding-right:9px}
  .v118-frise .fr-sortie{width:14px}
}

/* V181 — encadrés du parcours alignés sur la largeur des pages, écarts réguliers (34 px).
   Écran seulement : l'impression garde ses propres règles. */
@media screen{
  .pages>.v72-code-couleur,.pages>#frise-animee,.pages>#routes-animees,
  .pages>.contemporary-bridge,.pages>.annex-divider,
  .matthew-transition,.v50-contact{width:100%;box-sizing:border-box}
  .pages>.v48-anim,.pages>.v72-code-couleur,.pages>.contemporary-bridge,.pages>.annex-divider{margin-top:0;margin-bottom:0}
  .pages>.devise{width:100%;box-sizing:border-box;margin-top:0;margin-bottom:0}
  .pages>.v145-diptyque{margin-top:0;margin-bottom:0}
  .timeline-intro-panel:has(+ .pages){margin-bottom:26px}
  .pages+.matthew-transition{margin-top:-46px}
  .matthew-transition{margin-bottom:34px}
  .correction-appendix:has(+ .v50-contact){margin-bottom:34px}
  .v50-contact{margin-top:34px}
}

/* V181 — légendes d'authenticité des médaillons */
.ep-image-note{margin:12px 0 0;max-width:560px;color:#5f574b;font:italic 14px/1.5 Georgia,serif}
.v52-fig-tete .ep-image-note{margin-top:6px}
.f-image-note{margin:-6px 0 18px}
@media print{.ep-image-note{color:#444}}

