/*
 * Page article (squelettes/article.html) : maquette validée le 14/10/2026.
 * S'appuie sur accueil.css : .acc donne la colonne de 1120 px, les panneaux gris (.acc-panneau)
 * et la liste « À lire aussi » (.acc-actus). Mêmes unités que le header (--u).
 * Corps du texte inspiré des tracts Tracteur : police Barlow, intertitres à barre rouge, listes à puces rouges.
 */
.art {
	--art-rouge: #c30c07;
	--art-noir: #1D1C1D;
	--art-gris: #545454;
	--art-texte: 'Barlow', Arial, Helvetica, sans-serif;
	--art-titres: 'Barlow Semi Condensed', 'Arial Narrow', Arial, sans-serif;
	color: var(--art-noir);
}

/* ---------- Fil d'Ariane ---------- */
.art .art-ariane { display: flex; flex-wrap: wrap; gap: 8px; margin: calc(2 * var(--u)) 0 calc(4 * var(--u)); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--art-gris); }
.art .art-ariane span { color: var(--art-rouge); }
.art .art-ariane a, .art .art-ariane a:visited { color: var(--art-gris) !important; background: transparent !important; text-decoration: none !important; }
.art .art-ariane a:hover, .art .art-ariane a:focus { color: var(--art-rouge) !important; }

/* ---------- Tête : titre noir en capitales souligné de rouge ---------- */
.art .art-tete { margin-bottom: calc(7.4 * var(--u)); padding-bottom: calc(4.2 * var(--u)); border-bottom: calc(2.1167 * var(--u)) solid var(--art-rouge); }
.art .art-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--art-gris); }
.art .art-meta__rub { background: var(--art-noir); color: #fff; padding: 2px 7px; letter-spacing: .1em; }
.art .art-surtitre { margin-top: calc(3 * var(--u)); font-weight: 600; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--art-rouge); }
.art .art-titre { margin: calc(3 * var(--u)) 0 0; font-family: var(--art-titres); font-weight: 700; font-size: clamp(30px, calc(12.7 * var(--u)), 48px); line-height: 1.04; letter-spacing: .02em; text-transform: uppercase; color: var(--art-noir); text-wrap: balance; }
.art .art-soustitre { margin-top: calc(2.5 * var(--u)); font-weight: 500; font-size: 22px; line-height: 1.3; color: var(--art-gris); }

/* ---------- Grille : texte + colonne latérale de 350 px ---------- */
.art .art-grille { display: grid; grid-template-columns: minmax(0, 1fr) calc(92.6 * var(--u)); gap: calc(10.58 * var(--u)); align-items: start; }
.art .art-article { min-width: 0; }
.art .art-lateral { display: flex; flex-direction: column; gap: calc(4.23 * var(--u)); }
.art .art-lateral .acc-panneau { width: 100%; }

/* image mise en avant : ombre portée */
.art .art-une { margin: 0 0 calc(8 * var(--u)); padding: 0; }
/* hauteur limitée : l'image est réduite en gardant ses proportions (jamais recadrée), l'ombre suit ses bords */
.art .art-une img { display: block; width: auto; height: auto; max-width: 100%; max-height: 440px; box-shadow: 0 10px 26px rgba(29, 28, 29, .28), 0 2px 6px rgba(29, 28, 29, .18); }

