/* ABCOM Article Kit
   Couleurs : vert et orange d'abcomali.com (modifiables dans Réglages). Polices héritées du thème. Tailles en px car le thème réduit la taille racine. */
.aak {
	--aak-primary: #059600;
	--aak-primary-text: color-mix(in srgb, var(--aak-primary) 82%, #000000);
	--aak-ink: #1d1d1d;
	--aak-muted: #5b6066;
	--aak-line: #dfe5df;
	--aak-soft: #f1f8f0;
	--aak-surface: #ffffff;
	--aak-warn: #e76b38;
	--aak-warn-text: color-mix(in srgb, var(--aak-warn) 72%, #000000);
	--aak-warn-soft: #fdf1ea;
	--aak-on-primary: #ffffff;
	--aak-radius: 6px;
	box-sizing: border-box;
	color: var(--aak-ink);
	font-size: 16px;
	line-height: 1.6;
	font-family: inherit;
	margin-block: 28px;
}
.aak *, .aak *::before, .aak *::after { box-sizing: border-box; }
.aak p { margin: 0; }
.aak h3 { margin: 0; padding: 0; font-family: inherit; font-weight: 700; text-transform: none; letter-spacing: 0; font-size: 19px; line-height: 1.3; color: var(--aak-ink); }
.aak a { color: var(--aak-primary-text); }

.aak-kicker {
	display: block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--aak-primary-text);
}
.aak-ref {
	display: inline-block;
	font-size: .78em;
	font-weight: 600;
	white-space: nowrap;
	padding: .05em .5em;
	border-radius: 99px;
	background: var(--aak-soft);
	color: var(--aak-muted);
	border: 1px solid var(--aak-line);
	vertical-align: .08em;
}
.aak-badge {
	font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	padding: .25em .7em; border-radius: 99px;
	background: var(--aak-on-primary); color: var(--aak-primary);
}
.aak-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9.5px; }
.aak-list li { position: relative; padding-left: 21.5px; }
.aak-list li::before {
	content: ""; position: absolute; left: 0; top: .6em;
	width: 8px; height: 8px; border-radius: 50%; background: var(--aak-primary);
}

/* Fiche du texte */
.aak-fiche { border: 1px solid var(--aak-line); border-radius: var(--aak-radius); overflow: hidden; background: var(--aak-surface); }
.aak-fiche__head {
	display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
	padding: 11px 17.5px; background: var(--aak-primary); color: var(--aak-on-primary);
}
.aak-fiche__title { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.aak-fiche__rows { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.aak-fiche__row { padding: 13px 17.5px; border-top: 1px solid var(--aak-line); min-width: 0; }
.aak-fiche__row dt { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--aak-muted); margin: 0 0 2.5px; }
.aak-fiche__row dd { margin: 0; font-weight: 600; }

/* Repères clés */
.aak-chiffres { display: grid; gap: 1px; background: var(--aak-line); border: 1px solid var(--aak-line); border-radius: var(--aak-radius); overflow: hidden; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aak-chiffre { background: var(--aak-surface); padding: 17.5px 17.5px 19px; display: flex; flex-direction: column; gap: 5.5px; min-width: 0; }
.aak-chiffre__value { font-size: 23px; line-height: 1.15; font-weight: 800; color: var(--aak-ink); font-variant-numeric: tabular-nums; text-wrap: balance; }
.aak-chiffre p { font-size: 16px; color: var(--aak-muted); }
@media (min-width: 900px) {
	.aak-chiffres.aak-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.aak-chiffres.aak-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .aak-chiffres { grid-template-columns: 1fr; } }

/* Tableau comparatif */
.aak-comparatif table { width: 100%; border-collapse: collapse; margin: 0; border: 1px solid var(--aak-line); background: var(--aak-surface); font-size: 16px; }
.aak-comparatif th, .aak-comparatif td { padding: 12px 14.5px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--aak-line); }
.aak-comparatif thead th { background: var(--aak-primary); color: var(--aak-on-primary); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.aak-comparatif tbody th { width: 152px; font-weight: 700; background: var(--aak-soft); color: var(--aak-ink); }
.aak-comparatif tbody tr:last-child > * { border-bottom: 0; }
.aak-note { margin-top: 12px !important; padding-left: 14.5px; border-left: 3px solid var(--aak-primary); font-size: 16px; color: var(--aak-muted); }
@media (max-width: 640px) {
	.aak-comparatif table, .aak-comparatif tbody, .aak-comparatif tr, .aak-comparatif th, .aak-comparatif td { display: block; width: auto; }
	.aak-comparatif thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.aak-comparatif table { border: 0; background: none; display: grid; gap: 14.5px; }
	.aak-comparatif tbody { display: grid; gap: 14.5px; }
	.aak-comparatif tr { border: 1px solid var(--aak-line); border-radius: var(--aak-radius); overflow: hidden; background: var(--aak-surface); }
	.aak-comparatif tbody th { width: auto; }
	.aak-comparatif tbody tr:last-child > *:not(:last-child) { border-bottom: 1px solid var(--aak-line); }
	.aak-comparatif td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--aak-primary-text); margin-bottom: 2.5px; }
}

