/* ==========================================================================
   Animauxcope — feuille de styles principale (mobile first)
   Sommaire :
   1. Polices & variables     6. Accueil (loupe, derniers articles, animaux)
   2. Base                    7. Hubs (catégories, guides)
   3. Utilitaires             8. Article & contenu éditorial
   4. En-tête & navigation    9. Bannières & affiliation
   5. Composants              10. Pied de page, divers, mouvement réduit
   ========================================================================== */

/* 1. Polices & variables -------------------------------------------------- */

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Serif 4";
	font-style: normal;
	font-display: swap;
	font-weight: 200 900;
	src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Serif 4";
	font-style: italic;
	font-display: swap;
	font-weight: 200 900;
	src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Palette */
	--ink: #173038;
	--ink-2: #4c636b;
	--paper: #f4f7f6;
	--surface: #ffffff;
	--line: #dbe4e2;
	--brand: #0b7a6a;
	--sun: #ffc23d;
	--alert: #c4412f;

	/* Couleur de l'univers animal courant (surchargée en ligne) */
	--a: var(--brand);

	/* Typo */
	--f-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

	/* Mise en page */
	--gutter: 1.25rem;
	--max: 1240px;
	--max-text: 760px;
	--max-wide: 1080px;
	--header-h: 60px;
	--r-s: 12px;
	--r-m: 18px;
	--r-l: 26px;
	--ease: cubic-bezier(.7, 0, .2, 1);
}

/* Dérivées recalculées sur chaque élément : un --a local (univers animal) les met à jour. */
*, ::before, ::after {
	--a-deep: color-mix(in oklab, var(--a) 52%, #0b1a1f);
	--a-soft: color-mix(in oklab, var(--a) 26%, #fff);
	--a-tint: color-mix(in oklab, var(--a) 10%, #fff);
}

@media (min-width: 1024px) {
	:root {
		--gutter: 2rem;
		--header-h: 72px;
	}
}

/* 2. Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-sans);
	font-size: 1rem;
	line-height: 1.55;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--a); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-sans); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

:focus-visible {
	outline: 3px solid var(--a-deep);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection { background: var(--a-soft); }

/* 3. Utilitaires ------------------------------------------------------------ */

.ac-wrap {
	width: min(100% - 2 * var(--gutter), var(--max));
	margin-inline: auto;
}
.ac-wrap--text { width: min(100% - 2 * var(--gutter), var(--max-text)); }
.ac-wrap--wide { width: min(100% - 2 * var(--gutter), var(--max-wide)); }

.ac-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.ac-skip {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--r-s);
	font-weight: 700; text-decoration: none;
}
.ac-skip:focus { top: 1rem; }

.ac-icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* 4. En-tête & navigation --------------------------------------------------- */

.ac-header {
	position: sticky; top: 0; z-index: 50;
	border-bottom: 1px solid var(--line);
	transition: transform .35s var(--ease);
}
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur l'en-tête
   lui-même « piégerait » le panneau du menu mobile (position: fixed). */
.ac-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: color-mix(in srgb, var(--surface) 90%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
}
.ac-menu-open .ac-header { transform: none !important; }
.ac-menu-open .ac-header::before { background: var(--surface); }
.ac-header.is-hidden { transform: translateY(-100%); }
.admin-bar .ac-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .ac-header { top: 32px; } }

.ac-header__inner {
	display: flex; align-items: center; gap: 1rem;
	min-height: var(--header-h);
}

.ac-logo { margin-right: auto; display: flex; align-items: center; min-width: 0; }
.ac-logo img, .custom-logo { max-height: 40px; width: auto; }
@media (min-width: 1024px) { .ac-logo img, .custom-logo { max-height: 48px; } }

.ac-logo__text, .ac-footer__name {
	display: inline-flex; align-items: center; gap: .55rem;
	font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em;
	text-decoration: none; color: var(--ink);
}
.ac-logo__mark {
	width: 1.15em; height: 1.15em; border-radius: 50%;
	border: .2em solid var(--a);
	box-shadow: inset 0 0 0 .14em var(--surface), inset 0 0 0 1em var(--sun);
}

.ac-header__actions { display: flex; align-items: center; gap: .25rem; }

.ac-iconbtn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%;
	border: 0; background: transparent;
}
.ac-iconbtn:hover { background: var(--a-tint); }
.ac-burger__close { display: none; }
.ac-menu-open .ac-burger__open { display: none; }
.ac-menu-open .ac-burger__close { display: inline; }

/* Navigation mobile : panneau plein écran */
.ac-nav {
	position: fixed; inset: var(--header-h) 0 0 0; z-index: 60;
	background: var(--surface);
	border-top: 1px solid var(--line);
	padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
	overflow-y: auto;
	display: none;
}
.ac-menu-open .ac-nav { display: block; }
.ac-menu-open { overflow: hidden; }
.admin-bar .ac-nav { inset-block-start: calc(var(--header-h) + 46px); }

.ac-nav ul { list-style: none; margin: 0; padding: 0; }
.ac-nav__list > li > a {
	display: flex; align-items: center; justify-content: space-between;
	padding: .95rem 0;
	font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em;
	text-decoration: none;
	border-bottom: 1px solid var(--line);
}
.ac-nav .sub-menu a { display: block; padding: .5rem 0 .5rem 1rem; color: var(--ink-2); text-decoration: none; }

