/* ==========================================================================
   Kiyu Studio : styles communs
   1. Jetons          5. En-tête & menus      9. Article
   2. Base            6. Pages & fil d'Ariane 10. 404 & recherche
   3. Mise en page    7. Blog & cartes        11. Pied de page
   4. Boutons         8. Pagination           12. Extensions, utilitaires, animations
   ========================================================================== */

/* 1. Jetons ----------------------------------------------------------------- */
:root {
	--orange: #e6823e;
	--orange-text: #c2601c;
	--peach: #fee1ce;
	--peach-soft: #fff0e5;
	--cream: #fff8f1;
	--ink: #1a1512;
	--ink-2: #26201c;
	--ink-3: #3c3733;
	--muted: #6b5f57;
	--muted-dark: #b9ada4;
	--teal: #56a0a6;
	--cyan: #b0ebf0;
	--white: #fff;
	--line: rgb(26 21 18 / .12);
	--line-strong: rgb(26 21 18 / .22);
	--line-dark: rgb(255 248 241 / .14);

	--font-display: "Jost", ui-sans-serif, system-ui, sans-serif;
	--font-text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--fs-display: clamp(2.75rem, 1.4rem + 5.4vw, 6rem);
	--fs-h1: clamp(2.5rem, 1.5rem + 4.2vw, 5.5rem);
	--fs-h2: clamp(2.125rem, 1.4rem + 2.8vw, 3.75rem);
	--fs-lead: clamp(1.125rem, 1rem + .45vw, 1.375rem);

	--r-sm: 14px;
	--r: 24px;
	--r-lg: 32px;
	--shadow: 0 1px 2px rgb(26 21 18 / .05), 0 18px 40px -18px rgb(26 21 18 / .25);
	--ease: cubic-bezier(.22, .8, .24, 1);

	--gutter: clamp(16px, 4vw, 40px);
	--container: 1280px;
	--header-h: 84px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font-text);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: inherit;
}

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--orange); color: var(--ink); }

/* 3. Mise en page ---------------------------------------------------------------- */
.main { display: block; outline: none; overflow-x: clip; }

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

.container--wide { max-width: calc(1200px + 2 * var(--gutter)); }
.container--mid { max-width: calc(900px + 2 * var(--gutter)); }
.container--narrow { max-width: calc(720px + 2 * var(--gutter)); }

.section { padding-block: clamp(72px, 9vw, 128px); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--cream); }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }

.section__head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
	max-width: none;
}

.section__head--split > div { max-width: 760px; }

.section__title {
	margin: 0;
	font-size: var(--fs-h2);
	line-height: 1.04;
	letter-spacing: -.03em;
	text-wrap: balance;
}

/* *Mots en italique* des titres (Personnaliser) : italique orange. */
h1 em, h2 em, h3 em {
	font-style: italic;
	font-weight: 400;
	color: var(--orange-text);
}

.section--dark :is(h1, h2, h3) em,
.offer--featured h3 em,
.contact__visio h2 em { color: var(--orange); }

.cta-band h2 em { color: var(--ink); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--orange);
	border-radius: 2px;
}

.eyebrow--light { color: var(--muted-dark); }

.eyebrow--dot::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgb(230 130 62 / .22);
}