/* Blocs thématiques */
.aak-blocs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(208px, 1fr)); }
.aak-bloc { border: 1px solid var(--aak-line); border-top: 3px solid var(--aak-primary); background: var(--aak-surface); padding: 17.5px; display: flex; flex-direction: column; gap: 14.5px; min-width: 0; }
.aak-bloc .aak-list { font-size: 16px; }
.aak-tone-alerte { border-top-color: var(--aak-warn); }
.aak-tone-alerte .aak-list li::before { background: var(--aak-warn); }
.aak-tone-info { background: var(--aak-soft); }
.aak-bloc__note { margin-top: auto !important; padding-top: 13px; border-top: 1px solid var(--aak-line); font-weight: 700; font-size: 16px; }
.aak-tone-alerte .aak-bloc__note { color: var(--aak-warn-text); }

/* Bilan */
.aak-bilan { display: grid; grid-template-columns: repeat(auto-fit, minmax(256px, 1fr)); border: 1px solid var(--aak-line); border-radius: var(--aak-radius); overflow: hidden; }
.aak-bilan__col { padding: 19px; display: flex; flex-direction: column; gap: 14.5px; min-width: 0; }
.aak-bilan__plus { background: var(--aak-soft); }
.aak-bilan__warn { background: var(--aak-warn-soft); }
.aak-bilan__plus h3 { color: var(--aak-primary-text); }
.aak-bilan__warn h3 { color: var(--aak-warn-text); }
.aak-bilan .aak-list { font-size: 16px; }
.aak-list--plus li::before, .aak-list--warn li::before { background: none; border-radius: 0; top: 0; width: auto; height: auto; font-weight: 800; }
.aak-list--plus li::before { content: "+"; color: var(--aak-primary-text); }
.aak-list--warn li::before { content: "!"; color: var(--aak-warn); left: 2.5px; }

/* Encadré */
.aak-encadre { margin-inline: 0; padding: 18.5px 21px; background: var(--aak-soft); border: 0; border-left: 4px solid var(--aak-primary); display: flex; flex-direction: column; gap: 6.5px; }
.aak-encadre p { font-size: 18px; line-height: 1.45; font-weight: 600; text-wrap: pretty; }
.aak-encadre cite { font-size: 16px; font-style: normal; color: var(--aak-muted); }
.aak-encadre--citation p { font-style: italic; font-weight: 500; }
.aak-encadre--alerte { background: var(--aak-warn-soft); border-left-color: var(--aak-warn); }
.aak-encadre--alerte .aak-kicker { color: var(--aak-warn-text); }

