/* ==========================================================================
   AFTER NOW — Thème blog
   Reprise de la charte du site www.afternow.com
   - Police texte : Poppins 400 / 700
   - Titres : Helvetica Neue (pile système), interlettrage -0.02em
   - Palette : noir #000, blanc #fff, blanc cassé #fafafa
   - Grille : 1500 px max, gouttières 4vw (6vw mobile)
   - Animations : fondu "ease" au défilement
   ========================================================================== */

:root {
	--an-black: #000;
	--an-white: #fff;
	--an-offwhite: #fafafa;
	--an-grey: #6b6b6b;
	--an-line: rgba(0, 0, 0, 0.12);

	--an-font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--an-font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;

	--an-max: 1500px;
	--an-gutter: 4vw;
	--an-content: 760px;

	--an-text: 1.2409rem;   /* 19.85px — taille des paragraphes du site */
	--an-small: 0.9rem;
	--an-ease: cubic-bezier(0.25, 0.1, 0.25, 1); /* "ease" */
	--an-duration: 0.8s;
}

@media (max-width: 767px) {
	:root {
		--an-gutter: 6vw;
		--an-text: 1.0625rem;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--an-white);
	color: var(--an-black);
	font-family: var(--an-font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body.menu-open { overflow: hidden; }

.site-main { flex: 1 0 auto; }

img, video, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

a {
	color: inherit;
	text-decoration: none;
}

strong, b { font-weight: 700; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--an-font-heading);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0 0 0.6em;
}

::selection { background: var(--an-black); color: var(--an-white); }

:focus-visible {
	outline: 2px solid var(--an-black);
	outline-offset: 3px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 1000;
	top: 8px;
	left: 8px;
	padding: 10px 16px;
	background: var(--an-black);
	color: var(--an-white);
}

.container {
	width: 100%;
	max-width: calc(var(--an-max) + 2 * var(--an-gutter));
	margin-inline: auto;
	padding-inline: var(--an-gutter);
}

/* ---------- Soulignement animé (liens de navigation) ---------- */
.main-navigation a,
.category-filter a,
.footer-menu a,
.read-more,
.share-links a,
.entry-cat {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 calc(100% - 0.1em);
	background-size: 0 1px;
	transition: background-size 0.35s var(--an-ease);
	padding-bottom: 0.15em;
}

.main-navigation a:hover,
.category-filter a:hover,
.footer-menu a:hover,
.read-more:hover,
.share-links a:hover,
.entry-cat:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a,
.category-filter a[aria-current="page"] {
	background-size: 100% 1px;
}

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
	position: relative;
	z-index: 100;
	background: var(--an-white);
}

.site-header__inner {
	max-width: calc(var(--an-max) + 2 * var(--an-gutter));
	margin-inline: auto;
	padding: 18px var(--an-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.site-branding { flex: 0 1 auto; min-width: 0; }

.site-logo,
.custom-logo-link {
	display: block;
	line-height: 0;
	color: var(--an-black);
}

.site-logo svg {
	display: block;
	height: 70px;
	width: auto;
	max-width: 100%;
}

.custom-logo-link img {
	height: 70px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.main-navigation { flex: 0 1 auto; }

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation > ul,
.main-navigation .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	column-gap: 15px;
	row-gap: 3px;
}

.main-navigation li { position: relative; }

.main-navigation a {
	font-size: 1rem;
	line-height: 24px;
	white-space: nowrap;
}

/* Sous-menus */
.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 180px;
	padding: 12px 16px;
	background: var(--an-white);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.25s var(--an-ease), transform 0.25s var(--an-ease), visibility 0.25s;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.main-navigation .sub-menu li + li { margin-top: 6px; }

/* Bouton burger */
.menu-toggle {
	display: none;
	position: relative;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--an-black);
	flex-shrink: 0;
}

.menu-toggle__bar {
	position: absolute;
	left: 4px;
	right: 4px;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.35s var(--an-ease), top 0.35s var(--an-ease);
}

.menu-toggle__bar:nth-of-type(2) { top: 13px; }
.menu-toggle__bar:nth-of-type(3) { top: 22px; }

.menu-open .menu-toggle__bar:nth-of-type(2) { top: 17.5px; transform: rotate(45deg); }
.menu-open .menu-toggle__bar:nth-of-type(3) { top: 17.5px; transform: rotate(-45deg); }

/* Menu plein écran mobile */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: var(--an-white);
	padding: 120px var(--an-gutter) 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s var(--an-ease), visibility 0.4s;
	overflow-y: auto;
}