@media (min-width: 1024px) {
	.ac-burger { display: none; }
	.ac-nav {
		position: static; display: block; padding: 0; background: none; overflow: visible;
	}
	.ac-nav__list { display: flex; flex-wrap: wrap; gap: .1rem; }
	.ac-nav__list > li { position: relative; }
	.ac-nav__list > li > a {
		font-size: .95rem; font-weight: 600; letter-spacing: 0;
		padding: .5rem .6rem; border: 0; border-radius: 999px;
	}
	.ac-nav__list > li > a:hover { background: var(--a-tint); }
	.ac-nav__list > .current-menu-item > a,
	.ac-nav__list > .current-page-ancestor > a,
	.ac-nav__list > .current-menu-ancestor > a {
		background: var(--a-tint); color: var(--a-deep);
	}
	.ac-nav .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 220px;
		background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
		padding: .5rem; display: none;
	}
	.ac-nav li:hover > .sub-menu, .ac-nav li:focus-within > .sub-menu { display: block; }
}

/* Recherche */
.ac-search { border-top: 1px solid var(--line); padding: 1rem 0; background: var(--surface); }
.ac-searchform {
	display: flex; align-items: center;
	background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
	padding: .3rem .3rem .3rem 1.1rem; max-width: 640px;
}
.ac-searchform:focus-within { border-color: var(--a); }
.ac-searchform input {
	flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
	font-size: 1rem; padding: .55rem 0;
}
.ac-searchform button {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 0; background: var(--ink); color: #fff;
}

/* Rail des animaux (mobile) */
.ac-rail { border-bottom: 1px solid var(--line); background: var(--surface); }
.ac-rail__list, .ac-picker {
	list-style: none; margin: 0; padding: .7rem var(--gutter);
	display: flex; gap: .5rem;
	overflow-x: auto; scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.ac-rail__list::-webkit-scrollbar, .ac-picker::-webkit-scrollbar { display: none; }
.ac-rail__list > li, .ac-picker > li { flex: none; scroll-snap-align: start; }
@media (min-width: 1024px) { .ac-rail { display: none; } }
.ac-archive .ac-rail { display: block; border: 0; background: none; margin-top: 1rem; }
.ac-archive .ac-rail__list { padding-inline: 0; flex-wrap: wrap; }

/* 5. Composants ------------------------------------------------------------- */

.ac-chip {
	display: inline-flex; align-items: center; gap: .45rem;
	min-height: 44px; padding: .45rem 1rem .45rem .8rem;
	border-radius: 999px;
	border: 1.5px solid var(--line);
	background: var(--surface);
	font-weight: 650; font-size: .95rem; line-height: 1.1;
	text-decoration: none; white-space: nowrap;
	transition: background-color .2s, border-color .2s;
}
.ac-chip:hover { border-color: var(--a); }
.ac-chip.is-current, .ac-chip[aria-pressed="true"] {
	background: var(--a-soft); border-color: var(--a); color: var(--ink);
}
.ac-chip__emoji { font-size: 1.15rem; line-height: 1; }
.ac-chip span:not(.ac-chip__emoji) { color: var(--ink-2); font-weight: 500; }

.ac-btn {
	display: inline-flex; align-items: center; gap: .55rem;
	min-height: 48px; padding: .75rem 1.3rem;
	border-radius: 999px; border: 0;
	background: var(--ink); color: #fff;
	font-family: var(--f-sans); font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none;
}
.ac-btn:hover { background: var(--a-deep); color: #fff; }

.ac-link {
	font-weight: 650; color: var(--a-deep);
	text-decoration: underline; text-decoration-color: var(--a-soft);
	text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.ac-link:hover { text-decoration-color: var(--a); }

.ac-tag {
	display: inline-flex; align-items: center; gap: .4rem;
	font-size: .82rem; font-weight: 700; color: var(--a-deep);
	text-decoration: none; position: relative; z-index: 2;
}
.ac-tag::before {
	content: ""; width: .6rem; height: .6rem; border-radius: 50%;
	border: 2px solid var(--a); background: var(--a-soft);
}

.ac-section { padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.ac-section__head {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
	gap: .5rem 1.5rem; margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.ac-section__title {
	font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.45rem);
	font-weight: 780; letter-spacing: -.03em;
}
.ac-section > .ac-wrap > .ac-section__title { margin-bottom: clamp(1.25rem, 3vw, 2rem); }

/* Cartes */
.ac-card { position: relative; display: flex; flex-direction: column; gap: .85rem; }
.ac-card__media {
	display: block; overflow: hidden; border-radius: var(--r-m);
	aspect-ratio: 3 / 2; background: var(--a-tint);
}
.ac-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ac-card:hover .ac-card__media img { transform: scale(1.04); }
.ac-card__placeholder { display: grid; place-items: center; height: 100%; font-size: 3rem; }
.ac-card__body { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.ac-card__title { font-size: 1.22rem; font-weight: 720; letter-spacing: -.015em; line-height: 1.22; }
.ac-card__title a { text-decoration: none; }
.ac-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ac-card:hover .ac-card__title a { text-decoration: underline; text-decoration-color: var(--a); }
.ac-card__excerpt { color: var(--ink-2); font-size: .98rem; }
.ac-card__meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .84rem; color: var(--ink-2); }

.ac-card--row { flex-direction: row; align-items: center; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.ac-card--row .ac-card__media { flex: none; width: 104px; aspect-ratio: 1; border-radius: var(--r-s); }
.ac-card--row .ac-card__title { font-size: 1.06rem; }

.ac-card--feature .ac-card__media { aspect-ratio: 16 / 10; border-radius: var(--r-l); }
.ac-card--feature .ac-card__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 780; letter-spacing: -.03em; line-height: 1.08; }
.ac-card--feature .ac-card__excerpt { font-family: var(--f-serif); font-size: 1.08rem; line-height: 1.6; max-width: 60ch; }

.ac-grid { display: grid; gap: 2.25rem 1.5rem; }
@media (min-width: 640px) { .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem 2rem; } }
.ac-grid__feature, .ac-grid__full { grid-column: 1 / -1; }
@media (min-width: 900px) {
	.ac-grid__feature .ac-card--feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: center; }
}

.ac-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; }
.ac-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem;
	border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
	font-weight: 650; text-decoration: none;
}
.ac-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.ac-pagination .page-numbers.dots { border: 0; background: none; }