/* 4. Boutons ---------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	min-height: 54px;
	padding: 7px 7px 7px 24px;
	font-family: var(--font-text);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}

.btn__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	transition: transform .35s var(--ease), background-color .25s, color .25s;
}

.btn:hover .btn__icon { transform: rotate(-45deg); }
.btn:hover .icon--arrow-up-right { transform: rotate(45deg); }
.btn .icon { transition: transform .35s var(--ease); }

.btn--primary { color: var(--ink); background: var(--orange); }
.btn--primary .btn__icon { color: var(--orange); background: var(--ink); }
.btn--primary:hover { color: var(--white); background: var(--ink); }
.btn--primary:hover .btn__icon { color: var(--ink); background: var(--orange); }

.btn--dark { color: var(--white); background: var(--ink); }
.btn--dark .btn__icon { color: var(--ink); background: var(--orange); }
.btn--dark:hover { color: var(--ink); background: var(--white); }
.btn--dark:hover .btn__icon { color: var(--orange); background: var(--ink); }

.btn--ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost .btn__icon { background: rgb(26 21 18 / .07); }
.btn--ghost:hover { color: var(--white); background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover .btn__icon { color: var(--ink); background: var(--orange); }

.section--dark .btn--ghost { color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.section--dark .btn--ghost .btn__icon { background: rgb(255 255 255 / .08); }

.btn--light { color: var(--ink); background: var(--white); }
.btn--light .btn__icon { color: var(--white); background: var(--ink); }

/* 5. En-tête & menus ----------------------------------------------------------------- */
.header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.kiyu-design .header { background: var(--cream); }

.header.is-scrolled {
	background: rgb(255 255 255 / .82);
	box-shadow: 0 1px 0 var(--line);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
}

.kiyu-design .header.is-scrolled { background: rgb(255 248 241 / .82); }

/* Mobile et tablette : en-tête opaque au défilement (pas d'effet verre dépoli). */
@media (max-width: 1099px) {
	.header.is-scrolled { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
	.kiyu-design .header.is-scrolled { background: var(--cream); }
}

.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

.header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--header-h);
	transition: height .3s var(--ease);
}

.header.is-scrolled .header__inner { height: 70px; }

.logo { display: inline-flex; flex: none; }
.logo__img { display: block; width: auto; height: 32px; }

.nav { margin-inline: auto; }

.nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__item { position: relative; }

.nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	font-size: .96875rem;
	font-weight: 500;
	color: var(--ink);
	text-decoration: none;
	background: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .2s;
}

.nav__link:hover,
.nav__trigger[aria-expanded="true"] { background: rgb(26 21 18 / .06); }

.nav__item.is-active > .nav__link { background: var(--peach); }

.nav__trigger .icon { transition: transform .25s var(--ease); }
.nav__trigger[aria-expanded="true"] .icon,
.nav__item.has-sub:hover .nav__trigger .icon { transform: rotate(180deg); }

.nav__sub {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	z-index: 10;
	min-width: 400px;
	padding: 10px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--r);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .25s;
}

/* Pont invisible : la souris peut rejoindre le sous-menu sans qu'il se ferme. */
.nav__sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }

.nav__item.has-sub:hover .nav__sub,
.nav__item.has-sub:focus-within .nav__sub,
.nav__trigger[aria-expanded="true"] + .nav__sub {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.nav__sublist { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }

.nav__sublink {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	text-decoration: none;
	border-radius: 16px;
	transition: background-color .2s;
}

.nav__sublink:hover,
.nav__sublink[aria-current] { background: var(--cream); }

.nav__subicon {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--ink);
	background: var(--peach);
	border-radius: 14px;
	transition: background-color .2s;
}

.nav__sublink:hover .nav__subicon { background: var(--orange); }

.nav__sublink strong { display: block; font-size: .96875rem; font-weight: 600; }
.nav__sublink small { display: block; margin-top: 2px; font-size: .8125rem; color: var(--muted); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.header__cta { min-height: 46px; padding-left: 20px; gap: 10px; font-size: .9375rem; }
.header__cta .btn__icon { width: 34px; height: 34px; }

.burger {
	display: none;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: var(--white);
	background: var(--ink);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .25s;
}

.burger__box { position: relative; display: block; width: 20px; height: 12px; }

.burger__box span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .3s var(--ease), top .3s var(--ease);
}

.burger__box span:first-child { top: 0; }
.burger__box span:last-child { top: 10px; }

.burger[aria-expanded="true"] { color: var(--ink); background: var(--orange); }
.burger[aria-expanded="true"] .burger__box span:first-child { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1099px) {
	.nav { display: none; }
	.burger { display: grid; }
	.header__actions { margin-left: auto; }
	:root { --header-h: 72px; }
}

