/* Format blog : liste d'articles, fil de l'accueil, résultats de recherche, mentions légales */

.articles { padding-block: 32px var(--section); }
.articles__titre { font-size: clamp(2.75rem, 10vw, 4.5rem); line-height: 1; margin-bottom: 16px; }
.articles__chapeau { max-width: 40em; margin-block: 16px 24px; font-size: var(--t-20); line-height: 1.5; }
.articles__filtres { margin-bottom: 32px; }
.articles .recherche { max-width: 720px; }
.armes__liste a[aria-current="page"] { background: var(--lapis-fonce); border-color: var(--or); color: #F4EEDD; }

.billets { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; }
.billet { padding-block: 24px; border-top: 1px solid var(--filet); min-width: 0; }
.billet[hidden] { display: none; }
.billet__meta { margin: 0 0 4px; color: var(--texte-doux); font-size: var(--t-petit); }
.billet__titre { font-size: var(--t-31); margin-bottom: 4px; }
.billet__titre a { color: var(--encre); text-decoration: none; }
.billet__titre a:hover { color: var(--vermillon); text-decoration: underline; }
.billet__etat { margin: 0 0 4px; line-height: 1.4; }
.billet__sous { margin: 0 0 8px; font-style: italic; color: var(--texte-doux); }
.billet__texte { margin: 0 0 8px; font-size: 1rem; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.billet__armes { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; padding: 0; }
.billet__armes a, .billet__armes span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; border: 1px solid var(--filet); background: var(--surface); color: var(--encre); font-size: var(--t-petit); text-decoration: none; }
.billet__armes span { border-style: dashed; color: var(--encre-douce, var(--encre)); }
.billet__armes a:hover { border-color: var(--vermillon); color: var(--vermillon); }
@media (min-width: 768px) { .billets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fil-accueil { padding-block: var(--section); }
.fil-accueil__suite { margin: 32px 0 0; }

.fiche__sous { margin: 16px 0 0; font-size: var(--t-25); }
.fiche__action { margin: 16px 0 0; }
.fiche__action .bouton { width: 100%; min-height: 44px; font-size: 1rem; }

.resultats__groupe { margin-top: 32px; }
.resultats__groupe h2 { font-size: var(--t-31); padding-bottom: 8px; border-bottom: 3px double var(--or-fonce); }
.resultats__liste { list-style: none; margin: 0; padding: 0; }
.resultats__liste li { padding-block: 16px; border-bottom: 1px solid var(--filet); }
.resultats__liste a { font-weight: 600; font-size: var(--t-20); }
.resultats__liste p { margin: 4px 0 0; font-size: 1rem; line-height: 1.5; color: var(--texte-doux); }
.resultats__ville { margin-top: 32px; }

.legal { max-width: 48em; margin-inline: auto; }
.legal h2 { margin-top: 32px; font-size: var(--t-31); }
.legal h2 + p { margin-top: 8px; }

.reponses { display: grid; gap: 16px; margin-top: 24px; }
.reponse { padding: 24px; background: var(--surface); border: 1px solid var(--encre); box-shadow: 6px 6px 0 -1px var(--or); }
.reponse h2 { font-size: var(--t-39); margin-bottom: 8px; }
.reponse p:last-child { margin-bottom: 0; }
.reponse__liens { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.reponse__liens a { padding-block: 8px; font-weight: 600; }
.resultats__source { margin: 0 0 4px !important; font-size: var(--t-petit) !important; font-weight: 600; color: var(--vermillon) !important; }
.resultats__groupe .bouton { margin-top: 16px; min-height: 44px; font-size: 1rem; }

.filtres-moteur { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.filtre-moteur { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--encre); background: var(--surface); color: var(--encre); font-size: 1rem; line-height: 1.2; text-decoration: none; }
.filtre-moteur:hover { border-color: var(--vermillon); color: var(--vermillon); }
.filtre-moteur[aria-current="page"] { background: var(--lapis-fonce); border-color: var(--or); color: #F4EEDD; }
.titre-groupe { margin: 40px 0 8px; font-size: var(--t-39); padding-bottom: 8px; border-bottom: 3px double var(--or-fonce); }
.groupe-liste { scroll-margin-top: 96px; }
.lexique { margin: 0; }
.lexique__entree { padding-block: 16px; border-bottom: 1px solid var(--filet); }
.lexique dt { font: 600 var(--t-20)/1.3 var(--livre); }
.lexique dd { margin: 4px 0 0; }
.plan ul { list-style: none; margin: 0; padding-left: 24px; border-left: 1px solid var(--filet); }
.plan > ul { padding-left: 0; border: 0; }
.plan li { padding-block: 4px; }
.plan > ul > li { padding-block: 8px; font-weight: 600; }
.plan li li { font-weight: 400; }
.billet__logo { display: flex; align-items: center; height: 72px; padding: 8px 12px; margin-bottom: 12px; width: fit-content; max-width: 100%; background: #FFFFFF; border: 1px solid var(--filet); }
.billet__logo--sombre { background: var(--encre); border-color: var(--encre); }
.billet__logo img { display: block; max-height: 56px; max-width: 220px; width: auto; height: auto; object-fit: contain; }

/* Carnet : onglets Fil / Arborescence */
.vues { display: flex; gap: 0; margin: 24px 0 8px; border-bottom: 3px double var(--or-fonce); }
.vues a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; color: var(--encre); font-weight: 600; text-decoration: none; border: 1px solid transparent; border-bottom: 0; }
.vues a:hover { color: var(--vermillon); }
.vues a[aria-current="page"] { background: var(--lapis-fonce); border-color: var(--or); color: #F4EEDD; }

/* Arborescence en mode index : une ligne par page, date à droite après des points de conduite */
.arbre, .arbre ul { list-style: none; margin: 0; padding: 0; }
.arbre ul { padding-left: 20px; margin-left: 8px; border-left: 1px solid var(--filet); }
.arbre li { margin: 0; }
.arbre__ligne { display: flex; align-items: baseline; gap: 8px; min-height: 36px; padding-block: 6px; }
.arbre__ligne a { min-width: 0; }
.arbre > li > details > summary, .arbre > li > .arbre__ligne { font-weight: 600; font-size: var(--t-20); }
.arbre--plat > li > .arbre__ligne { font-weight: 400; font-size: var(--t-corps); }
.arbre details > summary { cursor: pointer; list-style: none; }
.arbre details > summary::-webkit-details-marker { display: none; }
.arbre details > summary::before { content: "▸"; flex: none; width: 12px; color: var(--or-fonce); font-size: 0.8em; }
.arbre details[open] > summary::before { content: "▾"; }
.arbre__points { flex: 1 1 16px; min-width: 16px; border-bottom: 1px dotted var(--filet); transform: translateY(-4px); }
.arbre time { flex: none; font-size: var(--t-petit); font-weight: 400; color: var(--texte-doux); font-variant-numeric: tabular-nums; white-space: nowrap; }
.arbre__compte { flex: none; font-size: var(--t-petit); font-weight: 400; color: var(--texte-doux); }
.arbre__compte::before { content: "("; }
.arbre__compte::after { content: ")"; }
.arbre__etat { flex: none; padding: 0 6px; border: 1px solid var(--or-fonce); color: var(--or-fonce); font-size: 0.75rem; font-weight: 600; line-height: 1.6; text-transform: uppercase; letter-spacing: 0.04em; }
.arbre__etat--nouveau { border-color: var(--vermillon); background: var(--vermillon); color: #FFFBF1; }
.arbre__type { flex: none; width: 6.5em; font-size: var(--t-petit); color: var(--texte-doux); }
.arbre--plat .arbre__ligne { border-bottom: 1px solid var(--filet); }
.arbre__aide { color: var(--texte-doux); font-size: 1rem; }
@media (max-width: 479px) { .arbre__type { display: none; } .arbre ul { padding-left: 12px; margin-left: 4px; } }
@media (max-width: 599px) {
  .arbre__ligne { flex-wrap: wrap; row-gap: 0; }
  .arbre__ligne a { flex: 1 1 60%; }
  .arbre__points { display: none; }
  .arbre time { flex-basis: 100%; order: 9; }
  details > summary.arbre__ligne time { padding-left: 20px; }
}
/* Plan filtrable par état (assets/filtre.js) : le compte devant, la branche qui mène à une page gardée reste en retrait. */
.plan__filtres { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.plan__filtres a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--encre); background: var(--surface); color: var(--encre); font-size: 1rem; line-height: 1.4; text-decoration: none; }
.plan__filtres a .etat { color: inherit; font-style: normal; font-size: 1rem; font-weight: 400; }
.plan__filtres a:hover { border-color: var(--vermillon); color: var(--vermillon); }
.plan__filtres a[aria-current] { background: var(--lapis-fonce); border-color: var(--or); color: #F4EEDD; }
.plan__filtres a[aria-current] .etat::before { border-color: #F2DD9A; }
.plan__n { font-variant-numeric: lining-nums tabular-nums; font-size: var(--t-petit); }
.plan li[hidden] { display: none; }
.plan .etat { margin-left: 8px; font-weight: 400; }
.plan .plan__contexte > .etat { display: none; }
.plan__avenir { color: var(--texte-doux); font-style: italic; }
.plan summary { cursor: pointer; }
.lexique__entree:target { background: var(--filet); }
.glossaire__ou { display: block; margin-top: 4px; font-size: .85em; opacity: .8; }
.glossaire__refs .notes { margin-top: 12px; }
