/* ==========================================================================
   Alice Production Blog — feuille de styles principale
   Reprend la charte du site aliceproduction.fr (YOOtheme « Vibe »).
   ========================================================================== */

/* 1. Variables
   ------------------------------------------------------------------------ */
:root {
	--c-rose: #f43482;
	--c-rose-dark: #c92d9b;
	--c-rose-light: #dd67ba;
	--c-magenta: #9f27b5;
	--c-violet: #8333c1;
	--c-indigo: #503ed7;
	--c-bleu: #3234ff;
	--c-link-hover: #7370ff;

	--c-html: #1e183f;
	--c-section: #0e0061;          /* fond des sections (bleu nuit violacé) */
	--c-prune: #211b46;
	--c-muted: #2b2556;
	--c-bar: rgba(40, 33, 85, .95); /* bandeau violet de l'en-tête */
	--c-white: #fff;
	--c-text: rgba(222, 223, 255, .7);
	--c-text-muted: rgba(222, 223, 255, .45);
	--c-border: rgba(225, 219, 255, .1);

	--g-rose: linear-gradient(135deg, #f43482, #9f27b5);
	--g-violet: linear-gradient(135deg, #8333c1, #503ed7);
	--g-bandeau: linear-gradient(90deg, #3234ff, #f43482);
	--g-navbar: linear-gradient(180deg, #1d1e4c 10%, rgba(131, 51, 193, .15) 100%);
	--g-card: linear-gradient(135deg, #494c8a, #362c61);

	--shadow: 0 8px 45px rgba(14, 15, 37, .6);
	--shadow-hover: 0 12px 50px rgba(14, 15, 37, .6);
	--shadow-small: 0 5px 25px rgba(14, 15, 37, .6);

	--f-title: 'Josefin Sans', 'Trebuchet MS', sans-serif;
	--f-text: 'Fira Sans Condensed', 'Arial Narrow', Arial, sans-serif;

	--container: 1080px;
	--gutter: 15px;
	--nav-height: 80px;
	--ease: cubic-bezier(.25, .46, .45, .94);
}
@media (min-width: 640px) { :root { --gutter: 30px; } }
@media (min-width: 960px) { :root { --gutter: 40px; } }

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

html {
	font-family: var(--f-text);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.73;
	background: var(--c-html);
	color: var(--c-text);
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	scroll-behavior: smooth;
	position: relative;
}

/* Grain animé sur toute la page (effet « Vibe ») */
body.has-grain::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 1100;
	background-image: var(--alice-grain);
	opacity: .05;
	pointer-events: none;
}

body { margin: 0; background: var(--c-html); overflow-x: hidden; }

img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
svg { fill: currentColor; }

a { color: var(--c-rose); text-decoration: none; transition: color .1s ease-in-out; }
a:hover { color: var(--c-link-hover); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--c-rose); outline-offset: 2px; }

::selection { background: var(--c-rose); color: #fff; }

p, ul, ol, dl, pre, address, figure, blockquote, table { margin: 0 0 20px; }
* + p, * + ul, * + ol, * + dl, * + pre, * + address, * + figure, * + blockquote, * + table { margin-top: 20px; }

/* Titres : Josefin Sans, capitales, italique, interlettrage large */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
	margin: 0 0 20px;
	font-family: var(--f-title);
	color: var(--c-white);
	font-style: italic;
	letter-spacing: 4px;
	text-transform: uppercase;
}
* + h1, * + h2, * + h3, * + h4, * + h5, * + h6 { margin-top: 40px; }
h1, .h1 { font-size: 35.7px; line-height: 1.2; font-weight: 700; }
h2, .h2 { font-size: 27.2px; line-height: 1.3; font-weight: 600; }
h3, .h3 { font-size: 24px; line-height: 1.4; font-weight: 600; }
h4, .h4 { font-size: 20px; line-height: 1.4; font-weight: 700; }
h5 { font-size: 16px; line-height: 1.4; font-weight: 700; }
h6 { font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: 2px; }
@media (min-width: 960px) {
	h1, .h1 { font-size: 42px; }
	h2, .h2 { font-size: 32px; }
}

blockquote {
	position: relative;
	margin: 40px 0;
	padding: 10px 0 10px 30px;
	font-family: var(--f-title);
	font-size: 20px;
	line-height: 1.5;
	font-style: italic;
	font-weight: 700;
	color: var(--c-white);
	border-left: 3px solid;
	border-image: var(--g-rose) 1;
}
blockquote p:last-of-type { margin-bottom: 0; }
blockquote cite, blockquote footer {
	display: block;
	margin-top: 15px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--c-text-muted);
	font-style: italic;
}
blockquote cite::before { content: "— "; }

hr { margin: 40px 0; border: 0; border-top: 2px solid var(--c-border); }

code, kbd, pre { font-family: Consolas, Monaco, monospace; font-size: 13px; }
:not(pre) > code { padding: 2px 6px; background: var(--c-muted); color: var(--c-rose-light); }
pre { padding: 20px; background: var(--c-prune); color: var(--c-text); overflow: auto; box-shadow: var(--shadow); }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 2px solid var(--c-border); text-align: left; }
th { font-family: var(--f-title); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-style: italic; color: var(--c-white); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	top: 10px; left: 10px; z-index: 100000;
	padding: 12px 20px; background: var(--c-prune); color: #fff;
}
.text-center { text-align: center; }

/* 3. Mise en page
   ------------------------------------------------------------------------ */

/* Bandeau dégradé bleu → rose tout en haut de la page */
.site {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	border-top: 6px solid transparent;
	border-image: var(--g-bandeau) 1;
}
.site-main { flex: 1; }

.container {
	box-sizing: content-box;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--small { max-width: 860px; }

.section {
	padding-block: 40px;
	background-color: var(--c-section);
}
@media (min-width: 960px) { .section { padding-block: 80px; } }

/* 4. En-tête bureau
   ------------------------------------------------------------------------ */
.header-desktop { display: none; position: relative; z-index: 980; }
@media (min-width: 960px) {
	.header-desktop { display: block; }
	.header-mobile { display: none; }
}

.headerbar {
	padding: 20px var(--gutter);
	background: var(--c-bar);
	text-align: center;
}
.headerbar__logo { display: flex; justify-content: center; }
.headerbar__search { display: flex; justify-content: center; margin-top: 20px; }

.site-logo { display: inline-block; line-height: 0; }
.site-logo:hover { text-decoration: none; }
.site-logo__img { display: block; width: auto; max-height: 73px; }
.headerbar .site-logo__img { transition: filter .3s ease, transform .3s ease; }
.headerbar .site-logo:hover .site-logo__img { filter: drop-shadow(-2px -2px 0 rgba(50, 52, 255, .6)) drop-shadow(2px 2px 0 rgba(244, 52, 130, .6)); }

/* Recherche */
.search-form { position: relative; width: 240px; max-width: 100%; }
.search-form__icon {
	position: absolute; top: 0; bottom: 0; left: 0;
	display: flex; align-items: center;
	padding-inline: 15px;
	color: var(--c-text-muted);
	pointer-events: none;
	transition: color .2s ease-in-out;
}
.search-form__icon svg { width: 20px; height: 20px; }
.search-form__input {
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 15px 0 45px;
	font: inherit;
	color: #fff;
	background: rgba(8, 9, 30, .2);
	border: 2px solid transparent;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: .2s ease-in-out;
	transition-property: color, background-color, border-color, box-shadow;
}
.search-form__input::placeholder { color: var(--c-text-muted); opacity: 1; }
.search-form__input:focus { outline: none; background-color: var(--c-prune); border-color: var(--c-rose); }
.search-form:focus-within .search-form__icon { color: var(--c-rose); }
.search-form__input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Bandeau violet de navigation (collant au défilement) */
.navbar {
	position: relative;
	background: var(--c-bar);
	background-image: var(--g-navbar);
	padding-block: 30px;
	transition: padding .2s ease, box-shadow .2s ease;
}
.navbar__inner { padding-inline: var(--gutter); }

.navbar-sticky.is-stuck .navbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 980;
	padding-block: 0;
	box-shadow: var(--shadow-small);
	animation: alice-slide-top .3s var(--ease) both;
}
.admin-bar .navbar-sticky.is-stuck .navbar { top: 32px; }

.navbar-nav {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.navbar-nav > li { position: relative; min-width: 100px; text-align: center; }

.navbar-nav > li > a {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	column-gap: .25em;
	min-height: var(--nav-height);
	padding: 0;
	font-family: var(--f-title);
	font-size: 12px;
	font-weight: 700;
	font-style: italic;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--c-text);
	text-decoration: none;
	transition: .2s ease-in-out;
	transition-property: color, background-color, border-color, box-shadow;
}
/* Trait sous le lien : se déploie au survol, rose sur la page active */
.navbar-nav > li > a::before {
	content: "";
	position: absolute;
	z-index: -1;
	bottom: 25px;
	left: 0;
	right: 100%;
	height: 2px;
	background-color: currentColor;
	transition: .25s var(--ease);
	transition-property: background-color, height, left, right;
}
.navbar-nav > li:hover > a,
.navbar-nav > li > a:focus-visible,
.navbar-nav > li > a[aria-expanded="true"] { color: #fff; text-decoration: none; }
.navbar-nav > li:hover > a::before,
.navbar-nav > li > a:focus-visible::before { right: 0; height: 1px; }

/* Effet « glitch » au survol, identique au site principal */
.has-glitch .navbar-nav > li:hover > a {
	animation: .2s ease both;
	animation-name: alice-glitch-skew, alice-glitch-opacity;
}

.navbar-nav > li.current-menu-item > a,
.navbar-nav > li.current-menu-ancestor > a,
.navbar-nav > li.current_page_parent > a,
.navbar-nav > li.current-menu-parent > a { color: #fff; }
.navbar-nav > li.current-menu-item > a::before,
.navbar-nav > li.current-menu-ancestor > a::before,
.navbar-nav > li.current_page_parent > a::before,
.navbar-nav > li.current-menu-parent > a::before { right: 0; height: 1px; background-color: var(--c-rose); }

.navbar-nav .menu-item-icon > a svg { width: 20px; height: 20px; }
.menu-arrow { display: inline-flex; margin-left: 4px; transition: transform .2s ease; }
.navbar-nav > li:hover .menu-arrow { transform: rotateX(180deg); }

/* Sous-menus */
.navbar-nav .sub-menu {
	position: absolute;
	top: calc(var(--nav-height) - 10px);
	left: 50%;
	z-index: 1020;
	width: 220px;
	margin: 0;
	padding: 25px;
	list-style: none;
	text-align: left;
	background: rgba(40, 33, 85, .98);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.navbar-nav > li:hover > .sub-menu,
.navbar-nav > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.navbar-nav .sub-menu a {
	display: block;
	padding: 5px 0;
	color: var(--c-text-muted);
	font-size: 14px;
	text-decoration: none;
}
.navbar-nav .sub-menu a:hover,
.navbar-nav .sub-menu .current-menu-item > a { color: #fff; }

/* Écrans moyens : on resserre le menu pour qu'il tienne sur une ligne */
@media (min-width: 960px) and (max-width: 1299px) {
	.navbar-nav { gap: 6px 22px; }
	.navbar-nav > li { min-width: 0; }
}

/* 5. En-tête mobile & menu hors-champ
   ------------------------------------------------------------------------ */
.header-mobile { position: relative; z-index: 980; }
.header-mobile__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: var(--nav-height);
	padding-inline: var(--gutter);
	background: var(--c-bar);
	background-image: var(--g-navbar);
}
.header-mobile .site-logo__img { max-height: 52px; }

.nav-toggle {
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	margin-right: -12px;
	padding: 0;
	background: none; border: 0;
	color: var(--c-text);
	cursor: pointer;
	transition: color .2s ease;
}
.nav-toggle:hover { color: #fff; }
.nav-toggle__icon { position: relative; display: block; width: 20px; height: 18px; }
.nav-toggle__icon span {
	position: absolute; left: 0;
	width: 20px; height: 2px;
	background: currentColor;
	transition: transform .2s ease-in-out, opacity .2s ease-in-out;
}
.nav-toggle__icon span:nth-child(1) { top: 2px; }
.nav-toggle__icon span:nth-child(2), .nav-toggle__icon span:nth-child(3) { top: 8px; }
.nav-toggle__icon span:nth-child(4) { top: 14px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1),
.nav-toggle[aria-expanded="true"] span:nth-child(4) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.offcanvas { position: fixed; inset: 0; z-index: 1050; }
.offcanvas[hidden] { display: none; }
.offcanvas__overlay {
	position: absolute; inset: 0;
	background: rgba(0, 0, 0, .35);
	opacity: 0;
	transition: opacity .2s linear;
}
.offcanvas__bar {
	position: absolute; top: 0; bottom: 0; right: 0;
	width: 300px; max-width: 85vw;
	padding: 70px 30px 30px;
	overflow-y: auto;
	background: var(--c-prune);
	box-shadow: var(--shadow-hover);
	transform: translateX(100%);
	transition: transform .3s var(--ease);
}
.offcanvas__bar::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
	background: var(--g-bandeau);
}
.offcanvas.is-open .offcanvas__overlay { opacity: 1; }
.offcanvas.is-open .offcanvas__bar { transform: translateX(0); }
.admin-bar .offcanvas { top: 46px; }

.offcanvas__close {
	position: absolute; top: 20px; right: 20px;
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	padding: 0; background: none; border: 0;
	color: var(--c-text); cursor: pointer;
}
.offcanvas__close:hover { color: #fff; }

.offcanvas-nav, .offcanvas-nav .sub-menu { margin: 0; padding: 0; list-style: none; }
.offcanvas-nav > li > a {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 0;
	font-family: var(--f-title);
	font-size: 16px;
	font-weight: 700;
	font-style: italic;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--c-text);
	text-decoration: none;
}
.offcanvas-nav > li > a:hover,
.offcanvas-nav .current-menu-item > a { color: #fff; }
.offcanvas-nav .current-menu-item > a { box-shadow: inset 3px 0 0 var(--c-rose); padding-left: 12px; }
/* Dans le menu mobile, on affiche le libellé à côté de l'icône */
.offcanvas-nav .menu-item-icon .screen-reader-text {
	position: static !important; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; white-space: normal;
}
.offcanvas-nav .sub-menu { padding-left: 15px; }
.offcanvas-nav .sub-menu a { display: block; padding: 4px 0; color: var(--c-text-muted); }
.offcanvas-nav .menu-arrow { display: none; }
.offcanvas__search { margin-top: 30px; }
.offcanvas__search .search-form { width: 100%; }
body.offcanvas-open { overflow: hidden; }

/* 6. Bandeau de titre des pages
   ------------------------------------------------------------------------ */
.page-banner {
	position: relative;
	padding-block: 50px 40px;
	text-align: center;
	background-color: var(--c-section);
	overflow: hidden;
}
.page-banner::after {
	/* fin trait dégradé sous le titre */
	content: "";
	display: block;
	width: 120px;
	height: 2px;
	margin: 30px auto 0;
	background: var(--g-rose);
}
@media (min-width: 960px) { .page-banner { padding-block: 80px 20px; } }

.page-banner__kicker {
	margin: 0 0 15px;
	font-family: var(--f-title);
	font-size: 12px;
	font-weight: 700;
	font-style: italic;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: var(--c-rose);
}
.page-banner__title {
	margin: 0;
	font-size: 34px;
	line-height: 1.2;
	font-weight: 700;
	/* ombre décalée bleu / rose du site principal */
	text-shadow: -2px -2px 0 var(--c-bleu), 2px 2px 0 var(--c-rose);
}
@media (min-width: 640px) { .page-banner__title { font-size: 43.776px; } }
@media (min-width: 960px) { .page-banner__title { font-size: 54.72px; } }
.page-banner__title--post { font-size: 28px; text-shadow: -1px -1px 0 var(--c-bleu), 1px 1px 0 var(--c-rose); }
@media (min-width: 960px) { .page-banner__title--post { font-size: 42px; } }
/* Au survol, le titre « glitche » comme les titres animés du site */
.has-glitch .glitch-title:hover { animation: alice-glitch-text-shadow .65s ease both infinite; }

.page-banner__intro { max-width: 640px; margin: 20px auto 0; font-size: 17px; }
.page-banner__intro p { margin: 0; }
.page-banner .entry-meta { justify-content: center; margin-bottom: 20px; }

/* 7. Grille d'articles & cartes
   ------------------------------------------------------------------------ */
.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.card { display: flex; flex-direction: column; }
.card__link {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 20px;
	color: var(--c-text);
	text-decoration: none;
	transition: .1s ease-in-out;
	transition-property: background-color, box-shadow;
}
@media (min-width: 640px) { .card__link { padding: 30px; } }
.card__link:hover {
	color: var(--c-text);
	text-decoration: none;
	background-color: rgba(40, 33, 85, .95);
	box-shadow: var(--shadow-hover);
}
.card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--g-card); }
.card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__link:hover .card__img { transform: scale(1.04); }
/* bordure dégradée qui s'épaissit au survol (tm-transition-border) */
.card__media::after {
	content: "";
	position: absolute; inset: -1px;
	z-index: 1;
	pointer-events: none;
	border: 0 solid var(--c-rose);
	border-image: var(--g-rose) 1;
	transition: border-width .1s ease-in-out;
}
.card__link:hover .card__media::after { border-width: 12px; }
.card__placeholder {
	position: absolute; inset: 0;
	background: var(--g-card) center / 40% no-repeat;
}

.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 20px; }
.card__body .entry-meta { margin-bottom: 10px; }
.card__title {
	margin: 0;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: 4px;
}
.card__excerpt { margin: 15px 0 0; }
.card__body .button { align-self: flex-start; margin-top: auto; }
.card__excerpt + .button { margin-top: 25px; }

/* Article mis en avant (premier de la page blog) */
@media (min-width: 960px) {
	.card--featured { grid-column: 1 / -1; }
	.card--featured .card__link { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
	.card--featured .card__body { padding-top: 0; }
	.card--featured .card__title { font-size: 28px; line-height: 1.3; }
	.card--featured .card__excerpt { font-size: 16px; }
	.card--featured .card__body .button { margin-top: 30px; }
}

/* Méta */
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	font-family: var(--f-title);
	font-size: 11px;
	font-weight: 700;
	font-style: italic;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--c-text-muted);
}
.entry-meta a, .entry-meta span:not(.sep) { color: var(--c-rose); }
.entry-meta a:hover { color: #fff; text-decoration: none; }
.entry-meta .sep { color: var(--c-text-muted); opacity: .6; }

/* 8. Boutons
   ------------------------------------------------------------------------ */
.button,
.wp-block-button__link,
.wp-element-button,
input[type="submit"],
button.button {
	display: inline-block;
	box-sizing: border-box;
	margin: 0;
	padding: 0 30px;
	min-height: 40px;
	line-height: 36px;
	font-family: var(--f-title);
	font-size: 12px;
	font-weight: 700;
	font-style: italic;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
	border-radius: 0;
	cursor: pointer;
	background-origin: border-box;
	transition: .1s ease-in-out;
	transition-property: color, background-color, border-color, box-shadow;
}
/* Bouton contour dégradé (par défaut) */
.button--default,
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--c-rose-dark);
	border: 2px solid var(--c-violet);
	border-image: linear-gradient(135deg, #f43482, #9f27b5) 1;
}
.button--default:hover,
.card__link:hover .button--default,
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	color: var(--c-rose-light);
	text-decoration: none;
	border-image: linear-gradient(25deg, #f43482, #9f27b5) 1;
}
/* Bouton plein dégradé */
.button--primary,
.wp-block-button__link,
.wp-element-button,
input[type="submit"] {
	color: #fff;
	border: 2px solid transparent;
	background-color: var(--c-rose);
	background-image: linear-gradient(135deg, #f43482, #9f27b5);
	box-shadow: var(--shadow);
}
.button--primary:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
input[type="submit"]:hover {
	color: #08091e;
	text-decoration: none;
	background-image: linear-gradient(25deg, #f43482, #9f27b5);
	box-shadow: var(--shadow-small);
}
.button--secondary {
	background: transparent;
	color: #7e50ce;
	border: 2px solid var(--c-rose);
	border-image: linear-gradient(135deg, #8333c1, #503ed7) 1;
}
.button--secondary:hover { color: #9c78d9; text-decoration: none; border-image: linear-gradient(25deg, #8333c1, #503ed7) 1; }

/* 9. Contenu d'article
   ------------------------------------------------------------------------ */
.page-banner--post { padding-bottom: 10px; }
.section--post { padding-top: 30px; }

.post-thumbnail { margin: 0 0 50px; }
.post-thumbnail img { display: block; width: 100%; }

/* Cadre décalé rose/bleu (tm-box-decoration-secondary) */
.box-decoration { position: relative; z-index: 0; padding: 2px; }
.box-decoration::before {
	content: "";
	position: absolute; inset: 2px;
	z-index: -1;
	pointer-events: none;
	box-shadow: -6px -6px 0 var(--c-bleu), 6px 6px 0 var(--c-rose);
	transition: box-shadow .3s var(--ease);
}
.has-glitch .box-decoration:hover::before { animation: alice-box-glitch .65s var(--ease) both infinite; }

.entry-content { font-size: 16px; line-height: 1.8; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 24px; }
.entry-content h3 { font-size: 20px; }
.entry-content h4 { font-size: 16px; }
@media (min-width: 960px) {
	.entry-content h2 { font-size: 27.2px; }
	.entry-content h3 { font-size: 22px; }
}
.entry-content h2::before {
	/* puce verticale rose (uk-heading-bullet) */
	content: "";
	display: inline-block;
	position: relative;
	top: -.1em;
	vertical-align: middle;
	height: calc(4px + .7em);
	margin-right: calc(5px + .2em);
	border-left: calc(5px + .1em) solid var(--c-rose);
}
.entry-content a { text-decoration: underline; text-decoration-color: rgba(244, 52, 130, .4); text-underline-offset: 3px; }
.entry-content a:hover { color: var(--c-link-hover); text-decoration-color: currentColor; }
.entry-content strong { color: #fff; font-weight: 600; }

.entry-content ul { padding-left: 30px; list-style: none; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before {
	content: "";
	position: absolute; left: -30px; top: 0;
	width: 30px; height: 1.8em;
	background: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2210%22%20height%3D%2210%22%20viewBox%3D%220%200%2010%2010%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20fill%3D%22none%22%20stroke%3D%22%23F43482%22%20stroke-width%3D%222%22%20cx%3D%225%22%20cy%3D%225%22%20r%3D%224%22%2F%3E%3C%2Fsvg%3E") no-repeat 50% 50%;
}
.entry-content ol { padding-left: 30px; }
.entry-content ol > li::marker { color: var(--c-rose); font-family: var(--f-title); font-weight: 700; }
.entry-content li + li { margin-top: 8px; }

.entry-content img { height: auto; }
.entry-content figure { margin-block: 40px; }
.entry-content figcaption,
.wp-caption-text {
	margin-top: 10px;
	font-size: 13px;
	color: var(--c-text-muted);
	text-align: center;
	font-style: italic;
}
.alignleft { float: left; margin: 5px 30px 20px 0; }
.alignright { float: right; margin: 5px 0 20px 30px; }
.aligncenter { display: block; margin-inline: auto; }
@media (min-width: 960px) {
	.alignwide { margin-inline: -80px; max-width: calc(100% + 160px) !important; }
}
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw !important; width: 100vw; }

.wp-block-pullquote { padding: 40px 0; border-block: 2px solid; border-image: var(--g-rose) 1; text-align: center; }
.wp-block-pullquote blockquote { border: 0; padding: 0; }
.wp-block-separator { border: 0; border-top: 2px solid var(--c-border); }
.wp-block-separator.is-style-wide { border-image: var(--g-bandeau) 1; }
.wp-block-image img { box-shadow: var(--shadow); }
.wp-block-gallery img { box-shadow: none; }
.wp-block-buttons { gap: 15px; }
.wp-block-cover { min-height: 400px; }
.wp-block-group.has-background { padding: 40px; }
.wp-block-table td, .wp-block-table th { border-color: var(--c-border); }

/* Couleurs de la palette de l'éditeur */
.has-rose-color { color: #f43482 !important; } .has-rose-background-color { background-color: #f43482 !important; }
.has-magenta-color { color: #9f27b5 !important; } .has-magenta-background-color { background-color: #9f27b5 !important; }
.has-violet-color { color: #8333c1 !important; } .has-violet-background-color { background-color: #8333c1 !important; }
.has-indigo-color { color: #503ed7 !important; } .has-indigo-background-color { background-color: #503ed7 !important; }
.has-bleu-color { color: #3234ff !important; } .has-bleu-background-color { background-color: #3234ff !important; }
.has-nuit-color { color: #0e0061 !important; } .has-nuit-background-color { background-color: #0e0061 !important; }
.has-prune-color { color: #211b46 !important; } .has-prune-background-color { background-color: #211b46 !important; }
.has-texte-color { color: #c9cae6 !important; } .has-texte-background-color { background-color: #c9cae6 !important; }
.has-blanc-color { color: #fff !important; } .has-blanc-background-color { background-color: #fff !important; }
.has-rose-magenta-gradient-background { background: linear-gradient(135deg, #f43482, #9f27b5) !important; }
.has-violet-indigo-gradient-background { background: linear-gradient(135deg, #8333c1, #503ed7) !important; }
.has-bandeau-gradient-background { background: linear-gradient(90deg, #3234ff, #f43482) !important; }
.has-carte-gradient-background { background: linear-gradient(135deg, #494c8a, #362c61) !important; }
.has-small-font-size { font-size: 13px !important; }
.has-normal-font-size { font-size: 15px !important; }
.has-large-font-size { font-size: 20px !important; }
.has-huge-font-size { font-size: 28px !important; }

/* Pied d'article */
.entry-footer { margin-top: 50px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tag-list a {
	display: inline-block;
	padding: 4px 14px;
	font-family: var(--f-title);
	font-size: 11px;
	font-weight: 700;
	font-style: italic;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--c-text);
	background: var(--c-muted);
	text-decoration: none;
	transition: background .2s, color .2s;
}
.tag-list a:hover { color: #fff; background: var(--g-rose); }

/* Navigation entre articles */
.post-navigation { margin-top: 60px; }
.post-navigation .nav-links { display: grid; gap: 20px; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a {
	display: block;
	height: 100%;
	padding: 25px 30px;
	background-color: var(--c-prune);
	background-image: var(--g-card);
	box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .05), var(--shadow);
	text-decoration: none;
	transition: box-shadow .2s, background-image .2s;
}
.post-navigation a:hover { text-decoration: none; background-image: linear-gradient(155deg, #494c8a, #362c61); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .05), var(--shadow-hover); }
.post-navigation .nav-next { text-align: right; }
.post-nav__label {
	display: block;
	font-family: var(--f-title);
	font-size: 11px;
	font-weight: 700;
	font-style: italic;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--c-rose);
}
.post-nav__title { display: block; margin-top: 6px; color: #fff; font-size: 17px; }

/* Mise en page avec colonne latérale */
.post-layout { display: grid; gap: 60px; }
@media (min-width: 960px) {
	.has-sidebar .post-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
.widget { margin-bottom: 40px; padding: 30px; background: var(--g-card); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .05), var(--shadow); }
.widget-title { font-size: 14px; letter-spacing: 3px; margin-bottom: 20px; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li + li { margin-top: 8px; }
.widget a { color: var(--c-text); }
.widget a:hover { color: #fff; text-decoration: none; }
.widget .search-form { width: 100%; }

/* 10. Pagination
   ------------------------------------------------------------------------ */
.pagination { margin-top: 70px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	font-family: var(--f-title);
	font-size: 13px;
	font-weight: 700;
	font-style: italic;
	color: var(--c-text);
	text-decoration: none;
	border: 2px solid transparent;
	transition: color .1s, border-color .1s;
}
.pagination a.page-numbers:hover { color: #fff; border-image: var(--g-rose) 1; border-color: var(--c-rose); }
.pagination .page-numbers.current { color: #fff; background-image: var(--g-rose); box-shadow: var(--shadow); }

/* 11. Commentaires & formulaires
   ------------------------------------------------------------------------ */
.comments-area { margin-top: 70px; padding-top: 50px; border-top: 2px solid var(--c-border); }
.comments-title, .comment-reply-title { font-size: 20px; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { padding-left: 30px; }
.comment-body { margin-bottom: 30px; padding: 25px 30px; background: var(--c-prune); box-shadow: var(--shadow); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; margin-bottom: 10px; }
.comment-author { display: flex; align-items: center; gap: 12px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-family: var(--f-title); font-weight: 700; font-style: italic; color: #fff; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; }
.comment-metadata a { color: var(--c-text-muted); }
.reply a { font-family: var(--f-title); font-size: 11px; font-weight: 700; font-style: italic; letter-spacing: 2px; text-transform: uppercase; }

label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--c-text); }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%;
	max-width: 100%;
	padding: 8px 12px;
	font: inherit;
	color: #fff;
	background: rgba(8, 9, 30, .2);
	border: 2px solid var(--c-border);
	border-radius: 0;
	transition: border-color .2s, background-color .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--c-rose); background-color: var(--c-prune); }
.comment-form p { margin: 0 0 20px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; }

/* 12. Pied de page
   ------------------------------------------------------------------------ */
.site-footer {
	padding-block: 60px;
	background-color: var(--c-section);
	border-top: 2px solid var(--c-border);
}
@media (min-width: 960px) { .site-footer { padding-block: 70px; } }
.footer-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid__nav { grid-column: 1 / -1; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr 2fr; } .footer-grid__nav { grid-column: auto; } }
.footer-grid__address p { margin: 0; }
.footer-grid__nav { text-align: center; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 0; padding: 0; list-style: none; }
.footer-menu a {
	font-family: var(--f-title);
	font-size: 12px;
	font-weight: 700;
	font-style: italic;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--c-rose);
	text-decoration: none;
}
.footer-menu a:hover { color: #fff; }
.footer-copy { margin: 15px 0 0; font-size: 13px; color: var(--c-text-muted); }

/* Bouton retour en haut */
.to-top {
	position: fixed;
	right: 20px; bottom: 20px;
	z-index: 970;
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	color: #fff;
	background-image: var(--g-rose);
	box-shadow: var(--shadow);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .3s, transform .3s;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { color: #08091e; }

/* 13. Divers
   ------------------------------------------------------------------------ */
.no-results { max-width: 640px; margin-inline: auto; text-align: center; }
.no-results__search { display: flex; justify-content: center; margin: 30px 0; }
.section--404 { padding-block: 100px; }
.error-code {
	margin: 0 0 10px;
	font-family: var(--f-title);
	font-size: clamp(90px, 20vw, 180px);
	line-height: 1;
	font-weight: 700;
	font-style: italic;
	color: #fff;
	letter-spacing: 8px;
	animation: alice-glitch-text-shadow .65s ease both infinite;
}
.sticky .card__title::after { content: " ★"; color: var(--c-rose); }
.bypostauthor > .comment-body { box-shadow: inset 3px 0 0 var(--c-rose), var(--shadow); }
.gallery-caption, .wp-caption { max-width: 100%; }

/* 14. Animations (reprises du thème « Vibe »)
   ------------------------------------------------------------------------ */
@keyframes alice-glitch-skew {
	0%   { transform: skewX(-15deg); }
	20%  { transform: skewX(15deg); }
	40%  { transform: skewX(-15deg); }
	60%  { transform: skewX(15deg); }
	80%  { transform: skewX(-15deg); }
	100% { transform: skewX(0); }
}
@keyframes alice-glitch-opacity {
	0%  { opacity: 0; }
	20% { opacity: 1; }
	40% { opacity: .2; }
	60% { opacity: 1; }
}
@keyframes alice-glitch-text-shadow {
	0%   { text-shadow: -2px -2px 0 #f43482, 2px 2px 0 #3234ff; }
	25%  { text-shadow: 2px -2px 0 #f43482, -2px 2px 0 #3234ff; }
	50%  { text-shadow: -2px 2px 0 #f43482, 2px -2px 0 #3234ff; }
	75%  { text-shadow: 2px 2px 0 #f43482, -2px -2px 0 #3234ff; }
	100% { text-shadow: none; }
}
@keyframes alice-box-glitch {
	0%   { box-shadow: -6px -6px 0 #3234ff, 6px 6px 0 #f43482; }
	25%  { box-shadow: 6px -6px 0 #3234ff, -6px 6px 0 #f43482; }
	50%  { box-shadow: -6px 6px 0 #3234ff, 6px -6px 0 #f43482; }
	75%  { box-shadow: 6px 6px 0 #3234ff, -6px -6px 0 #f43482; }
	100% { box-shadow: -6px -6px 0 #3234ff, 6px 6px 0 #f43482; }
}
@keyframes alice-slide-top {
	from { transform: translateY(-100%); }
	to   { transform: translateY(0); }
}
@keyframes alice-fade-up {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: none; }
}

/* Apparition progressive des cartes au défilement */
.js .card.reveal { opacity: 0; }
.js .card.reveal.is-inview { animation: alice-fade-up .6s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .card.reveal { opacity: 1; }
	html { scroll-behavior: auto; }
}

@media print {
	body::after, .header-desktop, .header-mobile, .offcanvas, .site-footer, .to-top, .post-navigation, .comments-area { display: none !important; }
	html, body, .section, .page-banner { background: #fff !important; color: #000 !important; }
	h1, h2, h3, h4 { color: #000 !important; text-shadow: none !important; }
}

/* 15. Ajustements widgets (blocs) & enchaînements
   ------------------------------------------------------------------------ */
.page-banner + .section { padding-top: 30px; }
@media (min-width: 960px) { .page-banner + .section { padding-top: 50px; } }
.widget h2, .widget h3, .widget .wp-block-heading { margin-top: 0; font-size: 14px; letter-spacing: 3px; line-height: 1.4; }
.widget .wp-block-search__label { font-family: var(--f-title); font-size: 14px; font-weight: 700; font-style: italic; letter-spacing: 3px; text-transform: uppercase; color: #fff; }
.wp-block-search__inside-wrapper { display: flex; gap: 0; }
.wp-block-search__input { flex: 1; height: 40px; padding: 0 12px; font: inherit; color: #fff; background: rgba(8, 9, 30, .2); border: 2px solid var(--c-border); border-radius: 0; }
.wp-block-search__input:focus { outline: none; border-color: var(--c-rose); }
.wp-block-search__button { margin-left: -2px !important; }
.widget ol { margin: 0; padding-left: 18px; }
.wp-block-search__input { min-width: 0; }
.wp-block-search__button { flex: none; padding: 0 15px !important; }