.mobile-menu[hidden] { display: flex; }

.menu-open .mobile-menu {
	opacity: 1;
	visibility: visible;
}

.mobile-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-menu__nav li {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.5s var(--an-ease), transform 0.5s var(--an-ease);
}

.menu-open .mobile-menu__nav li { opacity: 1; transform: none; }
.menu-open .mobile-menu__nav li:nth-child(2) { transition-delay: 0.04s; }
.menu-open .mobile-menu__nav li:nth-child(3) { transition-delay: 0.08s; }
.menu-open .mobile-menu__nav li:nth-child(4) { transition-delay: 0.12s; }
.menu-open .mobile-menu__nav li:nth-child(5) { transition-delay: 0.16s; }
.menu-open .mobile-menu__nav li:nth-child(6) { transition-delay: 0.2s; }
.menu-open .mobile-menu__nav li:nth-child(7) { transition-delay: 0.24s; }
.menu-open .mobile-menu__nav li:nth-child(8) { transition-delay: 0.28s; }

.mobile-menu__nav a {
	display: inline-block;
	font-size: 2rem;
	line-height: 1.5;
}

.mobile-menu__nav .sub-menu a { font-size: 1.25rem; }
.mobile-menu__nav .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

@media (max-width: 900px) {
	.main-navigation { display: none; }
	.menu-toggle { display: block; }
	.site-logo svg,
	.custom-logo-link img { height: auto; width: min(320px, 62vw); }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer {
	margin-top: 6rem;
}

.site-footer__inner {
	max-width: calc(var(--an-max) + 2 * var(--an-gutter));
	margin-inline: auto;
	padding: 2rem var(--an-gutter) 2.5rem;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
	padding-bottom: 3rem;
	font-size: var(--an-small);
}

.widget-title {
	font-size: 1.1rem;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
}

.social-links {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-links a {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	transition: opacity 0.25s var(--an-ease);
}

.social-links a:hover { opacity: 0.55; }
.social-links svg { width: 19px; height: 19px; }

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 15px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--an-small);
}

.site-info {
	margin: 0 0 0 auto;
	font-size: 0.8rem;
	color: var(--an-grey);
}

@media (max-width: 600px) {
	.site-info { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   Blog — en-tête de page
   ========================================================================== */
.page-header {
	padding-top: clamp(2.5rem, 6vw, 5rem);
	padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.page-title {
	font-size: clamp(2.4rem, 6vw, 4.8rem);
	margin-bottom: 0.35em;
}

.page-intro {
	max-width: 46rem;
	font-size: var(--an-text);
	line-height: 1.5;
}

.page-intro p { margin: 0 0 0.8em; }

.category-filter ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
}

/* ---------- Méta ---------- */
.entry-meta,
.entry-header__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.5em;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
}

.meta-sep { opacity: 0.6; }
.entry-date, .reading-time { color: var(--an-grey); }

/* ==========================================================================
   Cartes d'articles
   ========================================================================== */
.post-card__media {
	display: block;
	overflow: hidden;
	background: var(--an-offwhite);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--an-ease), opacity 0.4s var(--an-ease);
}

.post-card:hover .post-card__media img { transform: scale(1.035); }

.post-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	color: rgba(0, 0, 0, 0.18);
}

.post-card__placeholder svg { width: 22%; height: auto; }

.post-card__title {
	font-size: clamp(1.6rem, 2.8vw, 2.6rem);
	margin: 0.45em 0 0.5em;
}

.post-card__title a { transition: opacity 0.25s var(--an-ease); }
.post-card__title a:hover { opacity: 0.6; }

.post-card__excerpt {
	font-size: 1rem;
	line-height: 1.6;
}

.post-card__excerpt p { margin: 0 0 1em; }

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-size: 0.95rem;
}

.read-more svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s var(--an-ease);
}

.read-more:hover svg { transform: translateX(4px); }

/* --- Disposition alternée côte à côte (réglage Squarespace du site) --- */
.blog-layout-alternating .post-list {
	display: flex;
	flex-direction: column;
	gap: clamp(3rem, 7vw, 7rem);
}

.blog-layout-alternating .post-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(1.5rem, 5vw, 5.5rem);
}

.blog-layout-alternating .post-card__media { aspect-ratio: 1 / 1; }

.blog-layout-alternating .post-card:nth-child(even) .post-card__media { order: 2; }