/* ---------- Corps de l'article (charte des tracts) ---------- */
.art .art-corps { max-width: 68ch; font-family: var(--art-texte); font-size: 19px; line-height: 1.6; color: #1a1a1a; }
.art .art-corps p { margin: 0 0 1em; }
.art .art-chapo, .art .art-chapo p { font-family: var(--art-titres); font-weight: 600; font-size: 23px; line-height: 1.4; color: var(--art-noir); }
.art .art-chapo { margin-bottom: 1.2em; }
.art .art-corps h2, .art .art-corps h3, .art .art-corps h4 { font-family: var(--art-titres); font-weight: 700; color: var(--art-noir); text-wrap: balance; }
.art .art-corps h2 { margin: 1.6em 0 .55em; padding: 0 0 0 14px; border-left: 10px solid var(--art-rouge); font-size: 28px; line-height: 1.15; }
.art .art-corps h3 { margin: 1.3em 0 .45em; padding: 0 0 0 11px; border-left: 6px solid var(--art-rouge); font-size: 22px; line-height: 1.2; }
.art .art-corps h4 { margin: 1.2em 0 .4em; font-size: 20px; }
.art .art-corps strong, .art .art-corps b { font-weight: 700; }
.art .art-corps ul, .art .art-corps ol { margin: 0 0 1em; padding-left: 1.2em; }
.art .art-corps ul { list-style: disc; }
.art .art-corps ol { list-style: decimal; }
.art .art-corps li { margin: 0 0 .35em; padding: 0; }
.art .art-corps li::marker { color: var(--art-rouge); font-weight: 700; }
.art .art-corps blockquote { position: relative; margin: 1.4em 0; padding: 4px 0 4px 64px; border: 0; background: none; font-family: var(--art-titres); font-size: 25px; line-height: 1.3; font-weight: 600; font-style: normal; color: var(--art-noir); }
.art .art-corps blockquote::before { content: "«"; position: absolute; left: 0; top: -14px; font-size: 84px; line-height: 1; font-weight: 800; color: var(--art-rouge); }
.art .art-corps blockquote p:last-child { margin-bottom: 0; }
.art .art-corps img { max-width: 100%; height: auto; }
.art .art-corps .spip_documents { max-width: 100%; }
.art .art-ps, .art .art-notes { margin-top: 1.5em; padding-top: 1em; border-top: 1px solid #d6d4d4; font-size: 16px; }

/* liens du texte : rouges soulignés (le thème met un fond sombre au focus : neutralisé) */
.art .art-corps a, .art .art-corps a:visited { color: var(--art-rouge) !important; text-decoration: underline !important; text-underline-offset: 2px; background: transparent !important; }
.art .art-corps a:hover, .art .art-corps a:focus, .art .art-corps a:active { color: #9a0905 !important; background: transparent !important; text-decoration: none !important; }
.art a:focus-visible, .art button:focus-visible { outline: 3px solid var(--art-noir) !important; outline-offset: 3px; }

/* les documents ne se téléchargent que dans le panneau « Téléchargements » */
.art .art-texte .doc-bouton-bloc { display: none; }

/* ---------- Mots-clés ---------- */
.art .art-mots { display: flex; flex-wrap: wrap; gap: 8px; margin: calc(6 * var(--u)) 0 0; padding: 0; list-style: none; }
.art .art-mots a, .art .art-mots a:visited { display: block; padding: 3px 9px; border: 1.5px solid var(--art-noir); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--art-noir) !important; background: transparent !important; text-decoration: none !important; }
.art .art-mots a:hover, .art .art-mots a:focus { background: var(--art-noir) !important; color: #fff !important; }

/* ---------- Pied de l'article : auteur + partage ---------- */
.art .art-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; margin-top: calc(9 * var(--u)); padding-top: 18px; border-top: 2px solid var(--art-noir); }
.art .art-auteurs { display: flex; flex-direction: column; gap: 10px; }
.art .art-auteur { display: flex; align-items: center; gap: 12px; font-family: var(--art-texte); font-size: 16px; color: var(--art-gris); }
.art .art-auteur strong { display: block; font-family: var(--art-titres); font-weight: 700; font-size: 20px; color: var(--art-noir); }
.art .art-auteur__bulle { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--art-rouge); color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .04em; }
.art .art-partage { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.art .art-partage__lib { margin-right: 4px; font-weight: 700; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.art .art-partage a, .art .art-partage button { display: grid; place-items: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--art-noir) !important; color: #fff !important; cursor: pointer; text-decoration: none !important; }
.art .art-partage a:hover, .art .art-partage a:focus, .art .art-partage button:hover, .art .art-partage button:focus { background: var(--art-rouge) !important; color: #fff !important; }
.art .art-partage svg { width: 20px; height: 20px; fill: currentColor; }
.art .art-partage__ok { font-size: 15px; color: var(--art-gris); }

/* ---------- Panneaux de la colonne latérale ---------- */
.art .art-panneau { padding-bottom: calc(3.44 * var(--u) + 22px); }
.art .art-docs__liste, .art .art-sommaire__liste { margin: calc(4 * var(--u)) calc(7 * var(--u)) 0; padding: 0; }
.art .art-docs__liste { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.art .art-doc, .art .art-doc:visited { display: grid; grid-template-columns: 48px minmax(0, 1fr) 22px; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 4px; background: #fff !important; color: var(--art-noir) !important; text-decoration: none !important; }
.art .art-doc:hover, .art .art-doc:focus { box-shadow: inset 0 0 0 2px var(--art-rouge); background: #fff !important; color: var(--art-noir) !important; }
.art .art-doc:hover .art-doc__fleche, .art .art-doc:focus .art-doc__fleche { color: var(--art-rouge); }
.art .art-doc__vign { display: block; width: 48px; height: 64px; object-fit: cover; object-position: top; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.art .art-doc__type { display: grid; place-items: end center; box-sizing: border-box; width: 48px; height: 64px; padding-bottom: 8px; border: 2px solid #3a3838; background: #e6e6e6; font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--art-rouge); }
.art .art-doc__texte { min-width: 0; }
.art .art-doc__nom { display: block; font-weight: 700; font-size: 17px; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.art .art-doc__poids { display: block; margin-top: 3px; font-family: var(--art-texte); font-size: 14px; color: var(--art-gris); }
.art .art-doc__fleche { width: 22px; height: 24px; color: #3a3838; }
.art .art-sommaire__liste { display: flex; flex-direction: column; gap: 8px; padding-left: 1.2em; list-style: decimal; font-family: var(--art-texte); font-size: 16px; line-height: 1.4; }
.art .art-sommaire__liste li::marker { color: var(--art-rouge); font-weight: 700; }
.art .art-sommaire__liste .art-sommaire__sous { margin-left: 1em; list-style: circle; font-size: 15px; }
.art .art-sommaire__liste a, .art .art-sommaire__liste a:visited { color: var(--art-noir) !important; background: transparent !important; text-decoration: none !important; }
.art .art-sommaire__liste a:hover, .art .art-sommaire__liste a:focus { color: var(--art-rouge) !important; text-decoration: underline !important; }
.art .art-sommaire[hidden] { display: none; }
.art .acc-agenda { width: 100%; margin-top: 0; }   /* même hauteur que sur l'accueil (prévue pour 4 dates) */

/* ---------- Bandeau « Rejoins-nous » : rouge sur toute la largeur de l'écran ---------- */
.art .art-appel { width: calc(100vw - var(--sbw, 0px)); margin: calc(17 * var(--u)) 0 0 calc(50% - (100vw - var(--sbw, 0px)) / 2); background: var(--art-rouge); color: #fff; }
.art .art-appel__col { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; width: var(--hd-col); margin: 0 auto; padding: 30px 0; }
.art .art-appel__texte { margin: 0; font-weight: 800; font-size: clamp(28px, calc(10.6 * var(--u)), 40px); line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; color: #f8e501; }
.art .art-appel__texte span { display: block; margin-top: 6px; font-family: var(--art-texte); font-weight: 400; font-size: 18px; letter-spacing: 0; text-transform: none; color: #fff; }
.art .art-appel__bouton, .art .art-appel__bouton:visited { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 4px; background: #fff !important; color: var(--art-rouge) !important; font-weight: 700; font-size: 20px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none !important; }
.art .art-appel__bouton:hover, .art .art-appel__bouton:focus { background: #f8e501 !important; color: var(--art-rouge) !important; }
.art .art-appel__bouton img { width: 16px; height: 22px; }

.art .art-lies { margin-top: calc(14 * var(--u)); }

/* ---------- Sous 900 px : une colonne (mêmes marges que l'accueil) ---------- */
@media (max-width: 899.98px) {
	body.page_article .page { width: auto; max-width: none; margin-left: 0; margin-right: 0; }
	body.page_article { padding-left: 0; padding-right: 0; }
	.art .art-ariane { margin: 0 0 12px; font-size: 13px; }
	.art .art-tete { margin-bottom: 24px; padding-bottom: 14px; border-bottom-width: 6px; }
	.art .art-titre { margin-top: 10px; font-size: 30px; }
	.art .art-grille { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.art .art-lateral { --u: calc(var(--larg) / 92.6); gap: 16px; }
	.art .art-une { margin-bottom: 28px; }
	.art .art-une img { max-height: 300px; }
	.art .art-corps { font-size: 18px; }
	.art .art-chapo, .art .art-chapo p { font-size: 20px; }
	.art .art-corps h2 { font-size: 24px; border-left-width: 8px; padding-left: 11px; }
	.art .art-corps h3 { font-size: 20px; }
	.art .art-corps blockquote { padding-left: 46px; font-size: 21px; }
	.art .art-corps blockquote::before { font-size: 64px; }
	.art .art-mots { margin-top: 24px; }
	.art .art-pied { margin-top: 28px; }
	.art .art-appel { margin-top: 48px; margin-left: -16px; }
	.art .art-appel__col { width: auto; padding: 24px 16px; }
	.art .art-lies { margin-top: 40px; }
}

/* ---------- Images de rubrique des tracts importés depuis Tracteur ---------- */
/* Tracteur les envoie en 400 px (2 × la taille d'affichage) pour qu'elles restent nettes ;
   elles sont affichées à 200 px au plus, centrées sous le texte de leur rubrique.
   L'enveloppe .tract-image vient du plugin importtracts : les images des autres articles ne changent pas. */
.art .art-corps .tract-image { margin: 1.2em 0; text-align: center; }
.art .art-corps .tract-image img { width: auto; max-width: 200px; height: auto; }
/* Contenu réservé aux adhérents (inclure/reserve_adherents.html) : message, « Se connecter » et « Retour à l'accueil » */
.art .art-reserve { margin: calc(4 * var(--u)) 0; padding: 18px 22px; border-left: 6px solid var(--art-rouge); background: #f4f3f3; }
.art .art-reserve__texte { margin: 0 0 12px; font-size: 22px; color: var(--art-noir); }
.art .art-reserve__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.art .art-reserve a.art-reserve__btn, .art .art-reserve a.art-reserve__btn:visited { display: inline-block; padding: 10px 18px; border-radius: 4px; background: var(--art-rouge) !important; color: #fff !important; font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important; }
.art .art-reserve a.art-reserve__btn:hover, .art .art-reserve a.art-reserve__btn:focus-visible { background: #8f0905 !important; color: #fff !important; }
.art .art-reserve a.art-reserve__btn--clair, .art .art-reserve a.art-reserve__btn--clair:visited { background: #fff !important; color: var(--art-rouge) !important; box-shadow: inset 0 0 0 2px var(--art-rouge); }
.art .art-reserve a.art-reserve__btn--clair:hover, .art .art-reserve a.art-reserve__btn--clair:focus-visible { background: #f8e501 !important; color: var(--art-noir) !important; }