@media (max-width: 599px) {
	.header__cta { display: none; }
	.logo__img { height: 26px; }
}

/* Menu plein écran */
.menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	overflow-y: auto;
	overscroll-behavior: contain;
	color: var(--cream);
	background: var(--ink);
	opacity: 0;
	transition: opacity .35s var(--ease);
}

.menu-overlay[hidden] { display: none; }
.menu-open { overflow: hidden; }
.menu-open .menu-overlay { opacity: 1; }

.menu-open .header,
.menu-open .header.is-scrolled { background: var(--ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .header .logo__img { filter: invert(1); }
.menu-open .header__cta { visibility: hidden; }

.menu-overlay__inner {
	display: flex;
	flex-direction: column;
	gap: 40px;
	min-height: 100%;
	padding-top: calc(var(--header-h) + 24px);
	padding-bottom: 40px;
}

.menu-overlay__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.menu-overlay__big,
.menu-overlay__group a {
	display: block;
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -.02em;
	text-decoration: none;
	transition: color .2s, transform .3s var(--ease);
}

.menu-overlay__big { padding: 6px 0; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.1; }
.menu-overlay__big:hover, .menu-overlay__group a:hover { color: var(--orange); transform: translateX(6px); }
.menu-overlay [aria-current] { color: var(--orange); }

.menu-overlay__group { padding: 18px 0 10px; border-top: 1px solid var(--line-dark); }
.menu-overlay__group ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.menu-overlay__group a { font-size: clamp(1.375rem, 5vw, 1.75rem); line-height: 1.25; }

.menu-overlay__label {
	display: block;
	margin-bottom: 8px;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted-dark);
}

.menu-overlay__footer { display: grid; gap: 20px; margin-top: auto; }
.menu-overlay__footer .btn { justify-self: start; }
.menu-overlay__contact { display: grid; gap: 4px; margin: 0; color: var(--muted-dark); }
.menu-overlay__contact a { text-decoration: none; }

/* 6. Pages & fil d'Ariane -------------------------------------------------------- */
.breadcrumbs { font-size: .8125rem; color: var(--muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

.page-crumbs { padding-top: 16px; padding-bottom: 8px; }

.page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.page-hero .breadcrumbs { margin-bottom: 24px; }

.page-hero__title {
	margin: 0;
	font-size: var(--fs-h1);
	line-height: .98;
	letter-spacing: -.035em;
	text-wrap: balance;
}

.page-hero__lead {
	max-width: 56ch;
	margin: 20px 0 0;
	font-size: var(--fs-lead);
	color: var(--muted);
}

/* Pages légales (mentions, CGV) : mise en page « document ». */
.page-hero--document { margin-bottom: clamp(32px, 4vw, 56px); background: var(--cream); }
.page-hero--document .page-hero__title { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); }
.document__updated { margin: 16px 0 0; font-size: .9375rem; color: var(--muted); }
.document__body { padding-bottom: clamp(64px, 8vw, 112px); }
.document__body.entry-content--builder { padding-top: 0; }

.prose { padding-bottom: 72px; font-size: 1.125rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.prose h3 { margin-top: 1.5em; font-size: 1.375rem; }
.prose a { text-decoration-color: var(--orange); }
.prose li::marker { color: var(--orange); }
.prose img { border-radius: var(--r-sm); }
.prose blockquote { margin-inline: 0; padding-left: 20px; font-style: italic; border-left: 3px solid var(--orange); }

/* 7. Blog & cartes -------------------------------------------------------------------- */
.page-hero--blog { background: var(--cream); margin-bottom: clamp(40px, 5vw, 64px); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.filters__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	font-size: .9375rem;
	font-weight: 500;
	text-decoration: none;
	background: var(--white);
	border-radius: 999px;
	box-shadow: inset 0 0 0 1.5px var(--line);
	transition: background-color .2s, color .2s;
}

.filters__item:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.filters__item[aria-current] { color: var(--white); background: var(--ink); box-shadow: none; }

.filters__item span {
	min-width: 22px;
	padding: 0 6px;
	font-size: .75rem;
	line-height: 20px;
	text-align: center;
	background: var(--peach);
	color: var(--ink);
	border-radius: 999px;
}

.listing { padding-bottom: clamp(64px, 8vw, 112px); }

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: clamp(32px, 4vw, 48px) clamp(20px, 2.5vw, 32px);
}

.card { position: relative; display: flex; flex-direction: column; gap: 20px; }

.card__media {
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--peach);
	border-radius: var(--r);
}

.card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--ease);
}

