/* Le fil de Nalyora : chronologie à droite, colonne de tri à gauche */

.ac {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 112px auto 64px;
  color: var(--texte-papier);
}
.ac-panneau {
  border: 1px solid var(--cadre-bord);
  border-radius: 20px;
  background: var(--papier);
  box-shadow: var(--cadre-ombre);
}

/* Colonne de tri */
.ac-cote { position: sticky; top: 92px; display: grid; gap: 18px; padding: 22px; }
html body.aventure .ac-cote h1 { margin: 0; color: var(--encre-texte); font-size: 2.2rem; line-height: 1.05; }
.ac-cote > p { margin: 8px 0 0; color: var(--doux-papier); font-size: .92rem; line-height: 1.45; }
.ac-chercher { display: grid; gap: 6px; color: var(--encre-texte); font-size: .84rem; font-weight: 600; }
.ac-chercher input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--cadre-bord);
  border-radius: 11px;
  color: var(--encre-texte);
  background: var(--champ);
  font: inherit;
  font-weight: 400;
}
.ac-chercher input::placeholder { color: var(--indice); }
.ac-chercher input:focus { outline: 0; border-color: #1a90f2; box-shadow: 0 0 0 3px rgb(26 144 242 / .25); }
.ac-sujets { display: grid; gap: 4px; }
.ac-sujets button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--encre-texte);
  background: transparent;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  text-align: left;
}
.ac-sujets button:hover { background: var(--champ-survol); }
.ac-sujets button[aria-pressed="true"] { background: var(--champ); box-shadow: inset 3px 0 0 #1a90f2; }
.ac-sujets i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--ac-couleur, #8b97b8); }
.ac-sujets span { margin-left: auto; color: var(--doux-papier); font-size: .8rem; font-weight: 400; }

[data-c="Annonce"] { --ac-couleur: #e4572e; }
[data-c="Mise à jour"] { --ac-couleur: #1a90f2; }
[data-c="Événement"] { --ac-couleur: #b78cff; }
[data-c="Boutique"] { --ac-couleur: #ffc93b; }
[data-c="Maintenance"] { --ac-couleur: #2fb27c; }

/* Chronologie */
.ac-fil { min-width: 0; }
.ac-mois { margin-bottom: 26px; }
html body.aventure .ac-mois > h2 {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 14px;
  border: 1px solid var(--cadre-bord);
  border-radius: 999px;
  color: var(--encre-texte);
  background: var(--papier);
  box-shadow: var(--cadre-ombre-douce);
  font-size: 1.02rem;
  line-height: 1.3;
}
.ac-mois::first-letter { text-transform: uppercase; }
.ac-mois ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ac-entree {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .16s, box-shadow .16s;
}
.ac-entree:hover { transform: translateX(4px); box-shadow: var(--cadre-ombre-haute); }
.ac-jour {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1px;
  color: #fff;
  background: var(--ac-couleur, #6c7a94);
}
.ac-jour b { font: 400 1.6rem/1 var(--bd); }
.ac-jour small { font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.ac-texte { display: grid; align-content: center; gap: 5px; min-width: 0; padding: 13px 16px; }
.ac-sujet { width: fit-content; color: var(--doux-papier); font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.ac-titre { color: var(--encre-texte); font: 400 1.14rem/1.2 var(--bd); overflow-wrap: anywhere; }
.ac-resume {
  display: -webkit-box;
  overflow: hidden;
  color: var(--doux-papier);
  font-size: .9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ac-vignette { display: block; width: 170px; height: 100%; min-height: 104px; object-fit: cover; }

.ac-etat:empty { display: none; }
.ac-etat { margin: 0 0 16px; padding: 20px; text-align: center; color: var(--texte-papier); }
.ac-encore {
  display: block;
  margin: 8px auto 0;
  min-height: 44px;
  padding: 7px 20px;
  border: 1px solid var(--cadre-bord);
  border-radius: 999px;
  color: var(--encre-texte);
  background: var(--papier);
  box-shadow: var(--cadre-ombre-douce);
  font: inherit;
  font-weight: 600;
}
.ac-encore:hover { background: var(--champ-survol); }

/* Lecture d'une publication */
.ac-lecture { grid-column: 1 / -1; width: min(780px, 100%); margin-inline: auto; padding: clamp(20px, 4vw, 40px); }
.ac-retour { display: inline-block; margin-bottom: 18px; color: var(--ice); font-size: .9rem; font-weight: 600; }
.ac-lecture .ac-sujet { display: flex; align-items: center; gap: 8px; }
.ac-lecture .ac-sujet::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--ac-couleur, #8b97b8); }
html body.aventure .ac-lecture h1 { margin: 8px 0 12px; color: var(--encre-texte); font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.08; overflow-wrap: anywhere; }
html body.aventure .ac-lecture h1:focus { outline: 0; }
.ac-signature { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--cadre-bord); color: var(--doux-papier); font-size: .86rem; }
.ac-signature img { width: 28px; height: 28px; border-radius: 50%; }
.ac-signature strong { color: var(--encre-texte); font-weight: 600; }
.ac-images { display: grid; gap: 10px; margin-bottom: 20px; }
.ac-images img { display: block; width: 100%; height: auto; border-radius: 14px; }
.ac-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--cadre-bord); }
.ac-voisins { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ac-voisins a { color: var(--ice); font-size: .9rem; font-weight: 600; }
.ac-bas .block { min-height: 44px; padding: 7px 18px; font-size: .98rem; }

@media (max-width: 860px) {
  .ac { grid-template-columns: minmax(0, 1fr); margin-top: 96px; }
  .ac-cote { position: static; }
  .ac-sujets { display: flex; flex-wrap: wrap; }
  .ac-sujets span { margin-left: 2px; }
  .ac-vignette { width: 110px; }
}
@media (max-width: 520px) {
  .ac-entree { grid-template-columns: 56px minmax(0, 1fr); }
  .ac-vignette { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-entree { transition: none; }
}