.ac-breadcrumbs { font-size: .86rem; color: var(--ink-2); margin-bottom: 1rem; }
.ac-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem .5rem; }
.ac-breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.ac-breadcrumbs a { text-decoration: none; }
.ac-breadcrumbs a:hover { text-decoration: underline; }
.ac-breadcrumbs [aria-current] { display: inline-block; max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.ac-empty { padding: 2rem 0; color: var(--ink-2); font-size: 1.1rem; }

/* 6. Accueil ---------------------------------------------------------------- */

.ac-hero {
	position: relative;
	padding-block: clamp(1.75rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem);
	background: linear-gradient(var(--surface), var(--paper));
	overflow: hidden;
}
.ac-hero__grid {
	display: grid; gap: 1.75rem;
	grid-template-areas: "text" "lens" "picker";
}
.ac-hero__text { grid-area: text; }
.ac-lens { grid-area: lens; }
.ac-hero__picker { grid-area: picker; min-width: 0; }

.ac-hero__title {
	font-size: clamp(2.3rem, 1.3rem + 4.8vw, 4.75rem);
	font-weight: 800; line-height: .98; letter-spacing: -.045em;
	font-variation-settings: "opsz" 96;
	max-width: 13ch;
}
.ac-hero__intro {
	margin-top: 1.1rem; max-width: 46ch;
	font-family: var(--f-serif); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--ink-2);
}

/* La loupe */
.ac-lens {
	position: relative; margin: 0 auto;
	width: min(84vw, 540px);
	padding-bottom: 5.5rem;
}
.ac-lens__halo {
	position: absolute; left: 50%; top: 0;
	width: 100%; aspect-ratio: 1; translate: -44% -2%;
	border-radius: 50%;
	background: var(--a-soft);
	transition: background-color .7s var(--ease);
}
.ac-lens__view {
	position: relative; width: 100%; aspect-ratio: 1;
	border-radius: 50%; overflow: hidden; isolation: isolate;
	background: var(--a-tint);
	box-shadow: 0 0 0 clamp(6px, 1.4vw, 10px) var(--surface), 0 40px 70px -40px color-mix(in oklab, var(--a) 70%, #000);
	transition: box-shadow .7s var(--ease);
	transform: scale(.88); transform-origin: 50% 50%;
}
.ac-lens__slide {
	position: absolute; inset: 0;
	clip-path: circle(0% at 50% 50%);
	transition: clip-path .9s var(--ease);
	z-index: 0;
}
.ac-lens__slide.is-prev { clip-path: circle(72% at 50% 50%); z-index: 1; }
.ac-lens__slide.is-active { clip-path: circle(72% at 50% 50%); z-index: 2; }
.ac-lens__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.ac-lens__slide.is-active img { transform: scale(1); }
.ac-lens__emoji { display: grid; place-items: center; height: 100%; font-size: clamp(5rem, 22vw, 9rem); }

.ac-lens__reticle {
	position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 1;
	overflow: visible; pointer-events: none;
	transition: transform 1.1s var(--ease);
}
.ac-lens__ticks line { stroke: var(--ink); stroke-width: .6; opacity: .45; }
.ac-lens__ticks line.is-long { stroke: var(--a-deep); stroke-width: 1.4; opacity: 1; transition: stroke .7s; }
.ac-lens__ring { fill: none; stroke: var(--ink); stroke-width: .5; opacity: .25; }
.ac-lens__cross { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: .9; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .35)); }

.ac-lens__caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: grid; place-items: center; text-align: center;
	min-height: 5rem;
}
.ac-lens__q { display: flex; flex-direction: column; align-items: center; gap: .4rem; max-width: 36ch; }
.ac-lens__q[hidden] { display: none; }
.ac-lens__q.is-active { animation: ac-rise .6s var(--ease) both; }
.ac-lens__animal {
	font-size: .82rem; font-weight: 750; color: var(--a-deep);
	background: var(--surface); border: 1.5px solid var(--a); border-radius: 999px; padding: .2rem .75rem;
}
.ac-lens__q a { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; text-decoration-color: var(--a); }

@keyframes ac-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ac-hero__pick-label { font-weight: 700; font-size: .95rem; margin-bottom: .1rem; }
.ac-hero__picker .ac-picker { margin-inline: calc(-1 * var(--gutter)); padding-block: .6rem .8rem; }
.ac-hero__cta {
	display: inline-flex; margin-top: .6rem;
	font-weight: 650; text-decoration-color: var(--a); text-decoration-thickness: 2px;
}

@media (min-width: 1024px) {
	.ac-hero__grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		grid-template-areas: "text lens" "picker lens";
		grid-template-rows: auto 1fr;
		column-gap: 4rem; row-gap: 2rem; align-items: start;
	}
	.ac-hero__text { padding-top: 2.5rem; }
	.ac-lens { width: 100%; max-width: 540px; }
	.ac-hero__picker .ac-picker { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}

/* Derniers articles */
.ac-latest { padding-top: clamp(1.5rem, 4vw, 3rem); }
.ac-latest__layout { display: grid; gap: 1.5rem; }
.ac-latest__list > .ac-card--row:first-child { border-top: 0; }
@media (min-width: 900px) {
	.ac-latest__layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
	.ac-latest__list > .ac-card--row:first-child { padding-top: 0; }
}