.blog-layout-alternating .post-card__body { max-width: 34rem; }

@media (max-width: 767px) {
	.blog-layout-alternating .post-card { grid-template-columns: 1fr; }
	.blog-layout-alternating .post-card:nth-child(even) .post-card__media { order: 0; }
}

/* --- Grille de cartes (style « Next Door ») --- */
.blog-layout-grid .site-main { background: var(--an-offwhite); }
.blog-layout-grid.single .site-main,
.blog-layout-grid.page .site-main { background: transparent; }
.blog-layout-grid .site-footer { margin-top: 0; padding-top: 4rem; background: var(--an-offwhite); }

.blog-layout-grid .post-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.blog-layout-grid .post-card {
	background: var(--an-white);
	padding: 22.8px;
	text-align: center;
	display: flex;
	flex-direction: column;
}

.blog-layout-grid .post-card__media { aspect-ratio: 3 / 2; }

.blog-layout-grid .post-card__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	padding: 1.2rem 0.4rem 0.4rem;
}

.blog-layout-grid .entry-meta { justify-content: center; }

.blog-layout-grid .post-card__title {
	font-size: 1.12rem;
	text-transform: uppercase;
	line-height: 1.11;
	margin: 0.9em 0 0.8em;
}

.blog-layout-grid .post-card__excerpt {
	font-size: 0.9rem;
	line-height: 1.5;
}

.blog-layout-grid .read-more { margin-top: auto; font-size: 0.8rem; }

@media (max-width: 1000px) {
	.blog-layout-grid .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.blog-layout-grid .post-list { grid-template-columns: 1fr; }
}

/* ---------- Pagination ---------- */
.pagination { margin-top: clamp(3rem, 6vw, 5rem); }

.pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border-radius: 300px;
	transition: background-color 0.25s var(--an-ease), color 0.25s var(--an-ease);
}

.pagination .page-numbers svg { width: 20px; height: 20px; }

.pagination a.page-numbers:hover { background: var(--an-offwhite); }

.pagination .page-numbers.current {
	background: var(--an-black);
	color: var(--an-offwhite);
}

/* ==========================================================================
   Article seul
   ========================================================================== */
.single-post .entry-header,
.single-page .entry-header {
	padding-top: clamp(2.5rem, 6vw, 5.5rem);
	padding-bottom: clamp(1.8rem, 4vw, 3rem);
	text-align: center;
}

.single-post .entry-header__meta { justify-content: center; margin-bottom: 1.4rem; }

.entry-title {
	font-size: clamp(2.2rem, 5.6vw, 5rem);
	max-width: 18ch;
	margin: 0 auto;
}

.entry-lead {
	max-width: 40rem;
	margin: 1.6rem auto 0;
	font-size: var(--an-text);
	line-height: 1.5;
	color: #222;
}

.entry-hero { margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); }
.entry-hero img { width: 100%; max-height: 82vh; object-fit: cover; }
.entry-hero figcaption,
.entry-content figcaption,
.wp-element-caption {
	margin-top: 0.7rem;
	font-size: 0.8rem;
	color: var(--an-grey);
	text-align: center;
}

/* ---------- Contenu éditorial (Gutenberg) ---------- */
.entry-content {
	width: 100%;
	max-width: calc(var(--an-content) + 2 * var(--an-gutter));
	margin-inline: auto;
	padding-inline: var(--an-gutter);
	font-size: var(--an-text);
	line-height: 1.5;
}

.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }

.entry-content > .alignwide {
	max-width: min(1200px, calc(100vw - 2 * var(--an-gutter)));
	margin-left: 50%;
	transform: translateX(-50%);
	width: min(1200px, calc(100vw - 2 * var(--an-gutter)));
}

.entry-content > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.entry-content h2 { font-size: 1.9em; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.45em; margin-top: 1.6em; }
.entry-content h4 { font-size: 1.15em; margin-top: 1.4em; }

.entry-content a:not(.wp-block-button__link) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: opacity 0.25s var(--an-ease);
}

.entry-content a:not(.wp-block-button__link):hover { opacity: 0.6; }

.entry-content ul,
.entry-content ol { padding-left: 1.2em; }
.entry-content li + li { margin-top: 0.3em; }

