/* ==========================================================================
   ActuFoot – main.css
   1. Tokens  2. Base  3. Header  4. Scores  5. Contenu  6. Footer  7. Mobile
   Les couleurs/rayons sont surchargés par le Customizer (inc/enqueue.php).
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--c-primary: #0a2bc8;
	--c-live: #d11a1a;
	--bg: #f1f1f1;
	--surface: #fdfcfb;
	--text: #2b2b2b;
	--muted: #6b6b6b;
	--border: #e8e6e3;
	--radius: 14px;
	--container: 1180px;
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--bottom-h: 64px;
}
[data-theme="dark"] {
	--muted: #9aa3b2;
	--border: #262c36;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--fs, 16px)/1.5 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.af-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.af-meta { margin: 4px 0 0; font-size: .8125rem; color: var(--muted); }
.af-icon-btn { background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; display: inline-flex; border-radius: 50%; }
.af-icon-btn:hover { background: rgba(255, 255, 255, .15); }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.af-header :focus-visible { outline-color: #fff; }
.af-menu { list-style: none; margin: 0; padding: 0; }

/* 3. Header ---------------------------------------------------------------- */
.af-header { background: var(--c-primary); color: #fff; position: sticky; top: 0; z-index: 50; }
.af-header__bar { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.af-header__actions { display: flex; gap: 4px; }
.af-logo { font-weight: 800; font-size: 1.375rem; letter-spacing: -.01em; }
.af-logo img { max-height: 36px; width: auto; }
.custom-logo-link { display: block; }

.af-ico-sun { display: none; }
[data-theme="dark"] .af-ico-sun { display: block; }
[data-theme="dark"] .af-ico-moon { display: none; }

.af-searchform { display: flex; gap: 8px; }
.af-searchform input { flex: 1; min-width: 0; padding: 10px 14px; border: 0; border-radius: 999px; font: inherit; }
.af-searchform button { padding: 10px 18px; border: 0; border-radius: 999px; background: #fff; color: var(--c-primary); font-weight: 600; cursor: pointer; }

.af-tabs { background: var(--surface); border-bottom: 1px solid var(--border); display: none; }
.af-tabs .af-menu { display: flex; gap: 4px; overflow-x: auto; }
.af-tabs a { display: block; padding: 14px 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.af-tabs .current-menu-item > a, .af-tabs a:hover { color: var(--text); }
.af-tabs .current-menu-item > a { font-weight: 700; }

.af-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.af-drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .2s; }
.af-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 85vw); background: var(--surface); padding: 24px; transform: translateX(-100%); transition: transform .25s; overflow-y: auto; z-index: 1; }
.drawer-open .af-drawer { visibility: visible; }
.drawer-open .af-drawer__overlay { opacity: 1; }
.drawer-open .af-drawer__panel { transform: none; }
.drawer-open { overflow: hidden; }
.af-menu--stack a { display: block; padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--border); }

.af-ad { padding-top: 12px; padding-bottom: 12px; text-align: center; }

