/* Styles des pages du blog, chargés via AssetMapper. Les couleurs viennent des variables de base.html.twig. */

/* Liste des articles */
.liste-articles { list-style: none; margin: 0; padding: 0; }
.liste-articles > li { padding: 1.4rem 0; border-bottom: 1px solid var(--ligne); }
.liste-articles > li:first-child { padding-top: 0; }
.carte-article h2 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; margin: .2rem 0 .35rem; }
.carte-article h2 a { text-decoration: none; }
.carte-article h2 a:hover { color: var(--accent); }
.carte-article .extrait { margin: 0 0 .6rem; color: var(--doux); }
.meta { color: var(--doux); font-size: .85rem; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.meta .point::before { content: "·"; }

/* Étiquettes et pastilles d'état */
.etiquettes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.etiquette { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border: 1px solid var(--ligne); border-radius: 999px;
             font-size: .8rem; color: var(--doux); text-decoration: none; background: var(--surface); }
.etiquette:hover { color: var(--accent); border-color: var(--accent); }
.etiquette .nombre { font-variant-numeric: tabular-nums; opacity: .75; }
.nuage { gap: .55rem; }
.nuage .etiquette { font-size: .95rem; padding: .4rem .85rem; }
.etat { display: inline-block; padding: .05rem .5rem; border-radius: 6px; font-size: .75rem; font-weight: 600; }
.etat-brouillon { background: var(--alerte-doux); color: var(--alerte); }
.etat-programme { background: var(--accent-doux); color: var(--accent); }
.filtre-actif { display: flex; align-items: center; gap: .6rem; margin: -1rem 0 1.5rem; color: var(--doux); font-size: .9rem; }
.filtre-actif a { color: var(--accent); }

/* Article */
.article-entete { margin-bottom: 1.75rem; }
.article-entete h1 { margin-bottom: .6rem; }
.couverture { margin: 0 0 1.75rem; }
.couverture img { width: 100%; height: auto; display: block; border-radius: 14px; }
.texte { font-family: "Source Serif 4", Georgia, serif; font-size: 1.15rem; line-height: 1.75; overflow-wrap: break-word; }
.texte > :first-child { margin-top: 0; }
.texte h2, .texte h3, .texte h4 { font-family: Inter, system-ui, sans-serif; letter-spacing: -.01em; line-height: 1.3; margin: 2.2rem 0 .6rem; }
.texte h2 { font-size: 1.4rem; }
.texte h3 { font-size: 1.15rem; }
.texte p, .texte ul, .texte ol, .texte blockquote, .texte pre, .texte table { margin: 0 0 1.2rem; }
.texte a { color: var(--accent); text-underline-offset: .15em; }
.texte img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 1.5rem auto; }
.texte blockquote { padding: .1rem 0 .1rem 1.1rem; border-left: 3px solid var(--ligne); color: var(--doux); font-style: italic; }
.texte code { font: .88em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); border: 1px solid var(--ligne);
              border-radius: 6px; padding: .1em .35em; }
.texte pre { background: var(--surface); border: 1px solid var(--ligne); border-radius: 12px; padding: 1rem; overflow-x: auto; }
.texte pre code { background: none; border: 0; padding: 0; font-size: .85rem; }
.texte hr { border: 0; border-top: 1px solid var(--ligne); margin: 2rem 0; }
.texte table { width: 100%; border-collapse: collapse; font-family: Inter, system-ui, sans-serif; font-size: .95rem; display: block; overflow-x: auto; }
.texte th, .texte td { padding: .5rem .6rem; border-bottom: 1px solid var(--ligne); text-align: left; }
.texte li + li { margin-top: .3rem; }
.texte input[type="checkbox"] { margin-right: .4rem; }
.article-pied { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ligne); display: grid; gap: 1.5rem; }
.voisins { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.voisins a { display: block; padding: .8rem 1rem; border: 1px solid var(--ligne); border-radius: 14px; text-decoration: none; background: var(--surface); min-width: 0; }
.voisins a:hover { border-color: var(--accent); }
.voisins .sens { display: block; color: var(--doux); font-size: .8rem; }
.voisins .titre { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voisins .suivant { text-align: right; grid-column: 2; }
@media (max-width: 520px) { .voisins { grid-template-columns: 1fr; } .voisins .suivant { grid-column: auto; text-align: left; } }

/* Recherche */
.recherche { display: flex; gap: .5rem; margin: 0 0 1.75rem; }
.recherche input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: .75rem .9rem; border: 1px solid var(--ligne);
                   border-radius: 12px; background: var(--surface); color: var(--encre); }
.recherche input:focus, .connexion input:focus { outline: 3px solid var(--accent-doux); border-color: var(--accent); }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 12px; padding: .7rem 1.2rem;
          background: var(--accent); color: var(--fond); font-weight: 600; text-decoration: none; }
.bouton:hover { filter: brightness(1.08); }
.compte { color: var(--doux); font-size: .9rem; margin: 0 0 1rem; }
.vide { border: 1px dashed var(--ligne); border-radius: 16px; padding: 2rem 1.25rem; text-align: center; color: var(--doux); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 2rem 0 0; }
.pagination a, .pagination .desactive { display: inline-flex; align-items: center; justify-content: center; min-height: 2.6rem; padding: .4rem 1rem;
                                        border: 1px solid var(--ligne); border-radius: 12px; background: var(--surface); font-weight: 600; text-decoration: none; }
.pagination a:hover { border-color: var(--accent); }
.pagination .desactive { opacity: .35; }
.pagination .position { color: var(--doux); font-size: .9rem; }

/* Panneaux (Préférences, connexion) */
.panneau { background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; padding: 1.25rem; margin-bottom: 1.25rem; }
.panneau h2 { font-size: 1.1rem; margin: 0 0 .9rem; }
.details { color: var(--doux); font-size: .9rem; margin: .7rem 0 0; }
.panneau ol { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--doux); font-size: .95rem; }
.panneau li + li { margin-top: .3rem; }
.choix-theme { border: 0; margin: 0 0 1.1rem; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.option-theme { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border: 1px solid var(--ligne); border-radius: 12px;
                background: var(--fond); font-weight: 600; cursor: pointer; }
.option-theme:has(input:checked) { border-color: var(--accent); outline: 2px solid var(--accent-doux); }
.option-theme input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; margin: 0; }
@media (max-width: 420px) { .choix-theme { grid-template-columns: 1fr; } .panneau .bouton { width: 100%; } }

.connexion { max-width: 360px; margin: 1rem auto; }
.connexion label { display: block; font-weight: 600; margin: 1rem 0 .35rem; }
.connexion input[type="password"] { width: 100%; font: inherit; font-size: 1.1rem; padding: .75rem .85rem; border: 1px solid var(--ligne);
                                    border-radius: 12px; background: var(--fond); color: var(--encre); }
.connexion .bouton { width: 100%; margin-top: 1.25rem; padding: .85rem; font-size: 1.05rem; }
.erreur { background: var(--alerte-doux); color: var(--alerte); padding: .7rem .9rem; border-radius: 12px; margin: 0 0 .5rem; }