.entry-content blockquote,
.wp-block-quote {
	margin: 2em 0;
	padding: 0 0 0 1.2em;
	border-left: 2px solid var(--an-black);
	font-family: var(--an-font-heading);
	font-size: 1.35em;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.wp-block-quote cite,
.wp-block-pullquote cite {
	display: block;
	margin-top: 0.8em;
	font-family: var(--an-font-body);
	font-size: 0.6em;
	font-style: normal;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wp-block-pullquote {
	border-top: 2px solid var(--an-black);
	border-bottom: 2px solid var(--an-black);
	padding: 2em 0;
	text-align: center;
}

.wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; font-size: 1.6em; }

.entry-content img { margin-inline: auto; }

.entry-content hr,
.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--an-black);
	margin: 3em auto;
	max-width: 100px;
}

.wp-block-separator.is-style-wide { max-width: none; }

.entry-content code,
.entry-content pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.8em;
	background: var(--an-offwhite);
}

.entry-content code { padding: 0.15em 0.35em; }
.entry-content pre { padding: 1.2em; overflow-x: auto; }

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85em;
}

.entry-content th,
.entry-content td {
	padding: 0.7em 0.5em;
	border-bottom: 1px solid var(--an-line);
	text-align: left;
}

.entry-content th { font-weight: 700; border-bottom-color: var(--an-black); }

.wp-block-image,
.wp-block-gallery,
.wp-block-embed,
.wp-block-video { margin-top: 2em !important; margin-bottom: 2em !important; }

.wp-block-embed iframe { width: 100%; }

/* Titre en majuscules espacées (comme les vignettes « LOUNGE / GRAND STUDIO ») */
.is-style-afternow-label,
.has-afternow-label-style {
	font-family: var(--an-font-body) !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.12em !important;
}

/* ---------- Pied d'article ---------- */
.entry-footer {
	max-width: calc(var(--an-content) + 2 * var(--an-gutter));
	margin: 3rem auto 0;
	padding: 0 var(--an-gutter);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.tag-list a {
	display: inline-block;
	padding: 0.35em 1em;
	border: 1px solid var(--an-black);
	border-radius: 300px;
	font-size: 0.8rem;
	transition: background-color 0.25s var(--an-ease), color 0.25s var(--an-ease);
}

.tag-list a:hover { background: var(--an-black); color: var(--an-offwhite); }

.share-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	padding-top: 1.4rem;
	border-top: 1px solid var(--an-black);
	font-size: 0.9rem;
}

.share-links span { font-weight: 700; margin-right: 0.4rem; }

/* ---------- Navigation entre articles ---------- */
.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-top: clamp(4rem, 8vw, 7rem);
	padding-top: 2rem;
	padding-bottom: 0;
}