/* 4. Scores ---------------------------------------------------------------- */
.af-scores { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.af-scores::-webkit-scrollbar { display: none; }
.af-score { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: .8125rem; }
.af-score__res { font-size: 1rem; color: var(--muted); }
.af-badge { font-style: normal; font-size: .6875rem; font-weight: 700; color: #fff; padding: 2px 6px; border-radius: 6px; }
.af-badge--live { background: var(--c-live); }
.af-score .af-badge { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); }

/* 5. Contenu --------------------------------------------------------------- */
.af-main { padding-top: 16px; padding-bottom: 32px; }
.af-grid { display: grid; gap: 24px; }
.af-col { min-width: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }

.af-hero { padding: 0 0 16px; border-bottom: 1px solid var(--border); }
.af-hero__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.af-hero__title { font-size: 1.5rem; font-weight: 800; padding: 16px 16px 0; }
.af-hero .af-meta { padding: 0 16px; }

.af-flash { border-bottom: 1px solid var(--border); }
.af-flash:last-of-type { border-bottom: 0; }
.af-flash__link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; }
.af-flash__title { font-size: 1.0625rem; font-weight: 700; }
.af-flash__thumb { flex: 0 0 96px; width: 96px; height: 72px; object-fit: cover; border-radius: calc(var(--radius) * .6); }
.af-flash__link:hover .af-flash__title { color: var(--c-primary); }
[data-theme="dark"] .af-flash__link:hover .af-flash__title { color: #fff; text-decoration: underline; }

.af-pagination { padding: 16px; text-align: center; }
.af-pagination:empty { display: none; } /* une seule page : pas de bloc vide sous le dernier article */
.af-pagination .page-numbers { display: inline-block; padding: 6px 12px; border-radius: 999px; }
.af-pagination .current { background: var(--c-primary); color: #fff; }
.af-empty { padding: 32px 16px; color: var(--muted); }

.af-side { min-width: 0; }
.af-widget { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.af-widget__title { font-size: 1rem; margin-bottom: 12px; }

/* 6. Footer ---------------------------------------------------------------- */

/* 7. Mobile / Desktop ------------------------------------------------------ */
.af-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.af-menu--bottom { display: flex; }
.af-menu--bottom li { flex: 1; }
.af-menu--bottom a { display: flex; align-items: center; justify-content: center; height: var(--bottom-h); font-size: .75rem; font-weight: 600; color: var(--muted); }
.af-menu--bottom .current-menu-item > a { color: var(--c-primary); }
[data-theme="dark"] .af-menu--bottom .current-menu-item > a { color: #fff; }
.has-bottom-nav { padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
	.af-tabs { display: block; }
	.af-bottom { display: none; }
	.has-bottom-nav { padding-bottom: 0; }
	.af-hero__title { font-size: 1.875rem; }
}
@media (min-width: 1024px) {
	.af-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* 8. Catalogue : pastilles, fiche d'entité, article --------------------- */
.af-chips { list-style: none; margin: 0; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.af-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: .8125rem; font-weight: 600; background: var(--surface); }
.af-chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
[data-theme="dark"] .af-chip:hover { color: #fff; border-color: #fff; }
.af-chip img { width: 20px; height: 20px; object-fit: contain; }

.af-entity__desc { padding: 16px; color: var(--muted); }
.af-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 16px; margin: 0; padding: 12px 16px 20px; border-bottom: 1px solid var(--border); }
.af-facts dt { font-size: .75rem; color: var(--muted); }
.af-facts dd { margin: 2px 0 0; font-weight: 600; }
.af-facts a:hover { text-decoration: underline; }

.af-article__head { padding: 20px 16px 12px; }
.af-article__title { font-size: 1.625rem; font-weight: 800; margin: 4px 0 8px; }
.af-article__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.af-article__content { padding: 16px; max-width: 70ch; }
.af-article__content a { color: var(--c-primary); text-decoration: underline; }
[data-theme="dark"] .af-article__content a { color: #9db4ff; }

/* 9. Accueil : badges, score, plus lus, sidebar à onglets --------------- */
.af-badge--official { background: var(--c-primary); }
.af-meta .af-badge { margin-right: 6px; }
.af-hero__meta { padding: 8px 16px 0; }

.af-matchbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 16px 4px; padding: 12px 16px 18px; background: var(--bg); border-radius: var(--radius); font-size: .9375rem; }
.af-matchbar__team { flex: 1; }
.af-matchbar__team--away { text-align: right; }
.af-matchbar__score { font-size: 1.125rem; }
.af-matchbar .af-badge { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); }

.af-ad--inline { border-bottom: 1px solid var(--border); }

.af-popular { padding: 20px 0 8px; border-bottom: 1px solid var(--border); }
.af-popular__title { font-size: 1.125rem; padding: 0 16px 12px; }
.af-popular__list { list-style: none; margin: 0; padding: 0 16px 12px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.af-popular__list::-webkit-scrollbar { display: none; }
.af-popular__item { flex: 0 0 min(260px, 72%); scroll-snap-align: start; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.af-popular__item a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding-bottom: 14px; }
.af-popular__item .af-meta { padding: 8px 14px 0; margin: 0; }
.af-popular__media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--bg); overflow: hidden; }
.af-popular__media img { width: 100%; height: 100%; object-fit: cover; }
.af-popular__rank { position: absolute; right: 10px; bottom: -6px; font-size: 3.5rem; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.af-popular__name { padding: 0 14px; font-weight: 700; line-height: 1.3; }
.af-popular__item a:hover .af-popular__name { text-decoration: underline; }

.af-side { display: none; }
.af-sidetabs { background: var(--surface); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.af-sidetabs__nav { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--border); }
.af-sidetabs__nav button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 8px; font: inherit; font-size: .875rem; color: var(--muted); cursor: pointer; }
.af-sidetabs__nav button[aria-selected="true"] { color: var(--text); font-weight: 700; border-bottom-color: var(--c-primary); }
.af-sidelist { list-style: none; margin: 0; padding: 0; }
.af-sidelist li { border-bottom: 1px solid var(--border); }
.af-sidelist a { display: block; padding: 12px 16px; }
.af-sidelist__title { display: block; font-weight: 600; line-height: 1.3; }
.af-sidelist a:hover .af-sidelist__title { color: var(--c-primary); }
[data-theme="dark"] .af-sidelist a:hover .af-sidelist__title { color: #fff; text-decoration: underline; }
.af-sidetabs__all { display: block; margin: 12px 16px 16px; padding: 8px; text-align: center; border-radius: 999px; background: var(--bg); font-weight: 600; font-size: .875rem; }
.af-sidetabs__panel[hidden] { display: none; }

@media (min-width: 1024px) {
	.af-side { display: block; }
}

/* 10. Article, archives, recherche, 404 (v0.4.0) ----------------------- */
.af-article__cat { font-weight: 700; color: var(--c-primary); }
[data-theme="dark"] .af-article__cat { color: #9db4ff; }
.af-article__cat:hover { text-decoration: underline; }
.af-byline { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.af-byline__avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.af-byline__text { margin: 0; line-height: 1.4; }
.af-byline__name { color: var(--text); font-weight: 700; }
.af-byline__name:hover { text-decoration: underline; }
.af-article__figure { margin: 0; position: relative; }
.af-article__credit { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .6875rem; }

.af-actions { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.af-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.af-action:hover { border-color: var(--c-primary); }
.af-action:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.af-action[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.af-action[aria-pressed="true"] svg { fill: currentColor; }
.af-action__status { margin-left: auto; font-size: .75rem; color: var(--muted); }
.af-article__content { font-size: var(--fs-article, 17px); line-height: 1.7; }
.af-article__content > * + * { margin-top: 1em; }
.af-article__content h2, .af-article__content h3 { margin-top: 1.6em; }
.af-article__content blockquote { margin-left: 0; padding: 4px 16px; border-left: 4px solid var(--c-primary); color: var(--muted); }
.af-article__content figure { margin-left: 0; margin-right: 0; }
.af-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 16px 16px; }
.af-tags a { font-size: .8125rem; color: var(--muted); }
.af-tags a:hover { color: var(--c-primary); text-decoration: underline; }
.af-pages { padding: 0 16px; }

.af-related { padding: 20px 16px 8px; border-top: 1px solid var(--border); }
.af-related__title { font-size: 1.125rem; margin-bottom: 12px; }
.af-related__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.af-related__item a { display: flex; flex-direction: column; gap: 4px; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding-bottom: 12px; }
.af-related__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.af-related__name { padding: 6px 12px 0; font-weight: 700; font-size: .9375rem; line-height: 1.3; }
.af-related__item .af-meta { padding: 0 12px; margin: 0; }
.af-related__item a:hover .af-related__name { text-decoration: underline; }

.af-comments { padding: 24px 16px; border-top: 1px solid var(--border); }
.af-comments__title { font-size: 1.125rem; margin-bottom: 16px; }
.af-comments__list, .af-comments__list .children { list-style: none; margin: 0; padding: 0; }
.af-comments__list .children { margin-left: 24px; }
.af-comments__list .comment-body { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.af-comments__list .comment-author { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.af-comments__list .avatar { border-radius: 50%; }
.af-comments__list .comment-metadata { font-size: .75rem; color: var(--muted); }
.af-comments__list .comment-metadata a { color: inherit; }
.af-comments__list .reply a { font-size: .8125rem; font-weight: 600; color: var(--c-primary); }
.comment-form { display: grid; gap: 12px; margin-top: 16px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px); background: var(--surface); color: var(--text); font: inherit; }
.comment-form input:focus-visible, .comment-form textarea:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.af-btn, .comment-form .submit { display: inline-block; padding: 10px 20px; border: 0; border-radius: 999px; background: var(--c-primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.af-btn:hover, .comment-form .submit:hover { filter: brightness(1.1); }

.af-archive { padding: 20px 16px 12px; border-bottom: 1px solid var(--border); }
.af-archive__title { font-size: 1.625rem; font-weight: 800; margin-top: 2px; }
.af-archive__desc { margin: 8px 0 0; color: var(--muted); }
.af-archive__author { display: flex; align-items: center; gap: 16px; }
.af-archive__author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.af-archive__form { margin-top: 12px; }

.af-results { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--border); }
.af-result { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.af-result:hover .af-result__name { text-decoration: underline; }
.af-result__logo { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); }
.af-result__logo img { width: 32px; height: 32px; object-fit: contain; }
.af-result .af-meta { display: block; margin: 0; }

.af-404 { padding: 40px 16px 24px; text-align: center; }
.af-404__code { margin: 0; font-size: 5rem; font-weight: 800; line-height: 1; color: var(--c-primary); }
[data-theme="dark"] .af-404__code { color: #9db4ff; }
.af-404 .af-archive__form, .af-404 .af-btn { margin-top: 16px; }

@media (min-width: 768px) {
	.af-related__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.af-article__title { font-size: 2.125rem; }
}

/* 11. Icônes de menus, réseaux, pub sticky (v0.5.0) ------------------- */
.af-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.af-ico { display: inline-flex; }
.af-menu--bottom a { position: relative; flex-direction: column; gap: 2px; padding-top: 6px; font-size: .6875rem; }
.af-menu--bottom .af-ico svg { width: 26px; height: 26px; }
.af-menu--bottom .current-menu-item svg { fill: currentColor; fill-opacity: .2; }
.af-menu--bottom a:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -4px; border-radius: 8px; }
.af-menu__count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--c-live); color: #fff; font-size: .6875rem; font-weight: 700; line-height: 18px; text-align: center; }
.af-menu--bottom .af-menu__count { position: absolute; top: 4px; left: calc(50% + 4px); }
.af-tabs .af-menu__count { margin-left: 4px; vertical-align: 2px; }

.af-menu--apps { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }

.af-sticky-ad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; justify-content: center; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); }
.has-bottom-nav .af-sticky-ad { bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: 4px; }
.af-sticky-ad .af-widget { margin: 0; padding: 0; background: none; }
.af-sticky-ad__close { position: absolute; top: -26px; right: 8px; width: 26px; height: 26px; border: 1px solid var(--border); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--surface); color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; }
.af-sticky-ad[hidden] { display: none; }
.has-sticky-ad { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
.has-sticky-ad.has-bottom-nav { padding-bottom: calc(var(--bottom-h) + 60px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) {
	.af-sticky-ad { display: none; }
	.has-sticky-ad { padding-bottom: 0; }
}

/* 12. Article façon référence (v0.5.1) --------------------------------- */
.af-articlebar { position: relative; background: var(--surface); }
.af-articlebar__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; }
.af-articlebar__back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -8px; border-radius: 50%; }
.af-articlebar .af-actions { padding: 0; border: 0; gap: 4px; }
.af-articlebar .af-action { border: 0; background: none; min-width: 44px; padding: 0 8px; position: relative; }
.af-articlebar .af-action[aria-pressed="true"] { background: none; color: var(--c-primary); }
[data-theme="dark"] .af-articlebar .af-action[aria-pressed="true"] { color: #9db4ff; }
.af-articlebar .af-action--comments { margin-left: 4px; padding: 0 18px; background: var(--bg); border-radius: 999px; }
.af-action__count { position: absolute; top: -6px; right: -4px; min-width: 24px; padding: 2px 7px; border-radius: 6px; background: var(--c-primary); color: #fff; font-size: .75rem; line-height: 1.2; text-align: center; }
.af-articlebar .af-action__status { position: absolute; left: 16px; bottom: -22px; z-index: 2; }
.af-progress { height: 4px; background: var(--border); }
.af-progress__bar { width: 0; height: 100%; background: var(--c-progress, var(--c-primary)); } /* réglable : Personnaliser > Couleurs (v0.10.2) */

.af-article__kicker { margin: 0; }
.af-article__cat { font-weight: 400; color: var(--muted); }
[data-theme="dark"] .af-article__cat { color: var(--muted); }
.af-article__title { font-size: 1.875rem; line-height: 1.2; }
.af-byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.af-byline__text, .af-byline__time { margin: 0; }
.af-byline__time { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.af-byline__name { color: inherit; font-weight: 400; }
.af-article__figure { margin: 8px 16px 0; border-radius: var(--radius); overflow: hidden; }
.af-article__credit { background: none; padding: 0; right: 20px; bottom: 14px; font-size: .9375rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.af-article__content { max-width: none; }
.af-article__content a { color: inherit; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--text); }
.af-article__content a:hover { text-decoration-color: var(--c-primary); }
[data-theme="dark"] .af-article__content a { color: inherit; }

@media (max-width: 1023px) {
	.single .af-header, .single .af-tabs { display: none; }
	.af-articlebar { position: sticky; top: 0; z-index: 70; box-shadow: 0 1px 0 var(--border); }
}
@media (min-width: 1024px) {
	.af-article__content { max-width: 70ch; }
}

/* 13. Mobile : pleine largeur, comme la référence (v0.5.2) ------------- */
@media (max-width: 1023px) {
	.af-main.af-container { padding: 0; } /* v0.10.1 : plus de bande grise entre le contenu et le texte SEO / footer */
	.af-col { border-radius: 0; }
	.af-articlebar__row { padding: 8px 12px; }
	.af-articlebar__back { margin-left: 0; }
}

/* 14. Barre d'article réellement collante (v0.5.3) --------------------- */
/* overflow:hidden sur la colonne bloquait position:sticky ; clip garde l'arrondi sans créer de conteneur de défilement. */
.af-col { overflow: visible; }
@supports (overflow: clip) {
	.af-col { overflow: clip; }
}
@media (max-width: 1023px) {
	.af-col { overflow: visible; }
	.af-articlebar { position: sticky; top: 0; z-index: 70; }
}

/* 15. Barre du bas flottante façon iOS (v0.5.4) ------------------------ */
@media (max-width: 1023px) {
	.af-bottom {
		left: 12px; right: 12px; bottom: calc(8px + env(safe-area-inset-bottom));
		max-width: 560px; margin: 0 auto; padding: 4px;
		border: 1px solid var(--border); border-radius: 999px;
		background: var(--surface);
		box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	}
	@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
		.af-bottom {
			background: color-mix(in srgb, var(--surface) 78%, transparent);
			-webkit-backdrop-filter: blur(18px) saturate(1.5);
			backdrop-filter: blur(18px) saturate(1.5);
		}
	}
	.af-menu--bottom { gap: 2px; }
	.af-menu--bottom a { height: calc(var(--bottom-h) - 8px); padding: 6px 2px 4px; border-radius: 999px; font-size: .6875rem; white-space: nowrap; }
	.af-menu--bottom .af-ico svg { width: 24px; height: 24px; }
	.af-menu--bottom .current-menu-item > a { background: rgba(127, 127, 127, .18); color: var(--c-primary); }
	[data-theme="dark"] .af-menu--bottom .current-menu-item > a { color: #fff; }
	.af-menu--bottom .current-menu-item svg { fill: none; }
	.af-menu--bottom .af-menu__count { top: 2px; left: calc(50% + 6px); }
	.has-bottom-nav { padding-bottom: calc(var(--bottom-h) + 24px + env(safe-area-inset-bottom)); }
	.has-bottom-nav .af-sticky-ad { bottom: calc(var(--bottom-h) + 16px + env(safe-area-inset-bottom)); }
	.has-sticky-ad.has-bottom-nav { padding-bottom: calc(var(--bottom-h) + 84px + env(safe-area-inset-bottom)); }
}

/* 16. Desktop : colonnes collées, un seul bloc comme la référence (v0.5.5) */
@media (min-width: 1024px) {
	.af-main.af-container { padding: 0; background: var(--surface); }
	.af-grid { gap: 0; align-items: stretch; }
	.af-col { background: none; border-radius: 0; }
	.af-side { border-left: 1px solid var(--border); padding: 0 20px 24px; }
	.af-sidetabs { background: none; border-radius: 0; margin: 0 0 8px; overflow: visible; }
	.af-sidetabs__nav { padding: 0; }
	.af-widget { background: none; border-radius: 0; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--border); }
	.af-flash:last-child { border-bottom: 0; }
}

/* 17. Barre d'article : mobile uniquement (v0.5.6) --------------------- */
@media (min-width: 1024px) {
	.af-articlebar { position: static; box-shadow: none; background: none; }
	.af-articlebar__back, .af-progress { display: none; }
	.af-articlebar__row { justify-content: flex-start; padding: 16px 16px 0; }
	.af-articlebar .af-action--comments { margin-left: 0; }
}

/* 18. Bloc Google (v0.5.7) */
.af-gpref { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 16px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.af-gpref__title { margin: 0; font-weight: 800; font-size: 1.0625rem; letter-spacing: .02em; text-transform: uppercase; }
.af-gpref__desc { margin: 4px 0 0; color: var(--muted); font-size: .9375rem; }
.af-gpref__btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 14px; background: var(--bg); color: var(--text); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.af-gpref__btn:hover { filter: brightness(.96); }
[data-theme="dark"] .af-gpref__btn { background: #242b36; }
[data-theme="dark"] .af-gpref__btn:hover { filter: brightness(1.15); }
.af-gpref__btn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
@media (max-width: 480px) {
	.af-gpref { gap: 12px; }
	.af-gpref__btn { padding: 12px 14px; }
}

/* 19. Barre d'article : visible uniquement avec la barre mobile du bas (v0.5.8) */
@media (min-width: 1024px) {
	.af-articlebar { display: none; }
}

/* 20. Fil d'Ariane, mentions, bouton Partager (v0.6.1) ------------------ */
.af-crumbs { padding: 14px 16px 0; overflow-x: auto; scrollbar-width: none; }
.af-crumbs::-webkit-scrollbar { display: none; }
.af-crumbs ol { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.af-crumbs li { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.af-crumbs a, .af-crumbs__text { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.af-crumbs a:hover { color: var(--text); }
.af-crumbs a:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; border-radius: 4px; }
.af-crumbs li:last-child a { color: var(--text); }
.af-crumbs img { width: 18px; height: 18px; object-fit: contain; }
.af-crumbs__sep { flex: none; opacity: .6; }
.af-article__kicker { margin-top: 10px; }

.af-mentions { padding: 8px 16px 0; }
.af-mentions__title { margin: 0 0 12px; font-size: 1.0625rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.af-mentions .af-chips { padding: 0; gap: 10px; }
.af-mentions .af-chip { padding: 12px 20px; border: 0; border-radius: 14px; background: var(--bg); font-size: 1rem; font-weight: 700; }
[data-theme="dark"] .af-mentions .af-chip { background: #242b36; }
.af-mentions .af-chip:hover { filter: brightness(.96); color: inherit; }
[data-theme="dark"] .af-mentions .af-chip:hover { filter: brightness(1.15); color: #fff; border: 0; }

.af-sharebar { display: flex; align-items: center; gap: 12px; padding: 24px 16px 8px; }
.af-sharebtn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border: 0; border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; font-size: 1.0625rem; font-weight: 700; cursor: pointer; }
[data-theme="dark"] .af-sharebtn { background: #242b36; }
.af-sharebtn:hover { filter: brightness(.96); }
[data-theme="dark"] .af-sharebtn:hover { filter: brightness(1.15); }
.af-sharebtn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.af-sharebar .af-action__status { position: static; }

/* 21. Ajustements fil d'Ariane et boutons (v0.6.2) --------------------- */
.af-article__head .af-crumbs { padding: 0; margin: 0 0 12px; }
.af-article__head .af-article__kicker { margin: 0 0 8px; }
.af-mentions__title { font-size: .9375rem; margin-bottom: 10px; }
.af-mentions .af-chips { gap: 8px; }
.af-mentions .af-chip { padding: 8px 14px; border-radius: 12px; font-size: .875rem; }
.af-sharebar { padding-top: 18px; }
.af-sharebtn { gap: 8px; padding: 9px 16px; border-radius: 12px; font-size: .875rem; }
.af-sharebtn svg { width: 18px; height: 18px; }

/* 22. Version 0.6.3 : bouton Google compact, bloc SEO repliable, titres défilants ----------- */
.af-gpref { gap: 12px; padding: 14px 0; }
.af-gpref__title { font-size: .9375rem; }
.af-gpref__desc { font-size: .8125rem; }
.af-gpref__btn { gap: 8px; padding: 8px 14px; border-radius: 10px; font-size: .8125rem; }
.af-gpref__btn svg { width: 18px; height: 18px; }


.af-sidelist__title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.af-sidelist__tt { display: inline; transition: transform .25s ease; }
.af-sidelist__title.is-overflowing { text-overflow: clip; }
.af-sidelist__title.is-overflowing .af-sidelist__tt { display: inline-block; }
.af-sidelist a:hover .af-sidelist__title.is-overflowing .af-sidelist__tt,
.af-sidelist a:focus-visible .af-sidelist__title.is-overflowing .af-sidelist__tt { transform: translateX(var(--af-shift, 0)); transition: transform var(--af-dur, 2s) linear .2s; }
@media (prefers-reduced-motion: reduce) {
	.af-sidelist a:hover .af-sidelist__title.is-overflowing .af-sidelist__tt { transform: none; }
}

/* 23. Texte SEO de l'accueil (style FootActu, v0.9.1) : petits caractères ; replié avec fondu sur
   mobile et tablette (classe is-collapsed posée par main.js sous 1024 px), entier sur ordinateur. */
.af-seo { margin: 0; padding: 1.4rem 16px .6rem; border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .8rem; line-height: 1.75; }
.af-seo + .af-footer { margin-top: 0; }
.af-seo__title { margin: 0 0 .5rem; font-size: .875rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.af-seo__text p { margin: 0 0 .7rem; }
.af-seo__text strong { color: var(--text); }
.af-seo__text a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.af-seo__text a:hover { color: var(--text); }
.af-seo__toggle { display: block; margin: .3rem auto 0; padding: .3rem .8rem; border: 0; background: none; color: var(--text); font: 600 .85rem/1 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.af-seo__toggle[hidden] { display: none; }
.af-seo__toggle:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
@media (max-width: 1023px) {
	.af-seo.is-collapsed .af-seo__text { max-height: 7em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
}
@media (min-width: 1024px) {
	.af-seo { padding-left: 20px; padding-right: 20px; }
	.af-seo__toggle { display: none; }
}

/* 24. « Les plus lus » aligné sur les articles : le scroll-snap collait la 1re carte au bord (v0.7.0) */
.af-popular__list { scroll-padding-inline: 16px; }

/* 25. Pages d'entités : effectif / équipes (v0.7.0) */
.af-members { padding: 16px; border-bottom: 1px solid var(--border); }
.af-members__title { margin: 0 0 10px; font-size: 1rem; font-weight: 800; }
.af-members .af-chips { padding: 0; gap: 8px; }
.af-page .af-article__content { padding-top: 8px; }

/* 8. Recherche instantanée (template-parts/search-panel.php, assets/js/search.js) ---------------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.af-sp-open, .af-sp-open body { overflow: hidden; }
.af-sp { position: fixed; inset: 0; z-index: 100000; } /* au-dessus de la barre d'admin WordPress */
.af-sp[hidden] { display: none; }
.af-sp__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 16, .55); animation: af-sp-fade .2s ease-out; }
.af-sp.is-closing .af-sp__backdrop { animation: af-sp-fade-out .18s ease-in forwards; }
.af-sp__box {
	position: relative; display: flex; flex-direction: column; height: 100%;
	background: var(--surface); color: var(--text);
	padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
	animation: af-sp-in .16s ease-out;
}
@keyframes af-sp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes af-sp-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes af-sp-fade { from { opacity: 0; } }
@keyframes af-sp-fade-out { to { opacity: 0; } }
.af-sp.is-closing .af-sp__box { animation: af-sp-out .18s ease-in forwards; }

.af-sp__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.af-sp__form { flex: 1; min-width: 0; margin: 0; }
.af-sp__field {
	display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 16px;
	border: 1.5px solid var(--text); border-radius: 999px; background: var(--surface); cursor: text;
}
.af-sp__field:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(127, 127, 127, .25); }
.af-sp__input {
	flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text);
	font: 500 1rem/1 var(--font); /* 16 px minimum : iOS ne zoome pas au focus. */
}
.af-sp__input::placeholder { color: var(--muted); }
.af-sp__input::-webkit-search-cancel-button { display: none; }
.af-sp__clear, .af-sp__close { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 50%; }
.af-sp__clear[hidden] { display: none; }
.af-sp__clear { width: 32px; height: 32px; color: var(--muted); }
.af-sp__close { width: 44px; height: 44px; }
.af-sp__clear:hover, .af-sp__close:hover { background: var(--bg); }

.af-sp__tabs { display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.af-sp__tabs[hidden] { display: none; }
.af-sp__tabs::-webkit-scrollbar { display: none; }
.af-sp__tabs button {
	flex: 0 0 auto; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px;
	background: none; color: var(--text); font: 600 .875rem/1 var(--font); cursor: pointer;
}
.af-sp__tabs [aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--surface); }

.af-sp__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.af-sp__results[hidden], .af-sp__suggest[hidden] { display: none; }
.af-sp.is-loading .af-sp__results { opacity: .55; transition: opacity .15s .1s; }
.af-sp__list { list-style: none; margin: 0; padding: 0; }
.af-sp__title { margin: 0; padding: 18px 20px 6px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.af-sp__row { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px 16px 10px 20px; border-bottom: 1px solid var(--border); }
.af-sp__row:hover, .af-sp__row:focus-visible { background: var(--bg); }
.af-sp__row:focus-visible { outline-offset: -2px; }
.af-sp__logo { flex: 0 0 32px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.af-sp__logo img { width: 32px; height: 32px; object-fit: contain; }
.af-sp__row--joueur .af-sp__logo img { border-radius: 50%; object-fit: cover; background: var(--bg); }
.af-sp__row--post .af-sp__logo { flex-basis: 64px; width: 64px; height: 44px; }
.af-sp__row--post .af-sp__logo img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }
.af-sp__initial { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); font-weight: 700; }
.af-sp__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.af-sp__name { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.af-sp__row--post .af-sp__name { font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.af-sp__sub { font-size: .8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-sp__chev { flex: 0 0 auto; color: var(--text); }
.af-sp__msg { margin: 0; padding: 24px 20px; color: var(--muted); }
.af-sp__more { display: block; margin: 16px 20px 24px; padding: 12px 16px; border-radius: 999px; background: var(--c-primary); color: #fff; font-weight: 600; text-align: center; }
.af-sp__more:hover { filter: brightness(1.08); }

.af-sp__foot { display: flex; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); }
.af-sp__mode { display: inline-flex; align-items: center; gap: 10px; padding: 6px 4px; border: 0; background: none; color: var(--text); font: 500 .875rem/1 var(--font); cursor: pointer; }
.af-sp__switch { position: relative; width: 44px; height: 24px; border: 1.5px solid var(--text); border-radius: 999px; }
.af-sp__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--text); transition: transform .15s; }
[data-theme="dark"] .af-sp__switch::after { transform: translateX(20px); }
.af-sp__mode-light { display: none; }
[data-theme="dark"] .af-sp__mode-light { display: inline; }
[data-theme="dark"] .af-sp__mode-dark { display: none; }

/* Ordinateur et tablette : tiroir qui sort de la droite, comme un menu (la page reste visible). */
@keyframes af-sp-slide { from { transform: translateX(100%); } }
@keyframes af-sp-slide-out { to { transform: translateX(100%); } }
@media (min-width: 768px) {
	.af-sp__box {
		position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 90vw); height: auto;
		box-shadow: -16px 0 48px rgba(0, 0, 0, .22);
		animation: af-sp-slide .24s cubic-bezier(.2, .8, .2, 1);
	}
	.af-sp.is-closing .af-sp__box { animation: af-sp-slide-out .18s ease-in forwards; }
	.af-sp__head { padding: 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.af-sp__box, .af-sp__backdrop, .af-sp.is-closing .af-sp__box, .af-sp.is-closing .af-sp__backdrop { animation: none; }
	.af-sp__switch::after, .af-sp.is-loading .af-sp__results { transition: none; }
}

/* 9. Clubs du moment (sidebar desktop, inc/clubs.php) --------------------------------------- */
.af-clubs { padding: 20px 0 8px; }
.af-clubs__title { margin: 0 0 14px; font-size: 1rem; font-weight: 800; }
.af-clubs__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.af-clubs__item {
	display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%;
	background: var(--bg); transition: box-shadow .15s;
}
.af-clubs__item img { width: 60%; height: 60%; object-fit: contain; }
.af-clubs__item:hover { box-shadow: inset 0 0 0 2px var(--border); }
.af-clubs__item:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .af-clubs__item { transition: none; } }

/* 10. Blocs de l'accueil (inc/home-blocks.php, template-parts/home-block.php) ------------------ */
.af-hb { padding: 24px 16px 8px; border-top: 1px solid var(--border); }
.af-hb__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.af-hb__title { font-size: 1.25rem; font-weight: 800; }
.af-hb__more { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; font-size: .875rem; font-weight: 600; color: var(--muted); }
.af-hb__more:hover { color: var(--text); }
.af-hb__card a { display: block; }
.af-hb__media { display: block; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--bg); }
.af-hb__media img { width: 100%; height: 100%; object-fit: cover; }
.af-hb__body { display: block; padding-top: 10px; }
.af-hb__name { font-size: 1rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.af-hb__card a:hover .af-hb__name { color: var(--c-primary); }
[data-theme="dark"] .af-hb__card a:hover .af-hb__name { color: inherit; text-decoration: underline; }
.af-hb__time { display: block; margin-top: 6px; font-size: .8125rem; color: var(--muted); }

/* Mobile : les cartes défilent à l'horizontale. */
.af-hb__grid { list-style: none; margin: 0 -16px; padding: 0 16px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; }
.af-hb__grid::-webkit-scrollbar { display: none; }
.af-hb__grid > li { scroll-snap-align: start; }
.af-hb--cards6 .af-hb__grid { grid-auto-columns: 72%; }
.af-hb__card--big { margin-bottom: 20px; }
.af-hb__card--big .af-hb__name { font-size: 1.375rem; line-height: 1.25; -webkit-line-clamp: 4; }

@media (min-width: 768px) {
	.af-hb { padding: 28px 20px 12px; }
	.af-hb__grid { margin: 0; padding: 0 0 8px; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; gap: 24px 18px; overflow: visible; }
	.af-hb__card--big a { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
	.af-hb__card--big .af-hb__body { padding-top: 0; }
	.af-hb__card--big .af-hb__name { font-size: 1.75rem; }
	.af-hb__card--big { margin-bottom: 28px; }
}

/* 11. Formulaire de contact (inc/contact.php) -------------------------------------------------- */
.af-contact { max-width: 640px; }
.af-contact__form .af-field { margin: 0 0 16px; }
.af-contact__form label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 700; }
.af-contact__form input, .af-contact__form select, .af-contact__form textarea {
	width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px;
	background: var(--surface); color: var(--text); font: inherit; font-size: 1rem;
}
.af-contact__form textarea { resize: vertical; min-height: 160px; }
.af-contact__form input:focus, .af-contact__form select:focus, .af-contact__form textarea:focus { outline: 2px solid var(--c-primary); outline-offset: 0; border-color: transparent; }
.af-contact__send { padding: 12px 28px; }
.af-contact__note { font-size: .8125rem; color: var(--muted); }
.af-contact__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.af-contact__notice { padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.af-contact__notice--ok { background: #e8f5ec; color: #14532d; }
.af-contact__notice--err { background: #fdecec; color: #7f1d1d; }
[data-theme="dark"] .af-contact__notice--ok { background: #12301d; color: #c6f0d4; }
[data-theme="dark"] .af-contact__notice--err { background: #3a1416; color: #ffd4d4; }
.af-article__content .af-contact a { color: inherit; }

/* 12. Footer en colonnes (v0.9.2) : présentation, tendances, liens utiles, réseaux, bas de page. */
.af-footer { background: var(--surface); color: var(--text); border-top: 1px solid var(--border); }
.af-footer__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-top: 36px; padding-bottom: 28px; }
.af-footer__brand { grid-column: 1 / -1; }
.af-footer__logo { display: inline-block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.af-footer__about { max-width: 56ch; margin: 10px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.af-footer__title { margin: 0 0 14px; font-size: .8125rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.af-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.af-footer__list a { font-size: .9375rem; }
.af-footer__list a:hover { color: var(--c-primary); }
[data-theme="dark"] .af-footer__list a:hover { color: inherit; text-decoration: underline; }
.af-footer__social a { display: inline-flex; align-items: center; gap: 12px; }
.af-footer__social .af-ico { display: inline-flex; width: 20px; height: 20px; }
.af-footer__social .af-ico svg { width: 20px; height: 20px; }
.af-footer__social { gap: 16px; }
.af-menu--apps { display: flex; gap: 8px; margin-top: 16px; }
.af-menu--apps a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); transition: background .15s; }
.af-menu--apps a:hover { background: var(--border); }
.af-footer__widgets { padding-bottom: 24px; }
/* Bas de page : texte et trait alignés sur les colonnes (bloc interne au container). */
.af-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--muted); }
.af-footer__copy { margin: 0; }
.af-footer__legal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.af-footer__legal-list a:hover { color: var(--text); text-decoration: underline; }
@media (min-width: 768px) {
	.af-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.af-footer__top { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 44px; }
	.af-footer__brand { grid-column: auto; padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) { .af-menu--apps a { transition: none; } }

/* 13. En-tête d'entité et pages clubs façon Foot Mercato (v0.10.0) ----------------------------- */
.af-entity { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 16px 18px; overflow: hidden; }
.af-entity__mark {
	position: absolute; right: 12px; bottom: -.18em; z-index: 0; pointer-events: none; user-select: none;
	font-size: clamp(4.5rem, 16vw, 8rem); font-weight: 900; line-height: 1; letter-spacing: -.04em;
	color: var(--text); opacity: .06; white-space: nowrap;
}
.af-entity__badge { position: relative; z-index: 1; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bg); }
.af-entity__logo { width: 42px; height: 42px; object-fit: contain; }
.af-entity__initial { font-size: 1.5rem; font-weight: 800; color: var(--muted); }
.af-entity__id { position: relative; z-index: 1; flex: 1; min-width: 0; }
.af-entity__title { margin: 0; font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.af-entity__sub { margin: 2px 0 0; font-size: .9375rem; color: var(--muted); }
.af-entity__follow { position: relative; z-index: 1; flex: 0 0 auto; border: 0; background: none; }
.af-entity__follow[aria-pressed="true"] { background: none; color: var(--c-primary); }

/* Onglets (Infos / Actu / Effectif) : liens, la page active est soulignée. */
.af-etabs { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.af-etabs ul { list-style: none; margin: 0; padding: 0 8px; display: flex; overflow-x: auto; scrollbar-width: none; }
.af-etabs ul::-webkit-scrollbar { display: none; }
.af-etabs a { display: block; padding: 14px 12px 12px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 500; white-space: nowrap; }
.af-etabs a:hover { color: var(--text); }
.af-etabs a[aria-current="page"] { color: var(--text); font-weight: 700; border-bottom-color: var(--c-primary); }

/* Cartes d'infos : bande grise, cartes blanches, défilement horizontal sur mobile. */
.af-ccards { display: flex; gap: 12px; padding: 16px; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--border); }
.af-ccards::-webkit-scrollbar { display: none; }
.af-ccard { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; min-width: 120px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.af-ccard__label { font-size: .75rem; font-weight: 600; color: var(--muted); }
.af-ccard__value { font-size: 1rem; font-weight: 700; white-space: nowrap; }
.af-ccard__value a:hover { text-decoration: underline; }

.af-club-latest { border-top: 1px solid var(--border); }
.af-club-latest__title { padding: 24px 16px 4px; }
.af-club-more { margin: 0; padding: 20px 16px 28px; text-align: center; }

/* Effectif : groupes par poste, une ligne par joueur. */
.af-squad { padding: 20px 16px 8px; border-bottom: 1px solid var(--border); }
.af-squad__title { margin: 0 0 8px; font-size: 1.125rem; font-weight: 800; }
.af-squad__count { margin-left: 4px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.af-squad__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.af-squad__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.af-squad__list li:last-child .af-squad__row { border-bottom: 0; }
.af-squad__photo { flex: 0 0 44px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--bg); color: var(--muted); font-weight: 700; }
.af-squad__photo img { width: 44px; height: 44px; object-fit: cover; }
.af-squad__txt { display: flex; flex-direction: column; min-width: 0; }
.af-squad__name { font-weight: 600; }
.af-squad__row:hover .af-squad__name { color: var(--c-primary); }
[data-theme="dark"] .af-squad__row:hover .af-squad__name { color: inherit; text-decoration: underline; }
.af-squad__sub { font-size: .8125rem; color: var(--muted); }

@media (min-width: 768px) {
	.af-entity { padding: 28px 20px 22px; gap: 18px; }
	.af-entity__badge { width: 80px; height: 80px; }
	.af-entity__logo { width: 52px; height: 52px; }
	.af-entity__title { font-size: 1.75rem; }
	.af-etabs ul { padding: 0 12px; }
	.af-ccards { padding: 20px; }
	.af-club-latest__title { padding: 28px 20px 4px; }
	.af-squad { padding: 24px 20px 12px; }
	.af-squad__list { grid-template-columns: 1fr 1fr; column-gap: 24px; }
	.af-squad__list li:last-child .af-squad__row { border-bottom: 1px solid var(--border); }
}

/* 14. Pages championnats (v0.10.4) : clubs du moment dans la colonne, équipes et stades -------- */
.af-clubs--inline { padding: 22px 16px 12px; border-top: 1px solid var(--border); }
.af-clubs--inline .af-hb__title { margin: 0 0 14px; }
.af-teams-wrap { padding: 20px 16px 24px; }
.af-teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.af-team { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.af-team__logo { flex: 0 0 48px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--bg); color: var(--muted); font-weight: 700; }
.af-team__logo img { width: 30px; height: 30px; object-fit: contain; }
.af-team__txt { display: flex; flex-direction: column; min-width: 0; }
.af-team__name { font-weight: 600; }
.af-team:hover .af-team__name { color: var(--c-primary); }
[data-theme="dark"] .af-team:hover .af-team__name { color: inherit; text-decoration: underline; }
.af-team__sub { font-size: .8125rem; color: var(--muted); }
@media (min-width: 768px) {
	.af-clubs--inline { padding: 26px 20px 14px; }
	.af-clubs--inline .af-clubs__grid { grid-template-columns: repeat(10, 1fr); gap: 8px; }
	.af-teams-wrap { padding: 24px 20px 28px; }
	.af-teams { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

/* 15. Données sportives : matchs, classement, buteurs (v0.11.0) --------------------------------- */
.af-datasec { padding: 22px 16px 10px; }
.af-datasec--home { border-top: 1px solid var(--border); }
.af-datasec .af-squad__title { margin-bottom: 14px; }
.af-datasec--home .af-hb__head { margin-bottom: 10px; }
.af-muted { color: var(--muted); font-weight: 500; }
.af-pos { color: #2e9e4f; }
.af-neg { color: #d6303a; }
[data-theme="dark"] .af-pos { color: #4cc774; }
[data-theme="dark"] .af-neg { color: #ff6b73; }
.af-updated { margin: 12px 0 4px; font-size: .75rem; color: var(--muted); }

/* Forme et résultats : pastilles V / N / D */
.af-pills { display: inline-flex; gap: 3px; vertical-align: middle; }
.af-pill, .af-match__res { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: .6875rem; font-weight: 700; line-height: 1; }
.af-pill--V, .af-res--V { background: #2e9e4f; }
.af-pill--N, .af-res--N { background: #8b8f96; }
.af-pill--D, .af-res--D { background: #d6303a; }
.af-ccard--form .af-ccard__value { display: flex; align-items: center; min-height: 1.5em; }

/* Équipes et joueurs (logo + nom) */
.af-tm { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
a.af-tm:hover .af-tm__name { text-decoration: underline; }
.af-tm__logo { flex: 0 0 auto; width: 22px; height: 22px; object-fit: contain; }
.af-tm__logo--none { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: .6875rem; font-weight: 700; }
.af-tm__logo--round { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.af-tm__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Lignes de matchs */
.af-day { margin: 18px 0 6px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.af-matches { border-top: 1px solid var(--border); }
.af-match { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.af-match__when { display: flex; flex-direction: column; gap: 2px; font-size: .75rem; color: var(--muted); }
.af-match__state { font-weight: 700; color: var(--text); }
.af-match.is-live .af-match__state { color: var(--c-live); }
.af-match__teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; width: 100%; max-width: 440px; }
.af-match__team { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; font-size: .9375rem; }
.af-match.is-done .af-match__team:not(.is-win) .af-tm__name { color: var(--muted); }
.af-match__team.is-win .af-tm__name, .af-match__team.is-me .af-tm__name { font-weight: 700; }
.af-match__score { min-width: 1.2em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Tableaux : classement, buteurs, passeurs */
.af-table-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.af-table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.af-table th { padding: 8px 6px; font-size: .75rem; font-weight: 600; color: var(--muted); text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.af-table td { padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--border); }
.af-table abbr { text-decoration: none; cursor: help; }
.af-table .af-t-rank { width: 34px; padding-left: 10px; text-align: left; }
.af-table th.af-t-rank { padding-left: 10px; }
.af-table .af-t-club { text-align: left; width: 100%; }
.af-table th.af-t-club { padding-left: 4px; }
.af-table .af-t-form { text-align: right; padding-right: 0; }
.af-table tr.is-me td { background: var(--bg); font-weight: 700; }
.af-table__group { margin: 18px 0 6px; font-size: .9375rem; font-weight: 800; }
.af-zone { --zone: var(--muted); }
.af-zone td:first-child { box-shadow: inset 3px 0 0 var(--zone); }
.af-zone--cl { --zone: #1f6fd6; }
.af-zone--el { --zone: #f08c1a; }
.af-zone--ecl { --zone: #2aa86a; }
.af-zone--po { --zone: #d9a400; }
.af-zone--rel { --zone: #d6303a; }
.af-zone--pro { --zone: #2e9e4f; }
.af-zone--misc { --zone: #8b8f96; }
.af-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .75rem; color: var(--muted); }
.af-legend__dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: var(--zone); }
.af-player { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.af-player__club { padding-left: 40px; font-size: .75rem; color: var(--muted); margin-top: -4px; }

/* Calendrier : navigation entre journées */
.af-rounds { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: .875rem; font-weight: 600; }
.af-cal__view { touch-action: pan-y pinch-zoom; min-height: 140px; transition: opacity .15s; }
.af-cal__view.is-loading { opacity: .45; }
.af-cal[aria-busy="true"] .af-rounds__nav { opacity: .6; }
.af-rounds__nav:hover { color: var(--c-primary); }
.af-rounds__list {
	list-style: none; position: relative; margin: 0 -16px 14px; padding: 2px 16px 6px; display: flex; flex-wrap: nowrap; gap: 6px;
	overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; overscroll-behavior-x: contain;
}
.af-rounds__list::-webkit-scrollbar { display: none; }
.af-rounds__list li { flex: 0 0 auto; scroll-snap-align: center; }
.af-rounds__list a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.af-rounds__list a:hover { border-color: var(--text); }
.af-rounds__list a.is-now { box-shadow: inset 0 -3px 0 var(--c-primary); }
.af-rounds__list a[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--surface); }

@media (max-width: 639px) {
	.af-table .af-t-opt, .af-table .af-t-form { display: none; }
	.af-table td, .af-table th { padding-left: 4px; padding-right: 4px; }
}
@media (min-width: 768px) {
	.af-datasec { padding: 26px 20px 12px; }
	.af-table-wrap { margin: 0 -20px; padding: 0 20px; }
	.af-rounds__list { margin: 0 -20px 14px; padding-left: 20px; padding-right: 20px; }
	.af-match { grid-template-columns: 110px minmax(0, 1fr) auto; }
}

/* 16. Liquid Glass (v0.11.2) ------------------------------------------------------------------------
   Verre dépoli translucide sur les éléments qui flottent au-dessus du contenu : barre mobile du bas, barre des
   articles, onglets des clubs et championnats, recherche et menu. Pas sur le texte, les tableaux ni les matchs.
   Tout est limité à body.af-glass : décocher « Effet verre » dans Personnaliser le retire entièrement. */
body.af-glass {
	--glass-bg: rgba(255, 255, 255, .6);
	--glass-bg-strong: rgba(255, 255, 255, .8);
	--glass-btn: rgba(255, 255, 255, .55);
	--glass-btn-active: rgba(255, 255, 255, .9);
	--glass-edge: rgba(255, 255, 255, .8);
	--glass-line: rgba(20, 24, 33, .08);
	--glass-shadow: 0 10px 30px rgba(20, 24, 33, .14), 0 2px 6px rgba(20, 24, 33, .08);
	--glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%);
	--glass-blur: blur(22px) saturate(180%);
}
[data-theme="dark"] body.af-glass {
	--glass-bg: rgba(40, 46, 58, .64);
	--glass-bg-strong: rgba(28, 33, 43, .8);
	--glass-btn: rgba(255, 255, 255, .1);
	--glass-btn-active: rgba(255, 255, 255, .22);
	--glass-edge: rgba(255, 255, 255, .2);
	--glass-line: rgba(255, 255, 255, .09);
	--glass-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .35);
	--glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 55%);
}
/* Le verre reprend la teinte des couleurs du thème (fond des cartes réglable dans Personnaliser). */
@supports (background: color-mix(in srgb, red 50%, transparent)) {
	body.af-glass { --glass-bg: color-mix(in srgb, var(--surface) 62%, transparent); --glass-bg-strong: color-mix(in srgb, var(--surface) 82%, transparent); }
	[data-theme="dark"] body.af-glass { --glass-bg: color-mix(in srgb, var(--surface) 66%, transparent); --glass-bg-strong: color-mix(in srgb, var(--surface) 84%, transparent); }
}
/* Replis : navigateur sans flou, transparences réduites, contraste élevé → fonds unis, aucun flou. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	body.af-glass, [data-theme="dark"] body.af-glass { --glass-bg: var(--surface); --glass-bg-strong: var(--surface); --glass-btn: var(--bg); --glass-btn-active: var(--bg); --glass-blur: none; --glass-sheen: none; }
}
@media (prefers-reduced-transparency: reduce) {
	body.af-glass, [data-theme="dark"] body.af-glass { --glass-bg: var(--surface); --glass-bg-strong: var(--surface); --glass-btn: var(--bg); --glass-btn-active: var(--bg); --glass-blur: none; --glass-sheen: none; }
}
@media (prefers-contrast: more) {
	body.af-glass, [data-theme="dark"] body.af-glass { --glass-bg: var(--surface); --glass-bg-strong: var(--surface); --glass-btn: var(--bg); --glass-btn-active: var(--bg); --glass-edge: var(--text); --glass-blur: none; --glass-sheen: none; }
}

/* Barre mobile du bas : pastille de verre + capsule qui glisse d'un onglet à l'autre (glass.js). */
body.af-glass .af-bottom {
	background-color: var(--glass-bg); background-image: var(--glass-sheen);
	-webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
	border: 1px solid var(--glass-edge);
	box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 var(--glass-line), var(--glass-shadow);
}
body.af-glass .af-bottom__pill {
	position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 0; pointer-events: none; opacity: 0;
	border-radius: 999px; background: var(--glass-btn-active); border: 1px solid var(--glass-edge);
	box-shadow: inset 0 1px 0 var(--glass-edge), 0 4px 14px rgba(20, 24, 33, .12);
}
body.af-glass .af-bottom__pill.is-ready { opacity: 1; transition: transform .42s cubic-bezier(.3, 1.35, .5, 1), width .42s cubic-bezier(.3, 1.35, .5, 1), opacity .2s; }
body.af-glass .af-bottom .af-menu--bottom { position: relative; z-index: 1; }
body.af-glass .af-bottom__pill ~ .af-menu--bottom .current-menu-item > a { background: none; } /* la capsule glissante remplace le fond fixe */
body.af-glass .af-menu--bottom a { transition: transform .15s; }
/* Libellés inactifs : plus contrastés que le gris habituel, pour rester lisibles sur du verre. */
body.af-glass .af-menu--bottom li:not(.current-menu-item) > a,
body.af-glass .af-etabs a:not([aria-current="page"]) { color: var(--text); }
/* L'opacité ne touche que l'icône et le texte : la pastille de nouveautés garde toute sa couleur. */
body.af-glass .af-menu--bottom li:not(.current-menu-item) > a .af-ico,
body.af-glass .af-menu--bottom li:not(.current-menu-item) > a .af-menu__label,
body.af-glass .af-etabs a:not([aria-current="page"]) { opacity: .72; }
body.af-glass .af-menu--bottom li:not(.current-menu-item) > a:hover .af-ico,
body.af-glass .af-menu--bottom li:not(.current-menu-item) > a:hover .af-menu__label,
body.af-glass .af-etabs a:not([aria-current="page"]):hover { opacity: 1; }
body.af-glass .af-menu--bottom a:active { transform: scale(.95); }

/* Barre des articles : barre de verre collante, boutons ronds en verre (mobile et tablette). */
@media (max-width: 1023px) {
	body.af-glass .af-articlebar {
		background-color: var(--glass-bg); background-image: var(--glass-sheen);
		-webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
		box-shadow: 0 1px 0 var(--glass-line), 0 6px 20px rgba(20, 24, 33, .06);
	}
	body.af-glass .af-articlebar__back,
	body.af-glass .af-articlebar .af-action {
		display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-width: 40px; padding: 0;
		border: 1px solid var(--glass-edge); border-radius: 50%; background: var(--glass-btn);
		box-shadow: inset 0 1px 0 var(--glass-edge);
	}
	body.af-glass .af-articlebar .af-actions { gap: 8px; }
	body.af-glass .af-articlebar .af-action--comments { width: auto; margin-left: 0; padding: 0 16px; border-radius: 999px; background: var(--glass-btn); }
	body.af-glass .af-articlebar .af-action[aria-pressed="true"] { background: var(--glass-btn-active); }
	body.af-glass .af-progress { background: var(--glass-line); }
}

/* Onglets des clubs et championnats : barre de verre collante sous l'en-tête, onglet actif en capsule. */
body.af-glass .af-etabs {
	position: sticky; top: 60px; z-index: 40; border: 0; border-bottom: 1px solid var(--glass-line);
	background-color: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
	box-shadow: 0 6px 20px rgba(20, 24, 33, .05);
}
body.af-glass .af-etabs ul { padding: 8px 12px; gap: 4px; }
body.af-glass .af-etabs a { padding: 8px 14px; border: 1px solid transparent; border-radius: 999px; }
body.af-glass .af-etabs a[aria-current="page"] {
	border-color: var(--glass-edge); background: var(--glass-btn-active);
	box-shadow: inset 0 1px 0 var(--glass-edge), 0 2px 10px rgba(20, 24, 33, .1);
}

/* Recherche et menu : feuilles de verre sur une page voilée et floutée. */
body.af-glass .af-sp__backdrop,
body.af-glass .af-drawer__overlay { background: rgba(10, 12, 16, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.af-glass .af-sp__box,
body.af-glass .af-drawer__panel {
	background-color: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
body.af-glass .af-drawer__panel { border-right: 1px solid var(--glass-edge); box-shadow: inset -1px 0 0 var(--glass-edge), 16px 0 48px rgba(0, 0, 0, .18); }
body.af-glass .af-sp__field { background: var(--glass-btn); }
@media (min-width: 768px) {
	body.af-glass .af-sp__box { border-left: 1px solid var(--glass-edge); box-shadow: inset 1px 0 0 var(--glass-edge), -16px 0 48px rgba(0, 0, 0, .18); }
}
@media (prefers-reduced-motion: reduce) {
	body.af-glass .af-bottom__pill.is-ready, body.af-glass .af-menu--bottom a { transition: none; }
}

/* 17. Pastille de nouveautés sur les éléments de menu (v0.11.5, assets/js/fresh.js) ------------------ */
.af-menu__count[hidden] { display: none; }
.af-fresh { box-shadow: 0 0 0 2px var(--surface); }
.af-fresh.is-pop { animation: af-pop .38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes af-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .af-fresh.is-pop { animation: none; } }

/* 18. Page Discord Football (v0.11.6, inc/discord.php) ------------------------------------------- */
.af-discord-cta {
	display: flex; align-items: center; gap: 14px; margin: 20px 0; padding: 16px 18px; border-radius: 18px; color: #fff;
	background: linear-gradient(135deg, #5865f2, #4752c4); box-shadow: 0 8px 24px rgba(88, 101, 242, .28);
}
.af-discord-cta__icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .18); }
.af-discord-cta__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.af-discord-cta__txt strong { font-size: 1.0625rem; line-height: 1.25; }
.af-discord-cta__sub { display: inline-flex; align-items: center; gap: 7px; font-size: .875rem; opacity: .94; }
.af-discord-cta__dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .28); }
.af-article__content a.af-discord-cta__btn, .af-discord-cta__btn {
	flex: 0 0 auto; padding: 12px 22px; border-radius: 999px; background: #fff; color: #4752c4; font-size: .9375rem; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s;
}
.af-discord-cta__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.af-discord-warn { padding: 10px 14px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); font-size: .875rem; }
@media (max-width: 559px) {
	.af-discord-cta { flex-wrap: wrap; }
	.af-article__content a.af-discord-cta__btn, .af-discord-cta__btn { flex: 1 1 100%; text-align: center; }
}

.af-dleagues { list-style: none; margin: 14px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.af-article__content .af-dleagues a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-weight: 600; text-decoration: none; }
.af-dleagues a:hover { border-color: var(--text); }
.af-dleagues img, .af-dleagues__ph { flex: 0 0 auto; width: 32px; height: 32px; object-fit: contain; }
.af-dleagues__ph { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); color: var(--muted); font-weight: 700; }
@media (min-width: 640px) { .af-dleagues { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.af-dnews { list-style: none; margin: 12px 0 22px; padding: 0; border-top: 1px solid var(--border); }
.af-dnews li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.af-article__content .af-dnews a { color: var(--text); font-weight: 700; text-decoration: none; }
.af-dnews a:hover { color: var(--c-primary); }
[data-theme="dark"] .af-dnews a:hover { color: inherit; text-decoration: underline; }
.af-dnews time { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); }

.af-faq { margin: 0 0 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.af-faq summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style-position: inside; }
.af-faq summary:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 12px; }
.af-faq p { margin: 0; padding: 0 16px 14px; color: var(--muted); }

/* 19. Rédaction et confiance (v0.11.8, inc/trust.php) ------------------------------------------- */
.af-badge--rumor { background: #b26a00; }
.af-byline__role { font-weight: 400; color: var(--muted); }
.af-source { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: .9375rem; color: var(--muted); }
.af-source__label { font-weight: 700; color: var(--text); }
.af-source a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.af-authorbox { display: flex; gap: 16px; align-items: flex-start; margin: 28px 0 8px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.af-authorbox__avatar { flex: 0 0 auto; display: block; }
.af-authorbox__avatar img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.af-authorbox__body { min-width: 0; }
.af-authorbox__label { margin: 0 0 2px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.af-authorbox__name { margin: 0; font-size: 1.0625rem; font-weight: 800; line-height: 1.3; }
.af-authorbox__name a:hover { text-decoration: underline; }
.af-authorbox__role { font-size: .875rem; font-weight: 500; color: var(--muted); }
.af-authorbox__bio { margin: 8px 0 0; font-size: .9375rem; line-height: 1.55; color: var(--text); }
.af-authorbox__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: .875rem; font-weight: 600; }
.af-authorbox__links a { color: var(--muted); }
.af-authorbox__links a:hover, .af-authorbox__links .af-authorbox__all { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.af-authorbox__links .af-authorbox__all { margin-left: auto; }
@media (max-width: 479px) { .af-authorbox { padding: 14px; gap: 12px; } .af-authorbox__avatar img { width: 52px; height: 52px; } .af-authorbox__links .af-authorbox__all { margin-left: 0; flex-basis: 100%; } }

.af-archive__role { margin: 2px 0 0; font-size: .9375rem; color: var(--muted); }
.af-archive__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: .875rem; font-weight: 600; }
.af-archive__links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.af-archive__links a:hover { color: var(--text); }

.af-team { list-style: none; margin: 14px 0 22px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.af-team li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.af-team__avatar { flex: 0 0 auto; display: block; }
.af-team__avatar img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.af-team li > div { min-width: 0; }
.af-article__content .af-team p { margin: 0; }
.af-team__name { font-weight: 800; }
.af-article__content .af-team a { color: var(--text); text-decoration: none; }
.af-team__name a:hover { text-decoration: underline; }
.af-team__role { font-size: .875rem; color: var(--muted); }
.af-team__bio { margin-top: 6px !important; font-size: .9375rem; line-height: 1.5; }
@media (min-width: 640px) { .af-team { grid-template-columns: 1fr 1fr; } }

/* 20. En-tête : blanc quand on descend, logo et icônes en couleur principale (v0.11.9, assets/js/main.js) --- */
.af-header { transition: background-color .22s ease, color .22s ease, box-shadow .22s ease; }
.af-header.is-scrolled { background: var(--surface); color: var(--c-primary); box-shadow: 0 1px 0 var(--border), 0 8px 24px rgba(0, 0, 0, .06); }
.af-header.is-scrolled .af-icon-btn:hover { background: rgba(127, 127, 127, .14); }
.af-header.is-scrolled :focus-visible { outline-color: var(--c-primary); }
/* Logo image : une version pour la barre blanche (Personnaliser > Identité du site) remplace celle de la barre colorée. */
.af-logo__scrolled { display: none; }
.af-header.is-scrolled .af-logo__top { display: none; }
.af-header.is-scrolled .af-logo__scrolled { display: inline; }
.af-logo__scrolled img { max-height: 36px; width: auto; }
/* Effet verre actif : la barre blanche devient un verre dépoli. */
body.af-glass .af-header.is-scrolled {
	background-color: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
	box-shadow: 0 1px 0 var(--glass-line), 0 6px 20px rgba(20, 24, 33, .06);
}
@media (prefers-reduced-motion: reduce) { .af-header { transition: none; } }

/* 21. Classements (sidebar PC, bas d'accueil mobile), bande « À retenir », clubs en raccourci (v0.11.10) -- */
.af-stbox__title { margin: 0; padding: 16px 16px 0; font-size: 1rem; font-weight: 800; }
.af-stbox--side { display: none; margin: 0 0 16px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.af-stbox--home { padding: 22px 16px 8px; border-top: 1px solid var(--border); }
.af-stbox--home .af-stbox__title { padding: 0 0 10px; }
@media (min-width: 1024px) {
	.af-stbox--side { display: block; }
	.af-stbox--home { display: none; }
}
.af-stbox .af-sidetabs { margin: 0; border-radius: 0; background: none; }
.af-stbox__nav { overflow-x: auto; scrollbar-width: none; }
.af-stbox__nav::-webkit-scrollbar { display: none; }
.af-stbox__nav button { flex: 0 0 auto; white-space: nowrap; }
.af-stbox .af-table-wrap { margin: 0; padding: 0 12px; }
.af-stbox--home .af-table-wrap { padding: 0; }
.af-standings--compact { font-size: .8125rem; }
.af-standings--compact th, .af-standings--compact td { padding-top: 8px; padding-bottom: 8px; }
.af-standings--compact .af-t-club .af-tm__name { max-width: 150px; }
.af-stbox__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 12px 14px; font-size: .75rem; color: var(--muted); }
.af-stbox--home .af-stbox__foot { margin-left: 0; margin-right: 0; }
.af-stbox__foot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-stbox__foot a { flex: 0 0 auto; font-weight: 700; color: var(--text); white-space: nowrap; }
.af-stbox__foot a:hover { text-decoration: underline; }

.af-retenir { padding: 10px 0 2px; }
.af-menu--retenir { list-style: none; margin: 0; padding: 0 16px 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.af-menu--retenir::-webkit-scrollbar { display: none; }
.af-menu--retenir li { flex: 0 0 auto; scroll-snap-align: start; }
.af-menu--retenir a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .875rem; font-weight: 600; white-space: nowrap; transition: border-color .15s; }
.af-menu--retenir a:hover { border-color: var(--text); }
.af-menu--retenir .af-ico { display: inline-flex; }
.af-menu--retenir .af-ico svg { width: 18px; height: 18px; }
.af-menu--retenir .current-menu-item > a { border-color: var(--c-primary); color: var(--c-primary); }

.af-clubsrow { padding: 12px 0 4px; }
.af-clubsrow ul { list-style: none; margin: 0; padding: 0 16px 6px; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.af-clubsrow ul::-webkit-scrollbar { display: none; }
.af-clubsrow li { flex: 0 0 62px; text-align: center; scroll-snap-align: start; }
.af-clubsrow a { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.af-clubsrow__logo { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--muted); font-weight: 700; transition: border-color .15s; }
.af-clubsrow__logo img { width: 34px; height: 34px; object-fit: contain; }
.af-clubsrow__name { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6875rem; font-weight: 600; color: var(--muted); }
.af-clubsrow a:hover .af-clubsrow__logo { border-color: var(--text); }
.af-clubsrow a:hover .af-clubsrow__name { color: var(--text); }