/* Sommaire */
.aak-toc { padding: 16px 19px; border: 1px solid var(--aak-line); border-radius: var(--aak-radius); background: var(--aak-surface); }
.aak-toc ol { margin: 9.5px 0 0; padding: 0; list-style: none; counter-reset: aak; display: grid; gap: 6.5px; }
.aak-toc li { counter-increment: aak; display: flex; gap: 11px; }
.aak-toc li::before { content: counter(aak); flex: none; width: 24px; font-weight: 700; color: var(--aak-muted); font-variant-numeric: tabular-nums; }
.aak-toc a { text-decoration: none; color: var(--aak-ink); font-weight: 600; }
.aak-toc a:hover, .aak-toc a:focus-visible { color: var(--aak-primary); text-decoration: underline; }

/* Auteur, appel à l'action, coordonnées */
.aak-auteur { border: 1px solid var(--aak-line); border-radius: var(--aak-radius); overflow: hidden; background: var(--aak-surface); margin-top: 40px; }
.aak-auteur__who { padding: 16px 21px; border-bottom: 1px solid var(--aak-line); display: flex; flex-direction: column; gap: 1.5px; }
.aak-auteur__who strong { font-size: 17.5px; }
.aak-auteur__who span:last-child { color: var(--aak-muted); font-size: 16px; }
.aak-auteur__cta { padding: 21px; background: var(--aak-primary); color: var(--aak-on-primary); display: flex; flex-direction: column; gap: 9.5px; align-items: flex-start; }
.aak-auteur__cta h3 { color: var(--aak-on-primary); font-size: 19px; text-wrap: balance; }
.aak-auteur__cta .aak-ref { background: transparent; color: inherit; border-color: currentColor; }
.aak .aak-btn { display: inline-block; margin-top: 5px; padding: 9.5px 19px; border-radius: 4px; background: var(--aak-on-primary); color: var(--aak-primary); font-weight: 700; text-decoration: none; }
.aak .aak-btn:hover, .aak .aak-btn:focus-visible { outline: 2px solid var(--aak-on-primary); outline-offset: 2px; }
.aak-contact { font-style: normal; display: grid; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); gap: 16px 24px; padding: 17.5px 21px; font-size: 16px; }
.aak-contact span { min-width: 0; overflow-wrap: anywhere; }
.aak-contact b { display: block; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--aak-muted); margin-bottom: 1.5px; }

/* Valeurs plus généreuses pour la lecture */
.aak-chiffre__value { font-size: 24px; }
.aak-encadre p { font-size: 19px; }
.aak-auteur__cta h3 { font-size: 22px; }
.aak-fiche__title, .aak-comparatif thead th { font-size: 14px; font-weight: 700; }
.aak-fiche__row dd, .aak-auteur__who strong { font-size: 17px; }