.card:hover .card__media img { transform: scale(1.045); }

.card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; }

.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: .8125rem;
	color: var(--muted);
}

.card__title {
	margin: 0;
	font-size: clamp(1.25rem, 1.1rem + .4vw, 1.5rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.015em;
	text-wrap: balance;
}

.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) .card__media { outline: 2.5px solid var(--orange); outline-offset: 3px; }

.card__excerpt { margin: 0; color: var(--muted); }

.card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: auto 0 0;
	padding-top: 16px;
	font-size: .875rem;
	color: var(--muted);
	border-top: 1px solid var(--line);
}

.card__arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-left: auto;
	color: var(--white);
	background: var(--ink);
	border-radius: 50%;
	transition: background-color .25s, color .25s, transform .35s var(--ease);
}

.card:hover .card__arrow { color: var(--ink); background: var(--orange); transform: rotate(45deg); }

@media (min-width: 900px) {
	.card--featured {
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: 1.25fr 1fr;
		align-items: center;
		gap: clamp(32px, 4vw, 64px);
		padding-bottom: clamp(32px, 4vw, 48px);
		border-bottom: 1px solid var(--line);
	}

	.card--featured .card__title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.08; }
	.card--featured .card__excerpt { font-size: 1.125rem; }
}

.tag {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--ink);
	text-decoration: none;
	background: var(--peach);
	border-radius: 999px;
}

.tag--seo { background: var(--cyan); }
a.tag { position: relative; z-index: 2; }
a.tag:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* 8. Pagination -------------------------------------------------------------------- */
.pagination { margin-top: clamp(48px, 6vw, 72px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 48px;
	height: 48px;
	padding: 0 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1.5px var(--line);
}

.page-numbers.current { color: var(--white); background: var(--ink); box-shadow: none; }
.page-numbers.dots { box-shadow: none; }
a.page-numbers:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* 9. Article ------------------------------------------------------------------------ */
.progress { position: fixed; inset: 0 0 auto; z-index: 101; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; }
.admin-bar .progress { top: 32px; }

.post-hero { padding: clamp(32px, 5vw, 72px) 0 clamp(32px, 4vw, 48px); text-align: center; }
.post-hero .breadcrumbs { margin-bottom: 28px; }

.post-hero__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0 0 20px;
	font-size: .875rem;
	color: var(--muted);
}

.post-hero__title {
	margin: 0 auto;
	max-width: 20ch;
	font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
	line-height: 1.02;
	letter-spacing: -.035em;
	text-wrap: balance;
}

.post-hero__lead { max-width: 60ch; margin: 24px auto 0; font-size: var(--fs-lead); color: var(--muted); }

.post-hero__author {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	text-align: left;
}

.post-hero__author strong { display: block; font-size: .9375rem; }
.post-hero__author time { display: block; font-size: .875rem; color: var(--muted); }

.avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--ink);
	background: var(--orange);
	border-radius: 50%;
}

.avatar--lg { width: 64px; height: 64px; font-size: 1.5rem; }

.post-cover { margin: 0 auto; }

.post-cover img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--r-lg);
}

/* Contenu Elementor des articles : colonne de lecture (le kit impose 1140 px à chaque conteneur). */
.entry-content--builder { padding-top: clamp(32px, 5vw, 64px); }
.entry-content--builder .e-con { --container-max-width: 720px; }
.entry-content--builder .elementor-widget-text-editor { font-size: 1.125rem; line-height: 1.75; }