/* Animaux */
.ac-animals { background: var(--surface); border-block: 1px solid var(--line); }
.ac-animals__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem;
}
@media (min-width: 640px) { .ac-animals__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 639px) { .ac-animals__grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

.ac-tile {
	position: relative;
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: .9rem;
	align-items: center;
	padding: 1rem; border-radius: var(--r-l);
	background: var(--a-tint);
	transition: background-color .25s;
}
.ac-tile:hover { background: var(--a-soft); }
.ac-tile__media {
	grid-row: 1 / 3;
	width: 58px; height: 58px; border-radius: 50%; overflow: hidden;
	box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--a);
	background: var(--surface); display: grid; place-items: center; font-size: 1.8rem;
}
.ac-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.ac-tile__name { font-size: 1.18rem; font-weight: 760; letter-spacing: -.02em; align-self: end; }
.ac-tile__name a { text-decoration: none; }
.ac-tile__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ac-tile__count { font-size: .86rem; color: var(--ink-2); align-self: start; }
.ac-tile__guide {
	grid-column: 1 / -1; position: relative; z-index: 2; justify-self: start;
	margin-top: .75rem; font-size: .88rem; font-weight: 650; color: var(--a-deep);
	text-decoration-color: var(--a);
}
@media (max-width: 479px) {
	.ac-tile { grid-template-columns: 1fr; row-gap: .25rem; }
	.ac-tile__media { grid-row: auto; margin-bottom: .5rem; width: 52px; height: 52px; }
	.ac-tile__guide { margin-top: .4rem; }
}
@media (min-width: 1024px) {
	.ac-tile { padding: 1.4rem; column-gap: 1.2rem; }
	.ac-tile__media { width: 76px; height: 76px; }
	.ac-tile__name { font-size: 1.45rem; }
}

/* Accueil piloté par la page WordPress (.ac-front) ------------------------ */
.ac-front { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.ac-front > :not(.ac-block) {
	width: min(100% - 2 * var(--gutter), var(--max-text));
	margin-inline: auto; margin-block: 0;
}
.ac-front > .alignwide, .ac-front > .ac-banner { width: min(100% - 2 * var(--gutter), var(--max)); }
.ac-front > .alignfull { width: 100%; }
.ac-front > :not(.ac-block) + :not(.ac-block) { margin-top: 1.15rem; }
.ac-front > .ac-block + :not(.ac-block), .ac-front > :not(.ac-block) + .ac-block { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.ac-front > :first-child:not(.ac-block) { margin-top: clamp(2rem, 5vw, 4rem); }
.ac-front > p, .ac-front > ul, .ac-front > ol, .ac-front > .wp-block-group p {
	font-family: var(--f-serif); font-size: 1.125rem; line-height: 1.72;
}
.ac-front > h2 { font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.45rem); font-weight: 780; letter-spacing: -.03em; }
.ac-front > h2 + * { margin-top: .75rem !important; }
.ac-front > h3 { font-size: 1.35rem; font-weight: 720; }
.ac-front > p a, .ac-front > ul a { color: var(--a-deep); text-decoration-color: var(--a); }
.ac-block > .ac-hero { padding-block: clamp(1.75rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); }
.ac-admin-hint { padding: 2rem 0; }

/* 7. Hubs (catégorie & guide) ----------------------------------------------- */

.ac-hub {
	background: var(--a-tint);
	padding-block: 1.5rem clamp(2rem, 5vw, 3.5rem);
	border-bottom: 1px solid var(--a-soft);
	overflow: hidden;
}
.ac-hub__grid { display: grid; gap: 1.25rem; grid-template-areas: "media" "text"; }
.ac-hub__text { grid-area: text; min-width: 0; }
.ac-hub__media { grid-area: media; }
.ac-hub__title {
	font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem);
	font-weight: 800; letter-spacing: -.04em; line-height: 1.02;
	font-variation-settings: "opsz" 96;
}
.ac-hub__intro { margin-top: 1rem; max-width: 60ch; font-family: var(--f-serif); font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); }
.ac-hub__intro p + p { margin-top: .75em; }
.ac-hub__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: 1rem; font-size: .9rem; color: var(--ink-2); }
.ac-hub__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.ac-hub__cta { margin-top: 1.4rem; }

.ac-hub__lens {
	position: relative;
	width: clamp(108px, 30vw, 150px); aspect-ratio: 1; margin-top: .5rem;
}
.ac-hub__lens > img, .ac-hub__lens > span {
	width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
	box-shadow: 0 0 0 6px var(--surface);
	display: grid; place-items: center; font-size: 3.5rem; background: var(--surface);
}
.ac-hub__lens::before {
	content: ""; position: absolute; inset: -16px; border-radius: 50%;
	background: repeating-conic-gradient(var(--ink) 0 .7deg, transparent .7deg 5deg);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
	opacity: .3;
}
.ac-hub__lens::after {
	content: ""; position: absolute; inset: -30px; border-radius: 50%; z-index: -1;
	background: var(--a-soft); translate: 18% 8%;
}
@media (min-width: 900px) {
	.ac-hub { padding-block: 2rem 4rem; }
	.ac-hub__grid { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text media"; gap: 4rem; align-items: center; }
	.ac-hub__lens { width: clamp(220px, 24vw, 340px); margin: 0 2rem 0 0; }
	.ac-hub__lens::before { inset: -22px; }
}

.ac-subcats ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }

/* 8. Article & contenu -------------------------------------------------------- */