.post-navigation__item a {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.post-navigation__item--next { text-align: right; }
.post-navigation__item--next a { align-items: flex-end; }

.post-navigation__label {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-size: 0.85rem;
}

.post-navigation__label svg { width: 18px; height: 18px; }

.post-navigation__title {
	font-family: var(--an-font-heading);
	font-size: clamp(1.2rem, 2.2vw, 1.9rem);
	letter-spacing: -0.02em;
	line-height: 1.15;
	transition: opacity 0.25s var(--an-ease);
}

.post-navigation a:hover .post-navigation__title { opacity: 0.6; }

@media (max-width: 640px) {
	.post-navigation { grid-template-columns: 1fr; }
	.post-navigation__item--next { text-align: left; }
	.post-navigation__item--next a { align-items: flex-start; }
}

/* ==========================================================================
   Formulaires (réglages du site : contour bas, angles droits, zoom au focus)
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid var(--an-black);
	border-radius: 0;
	background: transparent;
	color: var(--an-black);
	font: inherit;
	font-size: 1rem;
	transition: transform 0.2s var(--an-ease);
	transform-origin: left center;
	-webkit-appearance: none;
	appearance: none;
}

input:hover,
textarea:hover,
input:focus,
textarea:focus { transform: scale(1.015); }

input:focus,
textarea:focus,
select:focus { outline: none; border-bottom-width: 2px; }

label { font-size: 0.9rem; }

.button,
button[type="submit"]:not(.search-submit),
input[type="submit"],
.wp-block-button__link,
.wp-element-button {
	display: inline-block;
	padding: 1em 2.2em;
	border: 0;
	border-radius: 300px;
	background: var(--an-black);
	color: var(--an-offwhite) !important;
	font-family: var(--an-font-body);
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: opacity 0.25s var(--an-ease), transform 0.25s var(--an-ease);
}

.button:hover,
button[type="submit"]:not(.search-submit):hover,
input[type="submit"]:hover,
.wp-block-button__link:hover { opacity: 0.8; }

.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--an-black) !important;
	border: 1px solid var(--an-black);
}

.search-form {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 520px;
	margin-top: 1.4rem;
}

.search-form .search-field { padding-right: 40px; }

.search-submit {
	position: absolute;
	right: 0;
	width: 36px;
	height: 36px;
	padding: 6px;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--an-black);
}

/* ---------- Commentaires ---------- */
.comments-area {
	max-width: calc(var(--an-content) + 2 * var(--an-gutter));
	margin: clamp(4rem, 7vw, 6rem) auto 0;
	padding: 0 var(--an-gutter);
}

.comments-title,
.comment-reply-title { font-size: 1.8rem; }

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children { padding-left: 1.5rem; border-left: 1px solid var(--an-line); }

.comment-body {
	padding: 1.4rem 0;
	border-bottom: 1px solid var(--an-line);
}

.comment-meta {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.85rem;
}

.comment-author { font-weight: 700; }
.comment-meta time { color: var(--an-grey); }
.comment-content { margin-top: 0.4rem; }
.comment-content p { margin: 0 0 0.8em; }
.reply a { font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }

.comment-form p { margin: 0 0 1.4rem; }
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form-cookies-consent input { margin-top: 0.3em; }

/* ---------- 404 / aucun résultat ---------- */
.error-404 { padding-top: clamp(3rem, 8vw, 7rem); max-width: 900px; }

.error-404__code {
	font-family: var(--an-font-heading);
	font-size: clamp(6rem, 20vw, 14rem);
	letter-spacing: -0.04em;
	line-height: 0.9;
	margin: 0 0 1rem;
}

.no-results { font-size: var(--an-text); padding-bottom: 3rem; }

/* ==========================================================================
   Animations — fondu au défilement (style « fade / ease » du site)
   ========================================================================== */
.js [data-animate] {
	opacity: 0;
	transition: opacity var(--an-duration) var(--an-ease);
}

.js [data-animate].is-visible { opacity: 1; }

.js [data-animate="header"] {
	opacity: 0;
	transition: opacity 1s var(--an-ease);
}

.js.is-loaded [data-animate="header"] { opacity: 1; }
.js.is-loaded .main-navigation[data-animate="header"] { transition-delay: 0.15s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
	.js [data-animate] { opacity: 1; }
}

/* Couleurs de la palette éditeur */
.has-an-black-color { color: var(--an-black); }
.has-an-white-color { color: var(--an-white); }
.has-an-offwhite-color { color: var(--an-offwhite); }
.has-an-black-background-color { background-color: var(--an-black); }
.has-an-white-background-color { background-color: var(--an-white); }
.has-an-offwhite-background-color { background-color: var(--an-offwhite); }

/* En-tête sur fond blanc cassé en mode grille (comme la page Next Door) */
.blog-layout-grid:not(.single):not(.page) { background: var(--an-offwhite); }
.blog-layout-grid:not(.single):not(.page) .site-header { background: var(--an-offwhite); }

/* ==========================================================================
   v1.1 — Photos des studios, bannière, bandeau sombre, pied de page noir
   ========================================================================== */

/* ---------- Bannière « À la une » ---------- */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(78vh, 760px);
	margin: 0 var(--an-gutter);
	max-width: var(--an-max);
	overflow: hidden;
	background: #1a1410;
	color: var(--an-white);
}

@media (min-width: 1600px) {
	.hero { margin-inline: auto; }
}

.hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.06);
	transition: transform 2.4s var(--an-ease);
}

.js.is-loaded .hero__img,
.no-js .hero__img { transform: scale(1); }

.hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.78) 100%),
		linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 60%);
	pointer-events: none;
}

.hero--plain { min-height: 420px; background: var(--an-black); }

.hero__content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 900px;
	padding: clamp(1.8rem, 4.5vw, 4rem);
}

.hero__kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.6em;
	margin: 0 0 1.2rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero__kicker .meta-sep { opacity: 0.7; }

.hero__title {
	font-size: clamp(2.2rem, 5.4vw, 4.8rem);
	margin: 0 0 0.4em;
	color: var(--an-white);
}

.hero__title a:hover { opacity: 0.85; }

.hero__excerpt {
	max-width: 40rem;
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
}

.hero__excerpt p { margin: 0 0 1.6rem; }

.button--light {
	background: var(--an-white) !important;
	color: var(--an-black) !important;
}

/* ---------- En-tête de liste ---------- */
.page-header__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
}