.post-footer { display: grid; gap: 24px; padding-top: 48px; padding-bottom: clamp(64px, 8vw, 96px); }

.author-box {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 28px;
	background: var(--cream);
	border-radius: var(--r);
}

.author-box p { margin: 0; color: var(--muted); }
.author-box .author-box__name { margin-bottom: 6px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.author-box__name span { display: block; font-family: var(--font-text); font-size: .875rem; font-weight: 500; color: var(--muted); }

.post-cta {
	display: grid;
	justify-items: start;
	gap: 8px;
	padding: clamp(28px, 4vw, 40px);
	background: var(--peach);
	border-radius: var(--r);
}

.post-cta p { margin: 0; }
.post-cta .post-cta__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.post-cta .btn { margin-top: 12px; }

.related .section__head { margin-bottom: 40px; }

/* 10. 404 & recherche ------------------------------------------------------------- */
.error-404 { padding: clamp(56px, 9vw, 120px) 0; text-align: center; background: var(--cream); }

.error-404__code {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(7rem, 26vw, 18rem);
	font-weight: 700;
	line-height: .85;
	letter-spacing: -.06em;
}

.error-404__code span { color: var(--orange); }
.error-404__title { margin: 24px auto 12px; max-width: 18ch; font-size: clamp(1.75rem, 3.5vw, 2.75rem); text-wrap: balance; }
.error-404__text { max-width: 52ch; margin: 0 auto; color: var(--muted); }
.error-404 .search-form { margin: 32px auto; }
.error-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.search-form {
	display: flex;
	max-width: 520px;
	margin-top: 28px;
	padding: 6px;
	background: var(--white);
	border-radius: 999px;
	box-shadow: inset 0 0 0 1.5px var(--line);
	transition: box-shadow .2s;
}

.search-form:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px var(--peach); }

.search-form__field {
	flex: 1;
	min-width: 0;
	padding: 0 18px;
	background: transparent;
	border: 0;
}

.search-form__field:focus { outline: none; }

.search-form__submit {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	color: var(--ink);
	background: var(--orange);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}

.search-form__submit:hover { color: var(--white); background: var(--ink); }

.empty-state { padding: 16px 0 48px; }

/* 11. Pied de page ------------------------------------------------------------------ */
.footer {
	position: relative;
	overflow: hidden;
	color: var(--cream);
	background: var(--ink);
}

.footer__cta {
	display: grid;
	justify-items: start;
	padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 6vw, 80px);
	border-bottom: 1px solid var(--line-dark);
}

.footer__big {
	display: inline-flex;
	align-items: center;
	gap: .25em;
	font-family: var(--font-display);
	font-size: 54px;
	font-weight: 600;
	line-height: .9;
	letter-spacing: -.05em;
	text-decoration: none;
	transition: color .3s var(--ease);
}

.footer__big-icon {
	display: grid;
	place-items: center;
	width: .8em;
	height: .8em;
	color: var(--ink);
	background: var(--orange);
	border-radius: 50%;
	transition: transform .4s var(--ease);
}

.footer__big-icon .icon { width: 42%; height: 42%; }
.footer__big:hover { color: var(--orange); }
.footer__big:hover .footer__big-icon { transform: rotate(45deg); }

.footer__direct { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 32px 0 0; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.footer__direct a { text-decoration: none; border-bottom: 1px solid var(--line-dark); transition: border-color .2s, color .2s; }
.footer__direct a:hover { color: var(--orange); border-color: var(--orange); }

.footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 40px 32px;
	padding: clamp(48px, 6vw, 72px) 0;
}

@media (min-width: 1100px) {
	.footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); }
}

.footer__brand { grid-column: 1 / -1; }
@media (min-width: 1100px) { .footer__brand { grid-column: auto; } }

.footer__brand .logo__img { height: 34px; filter: invert(1); }
.footer__brand p { max-width: 36ch; margin: 20px 0 24px; color: var(--muted-dark); }