.ac-single__head, .ac-page__head { padding-block: 1.5rem 1.75rem; }
@media (min-width: 1024px) { .ac-single__head, .ac-page__head { padding-block: 2.5rem 2.5rem; } }
.ac-single__title, .ac-page__title {
	font-size: clamp(2rem, 1.35rem + 2.7vw, 3.3rem);
	font-weight: 800; letter-spacing: -.035em; line-height: 1.04;
	font-variation-settings: "opsz" 96;
}
.ac-page__search { margin-top: 1.25rem; }

.ac-byline { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.ac-byline__avatar { border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--a); }
.ac-byline__author { font-weight: 650; display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: center; }
.ac-byline__author a { text-decoration: none; }
.ac-byline__review { display: inline-flex; align-items: center; gap: .25rem; font-size: .88rem; font-weight: 600; color: var(--brand); }
.ac-byline__review .ac-icon { width: 1.05em; height: 1.05em; }
.ac-byline__meta { display: flex; flex-wrap: wrap; gap: .2rem 1rem; font-size: .88rem; color: var(--ink-2); }
.ac-byline__meta span { display: inline-flex; align-items: center; gap: .3rem; }

.ac-single__hero { margin-block: 0 2rem; }
.ac-single__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-l); }
.ac-single__hero figcaption { margin-top: .5rem; font-size: .84rem; color: var(--ink-2); }
@media (max-width: 639px) {
	.ac-single__hero { width: 100%; }
	.ac-single__hero img { border-radius: 0; aspect-ratio: 3 / 2; }
	.ac-single__hero figcaption { padding-inline: var(--gutter); }
}

.ac-layout { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.ac-layout__main { min-width: 0; }
.ac-layout__aside { display: none; }
@media (min-width: 1100px) {
	.ac-layout { grid-template-columns: minmax(0, 720px) 300px; justify-content: center; gap: 4.5rem; }
	.ac-layout__aside { display: block; }
	.ac-layout__main > .ac-toc--inline { display: none; }
	.ac-layout--guide { padding-top: 3rem; }
}
.ac-layout--guide { padding-top: 2rem; }
.ac-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }

/* En bref */
.ac-keypoints {
	background: var(--surface);
	border: 1.5px solid var(--a-soft); border-radius: var(--r-l);
	padding: 1.25rem 1.25rem 1.35rem; margin-bottom: 1.5rem;
}
.ac-keypoints__title { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.05rem; margin-bottom: .75rem; }
.ac-keypoints__title::before { content: ""; width: .9rem; height: .9rem; border-radius: 50%; border: 3px solid var(--a); }
.ac-keypoints ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.ac-keypoints li { display: flex; gap: .6rem; align-items: flex-start; font-size: 1.02rem; line-height: 1.45; }
.ac-keypoints li .ac-icon { margin-top: .1rem; padding: .18rem; border-radius: 50%; background: var(--a-soft); color: var(--a-deep); width: 1.4rem; height: 1.4rem; }
.ac-keypoints > p:not(.ac-keypoints__title) { font-family: var(--f-serif); font-size: 1.05rem; line-height: 1.6; }

/* Sommaire */
.ac-toc--inline {
	border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--surface);
	margin-bottom: 2rem;
}
.ac-toc--inline summary {
	list-style: none; cursor: pointer;
	display: flex; align-items: center; gap: .4rem;
	padding: .9rem 1.1rem; min-height: 48px; font-weight: 750;
}
.ac-toc--inline summary::-webkit-details-marker { display: none; }
.ac-toc--inline summary::after {
	content: ""; margin-left: auto; width: .55rem; height: .55rem;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
	transition: transform .25s;
}
.ac-toc--inline[open] summary::after { transform: rotate(-135deg); }
.ac-toc--inline summary span { font-weight: 500; color: var(--ink-2); }
.ac-toc--inline nav { padding: 0 1.1rem 1rem; }

.ac-toc__title { font-weight: 800; margin-bottom: .75rem; }
.ac-toc__list { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: .15rem; }
.ac-toc__list li { counter-increment: toc; }
.ac-toc__list a {
	display: flex; gap: .7rem; padding: .45rem .5rem; border-radius: var(--r-s);
	text-decoration: none; font-size: .95rem; line-height: 1.35;
}
.ac-toc__list a::before { content: counter(toc); flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 750; background: var(--a-tint); color: var(--a-deep); }
.ac-toc__list a:hover { background: var(--a-tint); }
.ac-toc__list a.is-active { background: var(--a-tint); font-weight: 700; }
.ac-toc__list a.is-active::before { background: var(--a); color: #fff; }
.ac-toc--aside { padding: 1.25rem; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); max-height: calc(100vh - var(--header-h) - 4rem); overflow-y: auto; }