.page-header__row .search-form { margin: 0 0 0.6rem; width: 320px; max-width: 100%; }

/* ---------- Cartes : fond sombre + libellé en capitales (vignettes du site) ---------- */
.post-card__media {
	position: relative;
	background: #1a1410;
}

.post-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%);
	pointer-events: none;
}

.post-card__cat {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1.3rem;
	z-index: 1;
	text-align: center;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.85rem, 1.4vw, 1.25rem);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.post-card__cat:empty { display: none; }

/* ---------- Article : couverture photo ---------- */
.single-post .entry-header--cover {
	padding: 0 var(--an-gutter);
	max-width: calc(var(--an-max) + 2 * var(--an-gutter));
	margin: 0 auto;
	text-align: left;
}

.entry-cover {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(80vh, 780px);
	overflow: hidden;
	background: #1a1410;
	color: var(--an-white);
}

.entry-cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-cover__content {
	position: relative;
	z-index: 1;
	padding: clamp(1.8rem, 4.5vw, 4rem);
	max-width: 1100px;
}

.entry-header--cover .entry-header__meta { justify-content: flex-start; margin-bottom: 1.2rem; }
.entry-header--cover .entry-date,
.entry-header--cover .reading-time { color: rgba(255, 255, 255, 0.8); }
.entry-header--cover .entry-title { margin: 0; max-width: 20ch; color: var(--an-white); }

.entry-cover__caption {
	margin: 0.7rem 0 0;
	font-size: 0.8rem;
	color: var(--an-grey);
	text-align: right;
}

.single-post .entry-lead {
	max-width: calc(var(--an-content) + 2 * var(--an-gutter));
	margin: clamp(2.5rem, 5vw, 4rem) auto 2rem;
	padding: 0 var(--an-gutter);
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	line-height: 1.45;
	font-family: var(--an-font-heading);
	letter-spacing: -0.01em;
}

.single-post .entry-header--cover + .entry-content { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Bandeau « Les studios » (sombre) ---------- */
.studios-band {
	margin-top: clamp(5rem, 9vw, 8rem);
	padding: clamp(3.5rem, 7vw, 6rem) 0;
	background: #0d0b0a;
	color: var(--an-white);
}

.studios-band__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.studios-band__title {
	font-size: clamp(2rem, 4vw, 3.4rem);
	margin: 0;
}

.studios-band__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-size: 0.95rem;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 1px;
	transition: background-size 0.35s var(--an-ease);
}

.studios-band__link:hover { background-size: 100% 1px; }
.studios-band__link svg { width: 18px; height: 18px; }

.studios-band__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.studio-tile {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #1a1410;
}

.studio-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--an-ease), filter 0.6s var(--an-ease);
}

.studio-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.studio-tile:hover img { transform: scale(1.05); }

.studio-tile__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1.4rem;
	z-index: 1;
	text-align: center;
	font-size: clamp(0.85rem, 1.3vw, 1.2rem);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
	.studios-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ---------- Pied de page noir ---------- */
.site-footer {
	margin-top: 0;
	background: var(--an-black);
	color: var(--an-white);
}

.site-main + .site-footer { margin-top: clamp(5rem, 9vw, 8rem); }

.studios-band + .site-footer { border-top: 1px solid rgba(255, 255, 255, 0.12); }

.site-footer__inner { padding-top: clamp(3rem, 6vw, 5rem); }

.site-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
	margin-bottom: 1.8rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer__logo {
	display: block;
	width: min(560px, 100%);
	color: var(--an-white);
	line-height: 0;
}

.site-footer__logo svg { width: 100%; height: auto; }

.site-footer__tagline {
	margin: 0;
	max-width: 22rem;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.75);
}

.site-footer .site-info { color: rgba(255, 255, 255, 0.6); }
.site-footer .social-links a { color: var(--an-white); }

/* Mode grille : le fond blanc cassé s'arrête avant le bandeau sombre */
.blog-layout-grid .site-footer { padding-top: 0; background: var(--an-black); }

/* Sous la bannière : uniquement recherche (+ filtres), sans répéter le titre */
.page-header:has(.page-header__row--compact) { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-header__row--compact { justify-content: flex-end; }
.page-header:has(.page-header__row--compact) { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; }
.page-header:has(.page-header__row--compact) .category-filter { order: -1; }
.page-header:has(.page-header__row--compact) .category-filter ul { margin-top: 0; }
.page-header__row--compact .search-form { margin-bottom: 0; }