.footer__title {
	margin: 0 0 16px;
	font-family: var(--font-text);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted-dark);
}

.footer__col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__col a { text-decoration: none; transition: color .2s; }
.footer__col a:hover { color: var(--orange); }

.footer__info li { display: flex; gap: 10px; color: var(--muted-dark); }
.footer__info svg { flex: none; margin-top: 3px; color: var(--orange); }

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
	/* Espace en bas pour l'onglet flottant des cookies : en fin de page, il ne recouvre pas
	   les liens CGV / mentions / cookies. */
	padding: 24px 0 64px;
	font-size: .875rem;
	color: var(--muted-dark);
	border-top: 1px solid var(--line-dark);
}

.footer__bottom p { margin: 0; margin-right: auto; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--cream); text-decoration: underline; }

/* « Gérer mes cookies » : Complianz stylise cette classe en onglet flottant, on la remet dans le flux. */
.footer .footer__consent {
	position: static !important;
	display: inline !important;
	z-index: auto !important;
	min-width: 0 !important;
	height: auto !important;
	padding: 0 !important;
	font: inherit;
	line-height: inherit !important;
	color: inherit !important;
	text-decoration: underline;
	text-underline-offset: .2em;
	background: none !important;
	border: 0 !important;
	animation: none !important;
	cursor: pointer;
}

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

.social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px var(--line-strong);
	transition: background-color .2s, color .2s, box-shadow .2s;
}

.social--light a { box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.social a:hover { color: var(--ink); background: var(--orange); box-shadow: none; }

.stars { display: inline-flex; gap: 2px; color: var(--orange); }

/* 12. Extensions, utilitaires, animations ------------------------------------------ */

/* WPForms : champs et bouton aux couleurs du site. */
.kiyu .wpforms-container {
	--wpforms-field-border-radius: 14px !important;
	--wpforms-field-border-size: 1.5px !important;
	--wpforms-field-border-color: var(--line-strong) !important;
	--wpforms-field-background-color: var(--white) !important;
	--wpforms-field-text-color: var(--ink) !important;
	--wpforms-label-color: var(--ink) !important;
	--wpforms-label-sublabel-color: var(--muted) !important;
	--wpforms-button-background-color: var(--orange) !important;
	--wpforms-button-text-color: var(--ink) !important;
	--wpforms-button-border-radius: 999px !important;
	--wpforms-button-border-size: 0px !important;
}

.kiyu .wpforms-container input,
.kiyu .wpforms-container textarea,
.kiyu .wpforms-container select,
.kiyu .wpforms-container .wpforms-submit { font-family: var(--font-text) !important; }

.kiyu .wpforms-container input:focus,
.kiyu .wpforms-container textarea:focus {
	border-color: var(--ink) !important;
	box-shadow: 0 0 0 4px var(--peach) !important;
}

.kiyu .wpforms-container .wpforms-submit { padding-inline: 28px !important; font-weight: 600 !important; transition: background-color .25s, color .25s !important; }
.kiyu .wpforms-container .wpforms-submit:hover { color: var(--white) !important; background: var(--ink) !important; }
.kiyu .wpforms-container input[type="radio"] { accent-color: var(--orange); }

/* Visionneuse d'images ------------------------------------------------------ */

/* Miniatures cliquables (blocs de réalisations). */
.zoom {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	color: inherit;
	background: none;
	border: 0;
	border-radius: inherit;
	cursor: zoom-in;
}

.zoom img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.zoom:hover img { transform: scale(1.03); }
.zoom:focus-visible { outline: 2.5px solid var(--orange); outline-offset: -3px; }

.zoom__hint {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: var(--ink);
	background: rgb(255 255 255 / .92);
	border-radius: 50%;
	box-shadow: 0 6px 18px -6px rgb(26 21 18 / .45);
	opacity: 0;
	transform: scale(.85);
	transition: opacity .2s, transform .25s var(--ease), background-color .2s;
}

.zoom:hover .zoom__hint,
.zoom:focus-visible .zoom__hint { opacity: 1; transform: none; background: var(--orange); }

/* Écrans tactiles : pas de survol, l'indice reste visible. */
@media (hover: none) {
	.zoom__hint { width: 34px; height: 34px; opacity: 1; transform: none; }
}

/* Images de liens (ex. visuel d'épisode) : même effet au survol, sans zoom. */
.media__link { display: block; }
.media__link img { transition: transform .6s var(--ease); }
.media__link:hover img { transform: scale(1.03); }

/* Images d'articles agrandissables. */
.zoom-img { cursor: zoom-in; }
.zoom-img:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; }