/* Prose */
.ac-prose {
	font-family: var(--f-serif); font-size: 1.125rem; line-height: 1.72;
	overflow-wrap: break-word;
}
@media (min-width: 1024px) { .ac-prose { font-size: 1.1875rem; } }
.ac-prose > * { margin-block: 0; }
.ac-prose > * + * { margin-top: 1.15em; }
.ac-prose h2, .ac-prose h3, .ac-prose h4 { font-family: var(--f-sans); letter-spacing: -.02em; scroll-margin-top: calc(var(--header-h) + 1.25rem); }
.ac-prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 760; line-height: 1.15; margin-top: 2.1em; }
.ac-prose h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.4rem); font-weight: 720; line-height: 1.25; margin-top: 1.8em; }
.ac-prose h4 { font-size: 1.1rem; font-weight: 720; margin-top: 1.6em; }
.ac-prose h2 + *, .ac-prose h3 + *, .ac-prose h4 + * { margin-top: .6em; }
.ac-prose a { color: var(--a-deep); text-decoration-color: var(--a); text-decoration-thickness: 1.5px; }
.ac-prose a:hover { text-decoration-thickness: 3px; }
.ac-prose strong { font-weight: 680; }
.ac-prose ul, .ac-prose ol { padding-left: 1.3em; }
.ac-prose li + li { margin-top: .45em; }
.ac-prose li::marker { color: var(--a); font-family: var(--f-sans); font-weight: 750; }
.ac-prose img { border-radius: var(--r-m); }
.ac-prose figure { margin-inline: 0; }
.ac-prose figcaption { font-family: var(--f-sans); font-size: .85rem; color: var(--ink-2); margin-top: .5rem; }
.ac-prose blockquote {
	margin-inline: 0; padding: .25rem 0 .25rem 1.25rem;
	border-left: 4px solid var(--a); font-style: italic; font-size: 1.2em; line-height: 1.5;
}
.ac-prose blockquote cite { display: block; margin-top: .5rem; font-family: var(--f-sans); font-style: normal; font-size: .8em; color: var(--ink-2); }
.ac-prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.5em; }
.ac-prose table { width: 100%; border-collapse: collapse; font-family: var(--f-sans); font-size: .95rem; }
.ac-prose .wp-block-table, .ac-prose > table { overflow-x: auto; display: block; }
.ac-prose .wp-block-table table { display: table; }
.ac-prose th, .ac-prose td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ac-prose thead th { background: var(--a-tint); font-weight: 750; border-bottom: 2px solid var(--a-soft); }
.ac-prose .is-style-ac-clean td:first-child { font-weight: 650; }
.ac-prose iframe { max-width: 100%; border-radius: var(--r-m); }
.ac-prose .wp-block-image.alignwide, .ac-prose .alignwide { margin-inline: calc(-1 * min(4vw, 3rem)); }
.ac-prose .wp-block-buttons .wp-block-button__link { border-radius: 999px; background: var(--ink); font-family: var(--f-sans); font-weight: 700; }

/* Encadrés éditoriaux (styles de blocs) */
.ac-prose .is-style-ac-vet, .ac-prose .is-style-ac-tip, .ac-prose .is-style-ac-info {
	padding: 1.15rem 1.25rem; border-radius: var(--r-m); border: 1.5px solid;
	font-size: 1.04rem; line-height: 1.6;
}
.ac-prose .is-style-ac-vet { background: #fff4f2; border-color: #f2c7c0; }
.ac-prose .is-style-ac-tip { background: #fff7e0; border-color: #f2dd9b; }
.ac-prose .is-style-ac-info { background: var(--a-tint); border-color: var(--a-soft); }
.ac-prose p.is-style-ac-vet::before, .ac-prose p.is-style-ac-tip::before, .ac-prose p.is-style-ac-info::before {
	display: block; margin-bottom: .3rem; font-family: var(--f-sans); font-weight: 780; font-size: .95rem;
}
.ac-prose p.is-style-ac-vet::before { content: "🩺 Quand consulter"; color: var(--alert); }
.ac-prose p.is-style-ac-tip::before { content: "💡 Astuce"; color: #8a5a00; }
.ac-prose p.is-style-ac-info::before { content: "Bon à savoir"; color: var(--a-deep); }
.ac-prose .wp-block-group.is-style-ac-vet h2, .ac-prose .wp-block-group.is-style-ac-vet h3 { color: var(--alert); margin-top: 0; }
.ac-prose .wp-block-group > * + * { margin-top: .75em; }
.ac-prose .is-style-ac-lead { font-size: 1.2em; line-height: 1.55; color: var(--ink-2); }

.ac-prose .is-style-ac-check, .ac-prose .is-style-ac-cross { list-style: none; padding-left: 0; }
.ac-prose .is-style-ac-check li, .ac-prose .is-style-ac-cross li { position: relative; padding-left: 2.1rem; }
.ac-prose .is-style-ac-check li::before, .ac-prose .is-style-ac-cross li::before {
	content: ""; position: absolute; left: 0; top: .25em; width: 1.4rem; height: 1.4rem; border-radius: 50%;
	background: var(--a-soft) no-repeat center / 70%;
}
.ac-prose .is-style-ac-check li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23173038' d='m9.5 16.2-4.2-4.2-1.4 1.4 5.6 5.6L21.1 7.4 19.7 6z'/%3E%3C/svg%3E"); }
.ac-prose .is-style-ac-cross li::before { background-color: #fbe0dc; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c4412f' d='m6.4 5 5.6 5.6L17.6 5 19 6.4 13.4 12l5.6 5.6-1.4 1.4-5.6-5.6L6.4 19 5 17.6l5.6-5.6L5 6.4z'/%3E%3C/svg%3E"); }

/* FAQ en accordéon */
.ac-prose .ac-faq { margin-top: 1.25em; border-top: 1.5px solid var(--line); }
.ac-faq__item { border-bottom: 1.5px solid var(--line); }
.ac-faq__item summary {
	list-style: none; cursor: pointer;
	display: flex; align-items: center; gap: 1rem; padding: 1.05rem 0; min-height: 56px;
}
.ac-faq__item summary::-webkit-details-marker { display: none; }
.ac-prose .ac-faq__item summary h3 { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.35; flex: 1; }
.ac-faq__icon {
	flex: none; position: relative; width: 2rem; height: 2rem; border-radius: 50%; background: var(--a-tint);
	transition: background-color .25s, transform .3s var(--ease);
}
.ac-faq__icon::before, .ac-faq__icon::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: .8rem; height: 2px; background: var(--a-deep);
	translate: -50% -50%;
}
.ac-faq__icon::after { rotate: 90deg; transition: rotate .3s var(--ease); }
.ac-faq__item[open] .ac-faq__icon { background: var(--a-soft); }
.ac-faq__item[open] .ac-faq__icon::after { rotate: 0deg; }
.ac-faq__answer { padding: 0 0 1.25rem; }
.ac-faq__answer > * + * { margin-top: .8em; }

/* Sources, auteur, commentaires */
.ac-sources { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .92rem; }
.ac-sources__title { font-size: 1rem; font-weight: 750; margin-bottom: .5rem; }
.ac-sources ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); display: grid; gap: .3rem; }

.ac-author {
	display: flex; gap: 1rem; align-items: flex-start;
	margin-top: 2.5rem; padding: 1.25rem; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line);
}
.ac-author__avatar { border-radius: 50%; flex: none; }
.ac-author__name { font-weight: 750; font-size: 1.05rem; }
.ac-author__name a { text-decoration: none; }
.ac-author__bio { margin-top: .25rem; color: var(--ink-2); font-size: .95rem; }

