/*
Theme Name: Atheism Now
Theme URI: https://atheismnow.fr
Author: Orpheus
Description: Thème sur mesure pour Atheism Now : blog bilingue FR/EN (Polylang), menus déroulants par catégories, accueil avec les derniers articles.
Version: 1.4.3
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: atheism-now
*/

/* ==========================================================================
   Polices (hébergées sur le site, rien n'est chargé chez Google)
   ========================================================================== */
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("assets/fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 700; font-display: swap; src: url("assets/fonts/oswald-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif"; font-weight: 200 900; font-style: normal; font-display: swap; src: url("assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif"; font-weight: 200 900; font-style: italic; font-display: swap; src: url("assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); }

/* ==========================================================================
   Charte : modifie les couleurs ici, tout le site suit
   ========================================================================== */
:root {
	--an-black: #000000;      /* en-tête, pied de page (même noir que le logo) */
	--an-ink: #1f1d1b;        /* texte courant */
	--an-muted: #6b6560;      /* dates, infos secondaires */
	--an-red: #d4161c;        /* rouge du logo */
	--an-red-dark: #a50f14;   /* rouge au survol */
	--an-paper: #f5f2ed;      /* fond des pages (blanc cassé) */
	--an-card: #ffffff;       /* fond des cartes d'articles */
	--an-line: #e2dcd3;       /* filets, bordures */

	--an-font-title: "Oswald", "Arial Narrow", Arial, sans-serif;
	--an-font-text: "Source Serif", Georgia, "Times New Roman", serif;

	--an-width: 1180px;
	--an-reading: 720px;
	--an-radius: 4px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--an-paper);
	color: var(--an-ink);
	font-family: var(--an-font-text);
	font-size: 1.125rem;
	line-height: 1.7;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.an-main { flex: 1 0 auto; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--an-red); text-underline-offset: 0.15em; }
