/* Amazones Football : styles de secours, volontairement sobres.
   Le thème peut redéfinir les variables ou désactiver ce fichier (filtre af_load_default_styles). */
.af-match, .af-events, .af-summary, .af-list, .af-standings, .af-single, .af-album-images, .af-match-list {
	--af-border: #e2e5e9;
	--af-muted: #5f6b76;
	--af-radius: 12px;
}
.af-match {
	border: 1px solid var(--af-border);
	border-radius: var(--af-radius);
	padding: 1rem;
	margin: 0 0 1rem;
	background: #fff;
	color: #1b2430;
}
.af-match__meta, .af-match__info {
	display: flex; flex-wrap: wrap; gap: .5rem .9rem;
	align-items: center; justify-content: space-between;
	font-size: .85rem; color: var(--af-muted);
}
.af-match__info { justify-content: flex-start; margin-top: .75rem; }
.af-match__link { margin-left: auto; color: var(--af-primary, #0b6b3a); font-weight: 600; text-decoration: none; }
.af-match__teams {
	display: grid; grid-template-columns: 1fr auto 1fr;
	align-items: center; gap: .75rem; margin: 1rem 0 .25rem; text-align: center;
}
.af-team { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.af-team__logo { width: 64px; height: 64px; object-fit: contain; }
.af-team__name { font-weight: 700; line-height: 1.2; }
.af-match__center { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.af-match__score { font-size: 2rem; font-weight: 800; letter-spacing: .05em; }
.af-match__time { font-size: 1.25rem; font-weight: 700; }
.af-match__pens { font-size: .8rem; color: var(--af-muted); }
.af-badge {
	display: inline-block; padding: .15rem .6rem; border-radius: 999px;
	font-size: .75rem; font-weight: 700; color: #fff; background: #5f6b76;
}
.af-badge--upcoming { background: #1d6fd1; }
.af-badge--live { background: #d92d20; animation: af-pulse 1.4s infinite; }
.af-badge--finished { background: #0b6b3a; }
.af-badge--postponed { background: #d97706; }
.af-badge--cancelled { background: #6b7280; }
@keyframes af-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .af-badge--live { animation: none; } }
.af-events__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.af-event { padding: .35rem 0; border-bottom: 1px solid var(--af-border); }
.af-event__minute { display: inline-block; min-width: 3rem; font-weight: 700; }
.af-event__label { color: var(--af-muted); font-size: .9rem; }
@media (max-width: 480px) {
	.af-match__teams { grid-template-columns: 1fr; }
	.af-match__center { order: 2; }
	.af-team--away { order: 3; }
}

/* ---- V2 : listes, cartes, classement, fiches ---- */
.af-list { display: grid; gap: 1rem; grid-template-columns: repeat(var(--af-columns, 4), minmax(0, 1fr)); margin: 0 0 1rem; }
.af-card { border: 1px solid var(--af-border); border-radius: var(--af-radius); background: #fff; color: #1b2430; overflow: hidden; display: flex; flex-direction: column; }
.af-card__media { position: relative; background: #f1f3f5; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; }
.af-card__media a { display: block; width: 100%; height: 100%; }
.af-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.af-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e9edf0, #f6f7f8); }
.af-card__body { padding: .75rem .9rem 1rem; }
.af-card__title { margin: 0 0 .25rem; font-size: 1.05rem; line-height: 1.25; }
.af-card__title a { color: inherit; text-decoration: none; }
.af-card__meta, .af-card__text { margin: .25rem 0 0; font-size: .875rem; color: var(--af-muted); }
.af-player__number { position: absolute; top: .5rem; left: .5rem; min-width: 2rem; padding: .15rem .5rem; border-radius: 6px; background: var(--af-primary, #0b6b3a); color: #fff; font-weight: 800; text-align: center; }
.af-player__position, .af-member__role, .af-sponsor__category { margin: 0; font-size: .875rem; color: var(--af-muted); }
.af-member__role { color: var(--af-primary, #0b6b3a); font-weight: 600; }
.af-tag { display: inline-block; margin-top: .4rem; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #e5e7eb; color: #1b2430; }
.af-tag--injured { background: #fde68a; }
.af-tag--suspended { background: #fecaca; }
.af-tag--former { background: #e5e7eb; }
.af-list--sponsors .af-card__media, .af-list--albums .af-card__media, .af-list--videos .af-card__media, .af-list--news .af-card__media { aspect-ratio: 16 / 10; background: #fff; }
.af-list--sponsors .af-card__media { padding: 1rem; }
.af-sponsor__logo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.af-sponsor__name { font-weight: 700; text-align: center; }
.af-group { margin: 0 0 1.5rem; }
.af-group__title { margin: 0 0 .75rem; font-size: 1.15rem; border-bottom: 2px solid var(--af-primary, #0b6b3a); padding-bottom: .25rem; }
.af-video__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.af-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.af-video__play { position: absolute; inset: 0; margin: auto; width: 3.25rem; height: 3.25rem; line-height: 3.25rem; text-align: center; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 1.25rem; }
.af-album-images { display: grid; gap: .5rem; grid-template-columns: repeat(var(--af-columns, 3), minmax(0, 1fr)); margin: 1rem 0; }
.af-album-images img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; display: block; border-radius: 8px; }
.af-empty { color: var(--af-muted, #5f6b76); font-style: italic; }
.af-table-wrap { overflow-x: auto; }
.af-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.af-table th, .af-table td { padding: .5rem .6rem; text-align: center; border-bottom: 1px solid var(--af-border); white-space: nowrap; }
.af-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--af-muted); }
.af-table .af-col-team { text-align: left; font-weight: 600; }
.af-table .af-col-team .af-team__logo { vertical-align: middle; margin-right: .5rem; display: inline-block; }
.af-team__logo--small { width: 24px; height: 24px; }
.af-row--club { background: color-mix(in srgb, var(--af-primary, #0b6b3a) 10%, #fff); }
.af-standings__title { margin: 0 0 .5rem; }
.af-standings__note { font-size: .8rem; color: var(--af-muted); margin: .5rem 0 0; }
.af-single__head { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
.af-single__img { width: 100%; height: auto; border-radius: var(--af-radius); display: block; }
.af-facts { margin: 0; display: grid; gap: .25rem; }
.af-facts__row { display: flex; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--af-border); }
.af-facts dt { min-width: 9rem; color: var(--af-muted); }
.af-facts dd { margin: 0; font-weight: 600; }
.af-social { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; padding: 0; margin: 1rem 0; }
@media (max-width: 900px) { .af-list { grid-template-columns: repeat(min(var(--af-columns, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.af-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
	.af-list--albums, .af-list--videos, .af-list--news { grid-template-columns: 1fr; }
	.af-single__head { grid-template-columns: 1fr; }
	.af-album-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- V2.1 : calendrier, actualités paginées, filtres, réseaux, contact ---- */
.af-table--matches th, .af-table--matches td { text-align: left; }
.af-col-date__time { display: block; font-size: .8rem; color: var(--af-muted, #5f6b76); }
.af-col-status__score { margin-right: .4rem; }
.af-news__category { display: inline-block; margin-right: .5rem; font-weight: 700; text-transform: uppercase; font-size: .75rem; color: var(--af-primary, #0b6b3a); }
.af-card__more { display: inline-block; margin-top: .5rem; font-weight: 700; color: var(--af-primary, #0b6b3a); text-decoration: none; }
.af-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.af-filters__item, .af-pagination__link { display: inline-block; padding: .3rem .8rem; border: 1px solid #e2e5e9; border-radius: 999px; color: inherit; text-decoration: none; font-size: .9rem; }
.af-filters__item.is-active, .af-pagination__link.is-current { background: var(--af-primary, #0b6b3a); border-color: var(--af-primary, #0b6b3a); color: #fff; }
.af-pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 1.5rem 0; }
.af-social, .af-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.af-social__link { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem; border-radius: 50%; background: var(--af-primary, #0b6b3a); color: #fff; text-decoration: none; font-weight: 700; font-size: .8rem; }
.af-contact { flex-direction: column; gap: .35rem; }
.af-contact__label { display: inline-block; min-width: 6rem; color: var(--af-muted, #5f6b76); }
@media (max-width: 640px) {
	.af-table--matches thead { position: absolute; left: -9999px; }
	.af-table--matches tr { display: block; border-bottom: 1px solid #e2e5e9; padding: .5rem 0; }
	.af-table--matches td, .af-table--matches th { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .25rem .6rem; white-space: normal; }
	.af-table--matches [data-label]::before { content: attr(data-label); color: var(--af-muted, #5f6b76); }
}

/* Bouton « Regarder en direct » */
.af-match__watch { margin: .75rem 0 0; text-align: center; }
.af-match__live { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.2rem; border-radius: 999px; background: #d71920; color: #fff; font-weight: 700; text-decoration: none; }
.af-match__live:hover { background: #b3141a; color: #fff; }
.af-match__live-dot { width: .6rem; height: .6rem; border-radius: 50%; background: #fff; animation: af-live-pulse 1.4s infinite; }
@keyframes af-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .af-match__live-dot { animation: none; } }