.ac-related { background: var(--surface); border-top: 1px solid var(--line); }

.ac-comments { padding-block: 2rem 4rem; }
.ac-comments__list { list-style: none; padding: 0; margin: 1.5rem 0; }
.ac-comments .comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.ac-comments .avatar { border-radius: 50%; float: left; margin-right: .75rem; }
.ac-comments .children { list-style: none; padding-left: 1.5rem; }
.comment-form label { display: block; font-weight: 650; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--surface);
}
.comment-form p { margin-bottom: 1rem; }

/* 9. Bannières & affiliation ------------------------------------------------ */

.ac-banner { margin-block: 2rem; text-align: center; }
.ac-banner__label {
	display: block; margin-bottom: .4rem;
	font-family: var(--f-sans); font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
}
.ac-banner__item { display: flex; justify-content: center; }
.ac-banner__item + .ac-banner__item { margin-top: .75rem; }
.ac-banner__item img { border-radius: var(--r-s); max-width: 100%; height: auto; }
.ac-banner__title { font-weight: 700; }
.ac-prose .ac-banner { margin-block: 2.25em; font-size: 1rem; }

.ac-banner--header { width: min(100% - 2 * var(--gutter), var(--max)); margin: 1rem auto 0; }
.ac-banner--sidebar { margin: 0; }
.ac-banner--sidebar .ac-banner__item { min-height: 250px; align-items: flex-start; }

.ac-banner--empty {
	display: grid; place-items: center; min-height: 110px; padding: 1rem;
	border: 2px dashed var(--a-soft); border-radius: var(--r-m);
	background: repeating-linear-gradient(-45deg, transparent 0 10px, var(--a-tint) 10px 20px);
	font-family: var(--f-sans); font-size: .88rem; color: var(--ink-2);
}
.ac-banner--empty strong { color: var(--ink); }
.ac-banner--empty span { font-size: .78rem; }
.ac-banner--sidebar.ac-banner--empty { min-height: 300px; }

/* Encadré produit [ac_produit] */
.ac-product {
	display: grid; grid-template-columns: 88px 1fr; gap: 1rem; align-items: center;
	padding: 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r-l); background: var(--surface);
	font-family: var(--f-sans); position: relative; margin-block: 2em;
}
.ac-product .ac-banner__label { position: absolute; top: -.55rem; left: 1rem; margin: 0; padding: 0 .4rem; background: var(--surface); }
.ac-product__media img { width: 88px; height: 88px; object-fit: contain; border-radius: var(--r-s); }
.ac-product__title { font-weight: 750; font-size: 1.08rem; line-height: 1.25; }
.ac-product__text { margin-top: .3rem; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.ac-product__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-top: .8rem; }
.ac-prose .ac-product .ac-btn { color: #fff; text-decoration: none; }
.ac-product__merchant { font-size: .82rem; color: var(--ink-2); }
@media (min-width: 640px) {
	.ac-product { grid-template-columns: 130px 1fr; padding: 1.4rem; }
	.ac-product__media img { width: 130px; height: 130px; }
}

/* Barre partenaire mobile */
.ac-mobile-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	display: flex; align-items: center; gap: .5rem;
	padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom)) .75rem;
	background: var(--surface); border-top: 1px solid var(--line);
	box-shadow: 0 -10px 30px -18px rgba(23, 48, 56, .5);
}
.ac-mobile-bar[hidden] { display: none; }
.ac-mobile-bar .ac-banner { margin: 0; flex: 1; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.ac-mobile-bar .ac-banner__label { margin: 0; writing-mode: vertical-rl; rotate: 180deg; font-size: .62rem; }
.ac-mobile-bar .ac-banner__item { flex: 1; min-width: 0; }
.ac-mobile-bar__close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); display: grid; place-items: center; }
.ac-mobile-bar__close .ac-icon { width: 18px; height: 18px; }
body.has-mobile-bar { padding-bottom: 72px; }
@media (min-width: 1024px) { .ac-mobile-bar { display: none !important; } body.has-mobile-bar { padding-bottom: 0; } }

/* 10. Pied de page & divers -------------------------------------------------- */

