/* ABLOGUI — widget « Notre histoire » : frise qui défile (d'après L'Arche) */
.hi-tete { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.hi-confettis { position: absolute; left: clamp(220px, 30vw, 360px); top: -10px; width: min(420px, 40vw); height: auto; pointer-events: none; }
.hi-nav { display: flex; gap: 12px; position: relative; z-index: 1; }
.hi-rond { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--ab-noir); border-radius: 50%; background: #fff; color: var(--ab-noir); transition: background .3s ease, color .3s ease, opacity .3s ease; }
.hi-rond:hover { background: var(--ab-noir); color: #fff; }
.hi-rond:disabled { opacity: .3; pointer-events: none; }
.hi-rond svg { width: 20px; height: 20px; }
.hi-rond--precedent svg { transform: rotate(180deg); }
.hi-section .hi-piste { display: flex; gap: 0; list-style: none; margin: 0 calc(-1 * var(--ab-gouttiere)); padding: 12px var(--ab-gouttiere) 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--ab-gouttiere); scrollbar-width: none; }
.hi-piste::-webkit-scrollbar { display: none; }
.hi-etape { position: relative; flex: 0 0 clamp(240px, 24vw, 300px); padding: 34px 32px 0 0; border-top: 3px dotted var(--ab-ligne-forte); scroll-snap-align: start; }
.hi-point { position: absolute; left: 0; top: -15px; width: 28px; height: 28px; border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; background: var(--_c); }
.hi-annee { display: block; font-family: var(--ab-chiffres); font-weight: var(--ab-graisse-chiffre); letter-spacing: -.04em; font-size: clamp(2.8rem, 2rem + 2vw, 3.8rem); line-height: 1; color: var(--_c); }
.hi-etape h3 { margin-top: 14px; font-size: var(--ab-fs-m); font-weight: 900; line-height: 1.3; }
.hi-etape p { margin-top: 10px; font-size: var(--ab-fs-s); line-height: 1.6; color: var(--ab-texte-doux); }
@media (max-width: 700px) { .hi-confettis { display: none; } .hi-etape { flex-basis: 78%; } }

/* Style « vert nuit » (choix du 24 octobre 2026) : années en vert clair et en blanc, une pastille jaune toutes les quatre étapes */
.hi-section--nuit .hi-etape { border-top-color: rgba(255, 255, 255, .28); }
.hi-section--nuit .hi-etape:nth-child(odd) { --_c: #9fe0c4; }
.hi-section--nuit .hi-etape:nth-child(even) { --_c: #fff; }
.hi-section--nuit .hi-etape:nth-child(4n) .hi-point { background: var(--ab-jaune); }
.hi-section--nuit .hi-etape h3 { color: #fff; }
.hi-section--nuit .hi-etape p { color: rgba(255, 255, 255, .75); }
.hi-section--nuit .hi-rond { border-color: #fff; background: transparent; color: #fff; }
.hi-section--nuit .hi-rond:hover { background: #fff; color: var(--ab-vert-nuit); }

/* Points en taches (essai A retenu le 24 octobre 2026, couleurs inchangées) : formes irrégulières comme les pictogrammes,
   ligne faite de petites taches au lieu du pointillé */
.hi-section--nuit .hi-piste { padding-top: 22px; }
.hi-section--nuit .hi-etape { border-top: 0; background: radial-gradient(circle, rgba(255, 255, 255, .3) 2.6px, transparent 3.2px) 0 0 / 15px 8px repeat-x; }
.hi-section--nuit .hi-point { top: -12px; width: 36px; height: 33px; border-radius: 46% 54% 52% 48% / 56% 44% 56% 44%; }
.hi-section--nuit .hi-etape:nth-child(3n+2) .hi-point { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; transform: rotate(-10deg); }
.hi-section--nuit .hi-etape:nth-child(3n) .hi-point { border-radius: 50% 50% 46% 54% / 58% 42% 58% 42%; transform: rotate(12deg); }

/* « En savoir plus » sous les années qui ont des détails */
.hi-plus { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 14px 7px 10px; border: 1px solid var(--ab-ligne-forte); border-radius: 999px; background: none; font: inherit; font-size: var(--ab-fs-s); font-weight: 700; color: var(--ab-noir); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.hi-plus svg { width: 16px; height: 16px; transition: transform .3s var(--ab-doux); }
.hi-plus:hover { background: #fdf1cc; border-color: #fdf1cc; color: var(--ab-vert-nuit); }
.hi-plus:hover svg { transform: rotate(90deg); }
.hi-section--nuit .hi-plus { border-color: rgba(255, 255, 255, .35); color: #fff; }
.hi-section--nuit .hi-plus:hover { border-color: #fdf1cc; color: var(--ab-vert-nuit); }

/* Fenêtre de l'année : grande bulle jaune pâle aux bords irréguliers, comme le récit « Notre parcours »,
   avec deux petites taches en guise de queue ; les faits de l'année sont de petites bulles blanches */
.hi-fenetre { position: fixed; width: min(760px, calc(100% - 40px)); max-width: none; max-height: none; margin: auto; padding: 0 0 46px; border: 0; background: transparent; color: var(--ab-texte); overflow: visible; }
.hi-fenetre[open] { animation: hi-fenetre-entree .4s var(--ab-doux); }
.hi-fenetre::backdrop { background: rgba(10, 36, 28, .62); backdrop-filter: blur(5px); }
@keyframes hi-fenetre-entree { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.hi-fenetre__bulle { position: relative; display: flex; flex-direction: column; max-height: calc(100dvh - 110px); overflow: hidden; border-radius: 64px 48px 70px 44px / 52px 66px 46px 60px; background: #fdf1cc; }
.hi-fenetre__defile { overflow-y: auto; padding: 44px clamp(24px, 4vw, 52px) 8px; overscroll-behavior: contain; }
.hi-fenetre__queue { position: absolute; left: 34px; bottom: 18px; width: 34px; height: 31px; border-radius: 46% 54% 52% 48% / 56% 44% 56% 44%; background: #fdf1cc; }
.hi-fenetre__queue--petite { left: 12px; bottom: 0; width: 17px; height: 16px; }
.hi-fenetre__fermer { position: absolute; top: 18px; right: 22px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ab-noir); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.hi-fenetre__fermer svg { width: 18px; height: 18px; }
.hi-fenetre__nav { display: flex; justify-content: space-between; gap: 12px; padding: 14px clamp(24px, 4vw, 52px) 26px; border-top: 1px dotted rgba(29, 29, 27, .18); }
.hi-fenetre__nav button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-weight: 800; color: var(--ab-vert-texte); cursor: pointer; }
.hi-fenetre__nav button[hidden] { display: inline-flex; visibility: hidden; }
.hi-fenetre__nav svg { width: 18px; height: 18px; }
.hi-retourne { transform: rotate(180deg); }
.hi-detail__tete { display: flex; align-items: center; gap: 18px; padding-right: 48px; }
.hi-detail__annee { display: grid; font-family: var(--ab-chiffres); place-items: center; flex: none; width: 96px; height: 88px; border-radius: 46% 54% 52% 48% / 56% 44% 56% 44%; background: var(--ab-vert-nuit); font-size: 1.55rem; font-weight: var(--ab-graisse-chiffre); letter-spacing: -.03em; color: #9fe0c4; }
.hi-detail__titre { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--ab-noir); }
.hi-detail__tete p { margin-top: 6px; line-height: 1.55; color: var(--ab-texte); }
.hi-detail img.hi-detail__photo { width: 100%; height: 240px; margin-top: 24px; object-fit: cover; border-radius: 28px; }
.hi-detail__recit { margin-top: 20px; line-height: 1.65; }
.hi-detail__recit p + p { margin-top: 10px; }
.hi-detail__sous-titre { margin-top: 26px; font-size: var(--ab-fs-s); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ab-vert-texte); }
.hi-faits { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.hi-fait { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 18px; border-radius: 22px 22px 22px 6px; background: #fff; transition: transform .3s var(--ab-doux), box-shadow .3s ease; }
.hi-fait:hover { transform: translateX(4px); box-shadow: 0 10px 24px -16px rgba(0, 60, 40, .5); }
.hi-fait__type { padding: 3px 10px; border-radius: 999px; background: var(--ab-menthe); font-size: 12px; font-weight: 800; color: var(--ab-vert-texte); white-space: nowrap; }
.hi-fait b { font-weight: 700; line-height: 1.35; color: var(--ab-noir); }
.hi-fait__date { font-size: var(--ab-fs-xs); font-weight: 700; color: var(--ab-texte-doux); white-space: nowrap; }
.hi-detail__tout { margin-top: 16px; }
@media (max-width: 640px) {
  .hi-fenetre { width: calc(100% - 20px); padding-bottom: 38px; }
  .hi-fenetre__bulle { max-height: calc(100dvh - 70px); border-radius: 40px 32px 44px 28px / 34px 42px 30px 38px; }
  .hi-fenetre__defile { padding: 34px 20px 6px; }
  .hi-fenetre__fermer { top: 12px; right: 14px; }
  .hi-detail__tete { flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 40px; }
  .hi-detail__annee { width: 78px; height: 72px; font-size: 1.3rem; }
  .hi-fait { grid-template-columns: 1fr; justify-items: start; }
  .hi-fenetre__queue { left: 26px; bottom: 14px; width: 26px; height: 24px; }
  .hi-fenetre__queue--petite { left: 8px; bottom: 0; width: 13px; height: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hi-fenetre[open] { animation: none; } }
@media (max-width: 640px) { .hi-detail img.hi-detail__photo { height: 180px; border-radius: 22px; } }

/* Années qui ont des détails : la pastille et l'année ouvrent aussi la fenêtre */
button.hi-annee { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; transition: opacity .2s ease; }
button.hi-annee:hover { opacity: .8; }
.hi-etape--details .hi-point { cursor: pointer; transition: scale .3s var(--ab-doux); }
.hi-etape--details .hi-point::after { content: ""; position: absolute; inset: -10px; } /* cible plus large que la pastille */
.hi-etape--details .hi-point:hover, .hi-etape--details:has(button.hi-annee:hover) .hi-point { scale: 1.18; }