a:hover { color: var(--an-red-dark); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--an-font-title);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	margin: 1.6em 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
blockquote {
	margin: 1.5em 0;
	padding: 0.2em 0 0.2em 1.2em;
	border-left: 4px solid var(--an-red);
	font-style: italic;
	color: #3a3633;
}
hr { border: 0; border-top: 1px solid var(--an-line); margin: 2.5em 0; }
code, pre { font-size: 0.9em; }
pre { background: #fff; border: 1px solid var(--an-line); padding: 1em; overflow-x: auto; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: #fff; color: var(--an-black); padding: 0.6em 1em;
}
.an-container { max-width: var(--an-width); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   En-tête (deux dispositions : .an-header--compact et .an-header--center)
   ========================================================================== */
.an-header { background: var(--an-black); color: #fff; border-bottom: 3px solid var(--an-red); position: relative; z-index: 20; }
.an-logo { display: block; line-height: 0; flex: 0 0 auto; }
.an-logo img { width: auto; display: block; }
.an-header__tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* Sélecteur de langue */
.an-lang { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; font-family: var(--an-font-title); }
.an-lang a, .an-lang span {
	display: block; padding: 3px 8px; font-size: 0.85rem; letter-spacing: 0.08em;
	color: #bbb; text-decoration: none; border: 1px solid #333; border-radius: var(--an-radius);
}
.an-lang a:hover { color: #fff; border-color: #777; }
.an-lang .is-current { color: #fff; background: var(--an-red); border-color: var(--an-red); }

/* Icônes (Facebook, recherche) */
.an-icon-link { display: inline-flex; color: #ddd; padding: 6px; border-radius: var(--an-radius); }
.an-icon-link:hover, .an-icon-link:focus { color: #fff; background: #222; }
.an-icon-link svg { width: 21px; height: 21px; fill: currentColor; }

/* Recherche */
.an-search-toggle { background: none; border: 0; cursor: pointer; }
.an-search-panel { display: none; padding: 14px 0; background: #111; }
.an-search-panel.is-open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form .search-field {
	flex: 1; min-width: 0; padding: 0.55em 0.8em; font: inherit; font-size: 1rem;
	border: 1px solid var(--an-line); border-radius: var(--an-radius); background: #fff; color: var(--an-ink);
}
.an-button, .search-form .search-submit, .comment-form .submit, .an-contact button {
	font-family: var(--an-font-title); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
	font-size: 0.95rem; padding: 0.6em 1.2em; border: 0; border-radius: var(--an-radius);
	background: var(--an-red); color: #fff; cursor: pointer; text-decoration: none; display: inline-block;
}
.an-button:hover, .search-form .search-submit:hover, .comment-form .submit:hover, .an-contact button:hover {
	background: var(--an-red-dark); color: #fff;
}

/* --- Disposition compacte : logo, menu et outils sur une seule barre --- */
.an-bar { display: flex; align-items: center; gap: 18px; }
.an-header--compact .an-logo img { height: 60px; margin: 10px 0; }
.an-header--compact .an-nav { flex: 1 1 auto; min-width: 0; }

/* --- Disposition centrée : grand logo au centre, menu centré dessous --- */
.an-header--center .an-header__top { position: relative; display: flex; justify-content: center; padding-top: 22px; padding-bottom: 18px; }
.an-header--center .an-logo img { height: 150px; }

/* Fond « taches rouges » animé : dégradés flous qui dérivent et changent de forme lentement.
   Seules les transformations sont animées (calcul par la carte graphique, très peu coûteux). */
.an-header--bg-glow { background: #241a16; }
.an-header--bg-glow > * { position: relative; z-index: 2; }
.an-header--bg-glow > .an-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* fondu au noir sur les bords, par-dessus les taches */
.an-header--bg-glow::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: radial-gradient(ellipse 70% 120% at 50% 45%, rgba(0, 0, 0, 0.35) 25%, rgba(0, 0, 0, 0.65) 60%, #000 92%);
}
.an-header--compact.an-header--bg-glow::after {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.6) 45%, #000 90%);
}
.an-blobs i {
	position: absolute; display: block; border-radius: 50%;
	background: radial-gradient(circle closest-side, rgba(168, 36, 30, 0.92) 0%, rgba(160, 36, 29, 0.88) 48%, rgba(150, 34, 28, 0) 78%);
	will-change: transform;
	animation: an-drift 28s ease-in-out infinite alternate;
}
.an-blobs i:nth-child(1) { width: 34vw; height: 34vw; left: 4%;  top: -40%; animation-duration: 31s; }
.an-blobs i:nth-child(2) { width: 22vw; height: 22vw; left: 30%; top: 10%;  animation-duration: 23s; animation-delay: -7s; animation-name: an-drift2; }
.an-blobs i:nth-child(3) { width: 28vw; height: 28vw; left: 52%; top: -30%; animation-duration: 37s; animation-delay: -12s; }
.an-blobs i:nth-child(4) { width: 18vw; height: 18vw; left: 70%; top: 25%;  animation-duration: 26s; animation-delay: -3s; animation-name: an-drift3; }
.an-blobs i:nth-child(5) { width: 26vw; height: 26vw; left: 84%; top: -20%; animation-duration: 33s; animation-delay: -18s; animation-name: an-drift2; }
.an-blobs i:nth-child(6) { width: 16vw; height: 16vw; left: 18%; top: 40%;  animation-duration: 21s; animation-delay: -9s; animation-name: an-drift3; }
.an-blobs i:nth-child(7) { width: 20vw; height: 20vw; left: 44%; top: 45%;  animation-duration: 29s; animation-delay: -15s; }
.an-blobs i:nth-child(8) { width: 14vw; height: 14vw; left: 62%; top: -10%; animation-duration: 19s; animation-delay: -5s; animation-name: an-drift3; }
.an-blobs i:nth-child(9) { width: 24vw; height: 24vw; left: -8%; top: 10%;  animation-duration: 35s; animation-delay: -21s; animation-name: an-drift2; }
@keyframes an-drift {
	0%   { transform: translate(0, 0) scale(1, 1); }
	33%  { transform: translate(6vw, 12%) scale(1.25, 0.85); }
	66%  { transform: translate(-4vw, 20%) scale(0.8, 1.15); }
	100% { transform: translate(3vw, -10%) scale(1.1, 1.05); }
}
@keyframes an-drift2 {
	0%   { transform: translate(0, 0) scale(1, 1); }
	50%  { transform: translate(-7vw, 18%) scale(1.35, 0.9); }
	100% { transform: translate(5vw, -12%) scale(0.75, 1.2); }
}
@keyframes an-drift3 {
	0%   { transform: translate(0, 0) scale(0.9, 1.1); }
	40%  { transform: translate(5vw, -15%) scale(1.3, 1); }
	100% { transform: translate(-6vw, 22%) scale(1, 0.8); }
}
/* quelques taches plus sombres ou plus brunes, comme sur une photo floue */
.an-blobs i:nth-child(3n) { background: radial-gradient(circle closest-side, rgba(110, 30, 26, 0.9) 0%, rgba(105, 30, 25, 0.85) 48%, rgba(100, 28, 24, 0) 78%); }
.an-blobs i:nth-child(4n) { background: radial-gradient(circle closest-side, rgba(190, 44, 34, 0.9) 0%, rgba(180, 42, 32, 0.8) 45%, rgba(170, 40, 30, 0) 76%); }
/* respecte le réglage « réduire les animations » de l'appareil */
@media (prefers-reduced-motion: reduce) {
	.an-blobs i { animation: none; }
}
/* sur mobile, des taches plus grandes (sinon trop petites à l'écran) */
@media (max-width: 700px) {
	.an-blobs i { transform-origin: center; }
	.an-blobs i:nth-child(n) { width: 55vw; height: 55vw; }
}
.an-header--bg-glow .an-navbar { background: #0b0b0b; }
.an-header--center .an-header__tools { position: absolute; right: 20px; top: 16px; }
.an-navbar { background: #0b0b0b; border-top: 1px solid #262626; }
.an-header--center .an-menu { justify-content: center; }

/* ==========================================================================
   Menu principal (déroulants sur plusieurs niveaux)
   ========================================================================== */
.an-menu, .an-menu ul { list-style: none; margin: 0; padding: 0; }
.an-menu { display: flex; flex-wrap: wrap; }
.an-menu li { position: relative; }
.an-menu a {
	display: block; padding: 13px 12px; color: #eee; text-decoration: none;
	font-family: var(--an-font-title); font-weight: 700; font-size: 0.92rem;
	letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.3;
}
.an-header--compact .an-menu { flex-wrap: nowrap; justify-content: flex-end; }
.an-header--compact .an-menu > li > a { padding-top: 28px; padding-bottom: 28px; white-space: nowrap; }
.an-menu > li > a:hover, .an-menu > li:focus-within > a,
.an-menu > .current-menu-item > a, .an-menu > .current-menu-ancestor > a,
.an-menu > .current-cat > a, .an-menu > .current-cat-parent > a, .an-menu > .current-cat-ancestor > a {
	color: #fff; background: var(--an-red);
}
.an-menu li.has-sub > a::after { content: " ▾"; font-size: 0.8em; opacity: 0.7; }
.an-menu ul li.has-sub > a::after { content: " ▸"; }
.an-submenu-toggle { display: none; }

/* Sous-menus (ordinateur) */
@media (min-width: 1000px) {
	.an-menu ul {
		position: absolute; left: 0; top: 100%; z-index: 50; min-width: 230px;
		background: #1a1a1a; border-top: 3px solid var(--an-red);
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
	}
	.an-menu ul ul { left: 100%; top: -3px; }
	.an-menu li:hover > ul, .an-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
	.an-menu ul a { text-transform: none; letter-spacing: 0.02em; font-size: 0.98rem; padding: 10px 16px; border-bottom: 1px solid #262626; }
	.an-menu ul a:hover { background: var(--an-red); color: #fff; }
	.an-menu ul li:last-child > a { border-bottom: 0; }
	.an-nav-toggle { display: none; }
}
/* Écrans moyens : on resserre */
@media (min-width: 1000px) and (max-width: 1199px) {
	.an-header--compact .an-menu > li > a { padding-left: 9px; padding-right: 9px; font-size: 0.92rem; }
	.an-header--compact .an-logo img { height: 50px; }
}

/* Menu mobile */
@media (max-width: 999px) {
	.an-bar { flex-wrap: wrap; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
	.an-header--compact .an-logo img { height: 52px; margin: 0; }
	.an-header--compact .an-header__tools { margin-left: auto; }
	.an-header--compact .an-nav { order: 3; flex-basis: 100%; }
	.an-header--compact .an-menu > li > a { padding-top: 11px; padding-bottom: 11px; }
	.an-header--center .an-header__top { flex-direction: column; align-items: center; gap: 12px; padding-top: 16px; }
	.an-header--center .an-logo img { height: 96px; }
	.an-header--center .an-header__tools { position: static; }
	.an-nav-toggle {
		display: flex; align-items: center; gap: 10px; width: 100%;
		background: none; border: 0; border-top: 1px solid #262626; color: #fff; padding: 12px 0; cursor: pointer;
		font-family: var(--an-font-title); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase;
	}
	.an-nav-toggle__bars, .an-nav-toggle__bars::before, .an-nav-toggle__bars::after {
		display: block; width: 22px; height: 2px; background: #fff; position: relative; content: "";
	}
	.an-nav-toggle__bars::before { position: absolute; top: -7px; }
	.an-nav-toggle__bars::after { position: absolute; top: 7px; }
	.an-menu { display: none; flex-direction: column; padding-bottom: 10px; }
	.an-nav.is-open .an-menu { display: flex; }
	.an-header--compact .an-nav.is-open { background: #0b0b0b; margin: 0 -20px; padding: 0 20px; }
	.an-header--center .an-menu { justify-content: flex-start; }
	.an-menu li.has-sub > a::after { content: none; }
	.an-menu a { padding: 11px 48px 11px 4px; border-bottom: 1px solid #262626; }
	.an-menu ul { display: none; padding-left: 16px; }
	.an-menu ul a { text-transform: none; letter-spacing: 0.02em; font-size: 0.98rem; }
	.an-menu li.is-open > ul { display: block; }
	.an-submenu-toggle {
		display: block; position: absolute; right: 0; top: 0; width: 44px; height: 44px;
		background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer;
	}
	.an-menu li.is-open > .an-submenu-toggle { transform: rotate(180deg); }
}

/* Page « Liens utiles » (modèle « Liens utiles ») : chaque élément de liste devient une carte */
.an-links ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.an-links ul li {
	background: #fff; border: 1px solid var(--an-line); border-left: 4px solid var(--an-red);
	border-radius: var(--an-radius); padding: 10px 14px; font-size: 1rem; line-height: 1.5;
}
.an-links ul li a { font-weight: 700; text-decoration: none; }
.an-links ul li a:hover { text-decoration: underline; }

/* ==========================================================================
   Bandeau d'accueil
   ========================================================================== */
.an-intro { background: var(--an-card); border-bottom: 1px solid var(--an-line); margin: -36px 0 36px; }
.an-intro__inner { padding-top: 26px; padding-bottom: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.an-intro p { margin: 0; flex: 1 1 420px; font-size: 1.2rem; }
.an-intro .an-button { flex: 0 0 auto; }

/* ==========================================================================
   Listes d'articles (cartes)
   ========================================================================== */
.an-main { padding: 36px 0 60px; }
.an-section-title {
	font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--an-muted);
	margin: 0 0 22px; display: flex; align-items: center; gap: 14px;
}
.an-section-title::after { content: ""; flex: 1; height: 1px; background: var(--an-line); }
.an-archive-header { margin-bottom: 30px; }
.an-archive-header h1 { margin: 0 0 6px; }
.an-archive-header h1 span { color: var(--an-red); }
.an-archive-desc { color: var(--an-muted); max-width: var(--an-reading); }
.an-archive-desc p { margin: 0.3em 0; }
.an-subcats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.an-subcats a {
	display: block; padding: 4px 12px; border: 1px solid var(--an-line); border-radius: 99px;
	background: #fff; color: var(--an-ink); text-decoration: none; font-size: 0.95rem;
}
.an-subcats a:hover { border-color: var(--an-red); color: var(--an-red); }

.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.an-card {
	background: var(--an-card); border: 1px solid var(--an-line); border-radius: var(--an-radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: box-shadow 0.15s, transform 0.15s;
}
.an-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.an-card__image { display: block; aspect-ratio: 16 / 9; background: var(--an-black); overflow: hidden; }
.an-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-card__image--empty { display: flex; align-items: center; justify-content: center; }
.an-card__image--empty svg { width: 64px; height: 64px; opacity: 0.85; }
.an-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.an-card__title { font-size: 1.4rem; margin: 6px 0 10px; }
.an-card__title a { color: var(--an-ink); text-decoration: none; }
.an-card__title a:hover { color: var(--an-red); }
.an-card__excerpt { font-size: 1rem; line-height: 1.6; color: #3a3633; flex: 1; }
.an-card__excerpt p { margin: 0; }
.an-card__more { margin-top: 14px; font-family: var(--an-font-title); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; text-decoration: none; }

/* La carte la plus récente de l'accueil prend toute la largeur */
@media (min-width: 900px) {
	.an-grid--home .an-card:first-child { grid-column: 1 / -1; flex-direction: row; }
	.an-grid--home .an-card:first-child .an-card__image { flex: 0 0 58%; aspect-ratio: auto; min-height: 340px; }
	.an-grid--home .an-card:first-child .an-card__body { padding: 30px 34px; justify-content: center; }
	.an-grid--home .an-card:first-child .an-card__title { font-size: 2.1rem; }
	.an-grid--home .an-card:first-child .an-card__excerpt { font-size: 1.1rem; flex: 0; }
}

.an-meta { font-size: 0.85rem; color: var(--an-muted); font-family: var(--an-font-title); letter-spacing: 0.05em; text-transform: uppercase; }
.an-meta a { color: var(--an-red); text-decoration: none; }
.an-meta a:hover { text-decoration: underline; }
.an-cats a + a::before { content: " · "; color: var(--an-muted); }

/* Pagination */
.navigation.pagination { margin-top: 44px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers {
	display: inline-block; min-width: 42px; padding: 8px 12px; text-align: center; text-decoration: none;
	background: #fff; border: 1px solid var(--an-line); border-radius: var(--an-radius); color: var(--an-ink);
	font-family: var(--an-font-title);
}
.page-numbers.current, a.page-numbers:hover { background: var(--an-red); border-color: var(--an-red); color: #fff; }

/* ==========================================================================
   Article seul et pages
   ========================================================================== */
.an-article { max-width: var(--an-reading); margin: 0 auto; }
.an-article__header { margin-bottom: 26px; }
.an-article__header h1 { margin: 10px 0 12px; }
.an-article__cover { max-width: 1000px; margin: 0 auto 34px; }
.an-article__cover img { width: 100%; display: block; border-radius: var(--an-radius); }
.an-content > *:first-child { margin-top: 0; }
.an-content img { border-radius: var(--an-radius); }
.an-content figcaption { font-size: 0.9rem; color: var(--an-muted); text-align: center; }
.an-content .alignwide { max-width: 1000px; margin-left: 50%; transform: translateX(-50%); width: 100vw; }
.an-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.an-content .alignleft { float: left; margin: 0.4em 1.4em 1em 0; }
.an-content .alignright { float: right; margin: 0.4em 0 1em 1.4em; }
.an-content .aligncenter { margin-left: auto; margin-right: auto; }
.an-content table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.an-content th, .an-content td { border: 1px solid var(--an-line); padding: 0.5em 0.7em; }

.an-article__footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--an-line); }
.an-tags a {
	display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; font-size: 0.85rem; text-decoration: none;
	border: 1px solid var(--an-line); border-radius: 99px; color: var(--an-ink); background: #fff;
}
.an-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.an-postnav a { display: block; text-decoration: none; color: var(--an-ink); font-weight: 600; }
.an-postnav small { display: block; font-family: var(--an-font-title); text-transform: uppercase; letter-spacing: 0.08em; color: var(--an-muted); font-weight: 400; }
.an-postnav__next { text-align: right; }

/* Bandeau "traduction automatique" ajouté par le plugin Atheism Now Outils */
.an-mt-notice {
	font-size: 0.9rem; font-style: italic; color: var(--an-muted);
	border: 1px dashed var(--an-line); background: #fff; padding: 0.6em 0.9em; border-radius: var(--an-radius);
	margin: 0 0 1.6em;
}

/* ==========================================================================
   Commentaires
   ========================================================================== */
.an-comments { max-width: var(--an-reading); margin: 50px auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; border-left: 2px solid var(--an-line); }
.comment-body { background: #fff; border: 1px solid var(--an-line); border-radius: var(--an-radius); padding: 16px 18px; margin-bottom: 16px; }
.comment-meta { font-size: 0.9rem; color: var(--an-muted); }
.comment-meta a { color: var(--an-muted); text-decoration: none; }
.comment-author .avatar { float: left; margin-right: 10px; border-radius: 50%; }
.comment-author .fn { font-style: normal; font-weight: 700; color: var(--an-ink); }
.comment-content { clear: both; }
.reply a { font-family: var(--an-font-title); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.06em; text-decoration: none; }
.comment-form label { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.an-contact input, .an-contact textarea {
	width: 100%; padding: 0.6em 0.8em; font: inherit; font-size: 1rem; background: #fff; color: var(--an-ink);
	border: 1px solid var(--an-line); border-radius: var(--an-radius);
}
.comment-form input:focus, .comment-form textarea:focus, .an-contact input:focus, .an-contact textarea:focus,
.search-form .search-field:focus { outline: 2px solid var(--an-red); outline-offset: 0; border-color: var(--an-red); }
.comment-form .comment-form-cookies-consent label { display: inline; }

/* Formulaire de contact (plugin) */
.an-contact p { margin: 0 0 1em; }
.an-contact label { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.an-contact-msg { padding: 0.8em 1em; border-radius: var(--an-radius); margin-bottom: 1.2em; }
.an-contact-msg--ok { background: #e9f5ea; border: 1px solid #9ccc9f; }
.an-contact-msg--err { background: #fbeaea; border: 1px solid #e3a1a1; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.an-footer { background: var(--an-black); color: #aaa; font-size: 0.95rem; padding: 34px 0; border-top: 3px solid var(--an-red); }
.an-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.an-footer a { color: #ddd; text-decoration: none; }
.an-footer a:hover { color: #fff; text-decoration: underline; }
.an-footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.an-footer__brand { font-family: var(--an-font-title); text-transform: uppercase; letter-spacing: 0.08em; color: #fff; }
.an-footer__brand span { color: var(--an-red); }

/* Sous-pages d'une page (rubrique À propos…) */
.an-subpages { max-width: 1000px; margin: 40px auto 0; }
.an-subpages .an-card__title { font-size: 1.3rem; }

/* Slogan sous le grand logo */
.an-brand { display: flex; flex-direction: column; align-items: center; }
.an-tagline {
	margin: 10px 0 0; color: #e8e2da; font-family: var(--an-font-text); font-style: italic;
	font-size: 1.05rem; letter-spacing: 0.02em; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
@media (max-width: 999px) { .an-tagline { font-size: 0.95rem; margin-top: 6px; } }

/* Lien Accueil : icône sur ordinateur, libellé sur mobile */
.an-menu .an-home svg { width: 1.3em; height: 1.3em; fill: currentColor; display: block; }
.an-menu .an-home a { display: flex; align-items: center; }
.an-menu .an-home__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
@media (max-width: 999px) {
	.an-menu .an-home svg { display: none; }
	.an-menu .an-home__label { position: static; width: auto; height: auto; clip: auto; }
}

/* Vidéos : miniature et pastille lecture */
.an-card__image { position: relative; }
.an-card__image--video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.an-play {
	position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
	border-radius: 50%; background: rgba(212, 22, 28, 0.92); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
	display: flex; align-items: center; justify-content: center; transition: transform 0.15s;
}
.an-play svg { width: 30px; height: 30px; fill: #fff; margin-left: 3px; }
.an-card:hover .an-play { transform: scale(1.08); }

/* Bouton S'abonner (en-tête) */
.an-subscribe {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px;
	font-family: var(--an-font-title); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
	color: #fff; text-decoration: none; border: 1px solid var(--an-red); border-radius: var(--an-radius);
	background: rgba(212, 22, 28, 0.15);
}
.an-subscribe:hover, .an-subscribe:focus { background: var(--an-red); color: #fff; }
.an-subscribe svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 600px) { .an-subscribe span { display: none; } .an-subscribe { padding: 5px 6px; } }

/* Article épinglé */
.an-pinned {
	display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; margin-bottom: 6px;
	padding: 2px 8px; border-radius: 99px; background: var(--an-red); color: #fff;
	font-family: var(--an-font-title); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.an-pinned svg { width: 12px; height: 12px; fill: currentColor; }

/* 404 / vide */
.an-empty { text-align: center; max-width: 560px; margin: 30px auto; }
.an-empty .search-form { margin-top: 20px; }