.ac-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding-top: clamp(3rem, 7vw, 5rem); margin-top: 0; }
.ac-footer a { color: #fff; text-decoration: none; }
.ac-footer a:hover { text-decoration: underline; text-decoration-color: var(--sun); }
.ac-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .ac-footer__grid { grid-template-columns: 1.3fr 1.5fr 1fr; gap: 4rem; } }
.ac-footer__name { color: #fff; font-size: 1.6rem; }
.ac-footer__name .ac-logo__mark { box-shadow: inset 0 0 0 .14em var(--ink), inset 0 0 0 1em var(--sun); }
.ac-footer__brand p { margin-top: 1rem; max-width: 42ch; line-height: 1.6; }
.ac-footer__title { color: #fff; font-weight: 750; margin-bottom: .9rem; }
.ac-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ac-footer__animals { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.ac-footer__animals a { display: inline-flex; align-items: center; gap: .55rem; }
.ac-footer__animals a::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--a); }
.ac-footer__bottom { margin-top: 3rem; padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; }
.ac-footer__notice { max-width: 80ch; margin-bottom: 1rem; color: rgba(255, 255, 255, .62); }
.ac-footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.ac-legal { display: flex !important; flex-wrap: wrap; gap: .5rem 1.25rem !important; }

/* 404 */
.ac-404 { padding-block: 3rem 2rem; text-align: center; }
.ac-404 .ac-searchform { margin: 1.5rem auto 0; }
.ac-404 p { margin-top: .75rem; color: var(--ink-2); font-size: 1.1rem; }
.ac-404__lens {
	width: 140px; aspect-ratio: 1; margin: 0 auto 1.5rem; border-radius: 50%;
	display: grid; place-items: center; background: var(--a-tint);
	box-shadow: 0 0 0 8px var(--surface), 0 0 0 10px var(--a-soft);
	font-size: 4rem; font-weight: 800; color: var(--a-deep);
}

/* Alignements WordPress */
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--ink-2); }
.sticky, .bypostauthor { /* classes WordPress requises */ }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Impression */
@media print {
	.ac-header, .ac-rail, .ac-banner, .ac-mobile-bar, .ac-layout__aside, .ac-related, .ac-footer, .ac-toc { display: none !important; }
	body { background: #fff; }
}

/* Colonnes de menu du pied de page : 2 colonnes au-delà de 5 liens */
.ac-footer__menu:has(> li:nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }

/* Texte éditorial de l'accueil (mode Animauxcope) */
.ac-about__inner { max-width: var(--max-text); }

/* Pied de page : pastille de couleur devant les univers animaux */
.ac-footer a.ac-dot { display: inline-flex; align-items: center; gap: .55rem; }
.ac-footer a.ac-dot::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--a); flex: none; }
.ac-prose > :first-child { margin-top: 0; }

/* Mise en page « flux » (accueil et pages) ---------------------------------
   Texte en colonne lisible ; blocs Animauxcope et blocs pleine largeur en grand. */
.ac-flow { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.ac-flow > .ac-flow__text {
	width: min(100% - 2 * var(--gutter), var(--max-text));
	margin-inline: auto;
	padding-block: clamp(1.5rem, 4vw, 3rem) 0;
}
.ac-flow > .ac-flow__text:first-child { padding-top: clamp(1rem, 3vw, 2rem); }
.ac-page__head + .ac-flow > .ac-flow__text:first-child { padding-top: 0; }
.ac-flow > .ac-block + .ac-flow__text { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.ac-flow__text > .alignwide { width: min(100vw - 2 * var(--gutter), var(--max)); margin-inline: calc(50% - min(50vw - var(--gutter), var(--max) / 2)); max-width: none; }
.ac-flow__text > .alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.ac-flow__text > .alignfull img, .ac-flow__text > .alignwide img { width: 100%; }
.ac-flow__text > .wp-block-cover.alignfull, .ac-flow__text > .wp-block-group.alignfull.has-background { padding-inline: var(--gutter); }
.ac-flow .ac-latest { padding-top: clamp(2rem, 5vw, 3.5rem); }

/* Pied de page : zone de widgets « présentation » */
.ac-footer__widget { margin-top: 1rem; max-width: 42ch; line-height: 1.6; }
.ac-footer__widget p + p { margin-top: .6rem; }
.ac-footer__widget img { margin-top: .5rem; border-radius: var(--r-s); }
.ac-footer__widget .wp-block-social-links { margin-top: 1rem; }

/* Logo dans le pied de page (sur fond clair pour rester lisible) */
.ac-footer__logo { display: inline-flex; padding: .6rem .9rem; background: #fff; border-radius: var(--r-m); }
.ac-footer__logo img { max-height: 44px; width: auto; }

/* Bloc WordPress « Derniers articles » dans le contenu : cartes */
.ac-prose .wp-block-latest-posts { list-style: none; padding: 0; display: grid; gap: 1.75rem 1.25rem; font-family: var(--f-sans); }
@media (min-width: 640px) { .ac-prose .wp-block-latest-posts.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ac-prose .wp-block-latest-posts.is-grid li { width: auto; margin: 0; }
.ac-prose .wp-block-latest-posts li + li { margin-top: 0; }
.ac-prose .wp-block-latest-posts li { display: flex; flex-direction: column; gap: .35rem; }
.ac-prose .wp-block-latest-posts__featured-image { margin: 0 0 .5rem; float: none !important; max-width: none; }
.ac-prose .wp-block-latest-posts__featured-image img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-m); max-width: none; }
.ac-prose .wp-block-latest-posts__post-title { font-size: 1.15rem; font-weight: 720; line-height: 1.25; color: var(--ink); text-decoration: none; }
.ac-prose .wp-block-latest-posts__post-title:hover { text-decoration: underline; text-decoration-color: var(--a); }
.ac-prose .wp-block-latest-posts__post-date, .ac-prose .wp-block-latest-posts__post-author { font-size: .84rem; color: var(--ink-2); }
.ac-prose .wp-block-latest-posts__post-excerpt { font-size: .95rem; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* Indication admin (accueil vide) */
.ac-admin-hint { padding-block: clamp(2.5rem, 6vw, 4rem); display: grid; gap: 1rem; }
.ac-admin-hint p:nth-child(2) { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