.lightbox-open { overflow: hidden; }

.lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--cream);
	background: rgb(20 16 13 / .9);
	border: 0;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.lightbox::backdrop { background: transparent; }

.lightbox[open] {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	animation: kiyu-lightbox-in .25s var(--ease);
}

@keyframes kiyu-lightbox-in { from { opacity: 0; } }

.lightbox__stage {
	display: grid;
	place-items: center;
	min-height: 0;
	padding: 76px clamp(16px, 8vw, 104px) 8px;
	overflow: hidden;
	touch-action: pan-y;
}

.lightbox__img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 170px);
	max-height: calc(100dvh - 170px);
	background: var(--white);
	border-radius: 12px;
	box-shadow: 0 30px 80px -20px rgb(0 0 0 / .6);
	user-select: none;
	animation: kiyu-lightbox-img .3s var(--ease);
	transition: opacity .2s;
}

@keyframes kiyu-lightbox-img { from { opacity: 0; transform: scale(.97); } }

.lightbox__img.is-loading { opacity: .85; }
.lightbox.is-zoomable .lightbox__img { cursor: zoom-in; }

/* Zoom à la taille réelle : l'image défile dans la visionneuse. */
.lightbox.is-zoomed .lightbox__stage { place-items: normal; padding-inline: 16px; overflow: auto; touch-action: auto; }
.lightbox.is-zoomed .lightbox__img { max-width: none; max-height: none; margin: auto; cursor: zoom-out; animation: none; }

.lightbox__bar {
	display: grid;
	justify-items: center;
	gap: 2px;
	padding: 12px 88px 24px;
	text-align: center;
}

.lightbox__caption { margin: 0; font-size: .9375rem; font-weight: 500; }
.lightbox__count { margin: 0; font-size: .8125rem; color: var(--muted-dark); }

.lightbox__tip {
	position: absolute;
	top: 30px;
	left: 50%;
	margin: 0;
	font-size: .8125rem;
	white-space: nowrap;
	color: var(--muted-dark);
	transform: translateX(-50%);
	pointer-events: none;
}

.lightbox__btn {
	position: absolute;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	color: var(--cream);
	background: rgb(255 255 255 / .1);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}

.lightbox__btn:hover { color: var(--ink); background: var(--orange); }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev, .lightbox__next { top: 50%; margin-top: -26px; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

@media (max-width: 699px) {
	.lightbox__stage { padding: 76px 10px 8px; }
	.lightbox__tip { display: none; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 16px; margin-top: 0; }
	.lightbox__bar { padding-inline: 76px; }
}

/* Chatbot : masqué quand le menu plein écran est ouvert. */
.menu-open #wp-chatbot-chat-container,
.menu-open #wp-chatbot-ball-container { visibility: hidden !important; }

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

.skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 2000;
	padding: 12px 20px;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	background: var(--orange);
	border-radius: 999px;
	transform: translateY(-200%);
	transition: transform .2s var(--ease);
}

.skip-link:focus { transform: none; }

/* Apparition au défilement : uniquement si JavaScript tourne ; filet de sécurité à 3 s. */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .9s var(--ease), transform .9s var(--ease);
	transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal]:not(.is-visible) { animation: kiyu-reveal-fallback 0s 3s forwards; }

@keyframes kiyu-reveal-fallback { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	.js [data-reveal] { opacity: 1; transform: none; }
}