/* Fil d'actualités : un titre à la fois */
.aak-fil { container-type: inline-size; border: 1px solid var(--aak-line); border-radius: 12px; background: var(--aak-surface); overflow: hidden; }
.aak-fil__empty { padding: 16px; color: var(--aak-muted); }
.aak-fil__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px; border-bottom: 1px solid var(--aak-line); }
.aak-fil__label { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--aak-primary-text); }
.aak-fil__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aak-primary); animation: aak-pulse 1.8s ease-in-out infinite; }
@keyframes aak-pulse { 50% { opacity: .3; transform: scale(.8); } }
.aak-fil__filters { flex: 1 1 0; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.aak-fil__filters::-webkit-scrollbar { display: none; }
.aak .aak-fil__chip { flex: none; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; padding: 6px 12px; margin: 0; min-height: 0; border-radius: 99px; border: 1px solid var(--aak-line); background: var(--aak-surface); color: var(--aak-ink); box-shadow: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.aak .aak-fil__chip span { margin-left: 5px; font-weight: 500; opacity: .7; }
.aak .aak-fil__chip:hover { border-color: var(--aak-primary); background: var(--aak-soft); color: var(--aak-ink); }
.aak .aak-fil__chip[aria-pressed="true"] { background: var(--aak-primary); border-color: var(--aak-primary); color: var(--aak-on-primary); }
.aak .aak-fil__all { flex: none; margin-left: auto; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.aak .aak-fil__all:hover { text-decoration: underline; }

.aak-fil__body { display: flex; align-items: center; gap: 20px; padding: 16px; }
.aak-fil__stage { flex: 1; min-width: 0; display: grid; }
.aak .aak-fil__item { grid-area: 1 / 1; display: flex; align-items: center; gap: 18px; min-width: 0; color: var(--aak-ink); text-decoration: none; opacity: 0; visibility: hidden; transform: translateX(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1), visibility 0s .5s; }
.aak .aak-fil__item.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.aak-fil[data-dir="prev"] .aak-fil__item:not(.is-active) { transform: translateX(-14px); }
.aak-fil__img { flex: none; width: 168px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--aak-soft); }
.aak-fil__img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; transition: transform .6s ease; }
.aak-fil__item:hover .aak-fil__img img { transform: scale(1.05); }
.aak-fil__txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.aak-fil__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.aak-fil__cat { font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 9px; border-radius: 4px; background: var(--aak-soft); color: var(--aak-primary-text); }
.aak-fil__new { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--aak-warn-text); }
.aak-fil__date { font-size: 14px; color: var(--aak-muted); font-variant-numeric: tabular-nums; }
.aak-fil__title { font-size: 19px; line-height: 1.35; font-weight: 700; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.aak-fil__item:hover .aak-fil__title { color: var(--aak-primary-text); }

.aak-fil__nav { flex: none; display: flex; align-items: center; gap: 8px; }
.aak-fil__count { font-size: 14px; color: var(--aak-muted); font-variant-numeric: tabular-nums; margin-right: 4px; white-space: nowrap; }
.aak .aak-fil__arrow, .aak .aak-fil__pause { display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0; min-height: 0; border: 0; border-radius: 50%; box-shadow: none; cursor: pointer; line-height: 1; }
.aak .aak-fil__arrow { width: 46px; height: 46px; background: color-mix(in srgb, var(--aak-primary) 10%, var(--aak-surface)); color: var(--aak-primary-text); transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease; }
.aak .aak-fil__arrow:hover { background: var(--aak-primary); color: var(--aak-on-primary); box-shadow: 0 8px 20px color-mix(in srgb, var(--aak-primary) 32%, transparent); }
.aak .aak-fil__arrow[data-act="prev"]:hover { transform: translateX(-3px); }
.aak .aak-fil__arrow[data-act="next"]:hover { transform: translateX(3px); }
.aak .aak-fil__arrow:active { transform: scale(.94); }
.aak .aak-fil__pause { width: 32px; height: 32px; background: transparent; color: var(--aak-muted); }
.aak .aak-fil__pause:hover { background: var(--aak-soft); color: var(--aak-ink); }
.aak-fil__pause .aak-ico--play, .aak-fil__pause[aria-pressed="true"] .aak-ico--pause { display: none; }
.aak-fil__pause[aria-pressed="true"] .aak-ico--play { display: block; }
.aak-fil :is(button, a):focus-visible { outline: 2px solid var(--aak-warn); outline-offset: 2px; }
.aak-fil.is-single .aak-fil__nav { display: none; }

@container (max-width: 600px) {
	.aak-fil__top { padding: 10px 12px; }
	.aak-fil__filters { flex-basis: 100%; order: 3; }
	.aak-fil__body { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
	.aak .aak-fil__item { flex-direction: column; align-items: stretch; gap: 12px; }
	.aak-fil__img { width: 100%; aspect-ratio: 16 / 9; }
	.aak-fil__title { font-size: 18px; }
	.aak-fil__count { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.aak .aak-fil__item, .aak-fil__img img, .aak .aak-fil__arrow { transition: none; transform: none; }
	.aak-fil__dot { animation: none; }
}
