/*
Theme Name: Sur la Lune
Description: Thème bloc sur mesure pour la boutique Sur la Lune — direction « Nuit & ivoire ».
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: sur-la-lune
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ---- Bases ---- */
html { scroll-behavior: smooth; }
img { border-radius: 4px; }

/* Petites étiquettes en capitales (sur-titres, catégories) */
.sll-surtitre,
.sll-surtitre a {
	font-size: 0.8125rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
}

/* Bandeau d'annonce */
.sll-annonce p { margin: 0; }

/* En-tête : logo croissant + titre */
.sll-logo { display: flex; align-items: center; gap: 10px; }
.sll-logo svg { flex: 0 0 auto; }
.sll-logo .wp-block-site-title a { text-decoration: none; transition: color .5s ease; }

/* Lune du logo : s'illumine au survol (ou au focus clavier) du logo */
.sll-lune-lien { display: inline-flex; line-height: 0; }
.sll-lune {
	overflow: visible;
	transform-origin: 50% 50%;
	transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .7s ease;
}
.sll-lune-croissant {
	fill: transparent;
	transition: fill .6s ease, stroke .6s ease;
}
.sll-etoile {
	opacity: 0;
	transform: scale(0);
	transform-box: fill-box;
	transform-origin: center;
	transition: opacity .4s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.sll-etoile-2 { transition-delay: .08s; }
.sll-etoile-3 { transition-delay: .16s; }

.sll-logo:hover .sll-lune,
.sll-logo:focus-within .sll-lune {
	transform: rotate(-16deg) scale(1.12);
	filter: drop-shadow(0 0 4px rgba(216, 184, 120, .95)) drop-shadow(0 0 12px rgba(216, 184, 120, .55));
}
.sll-logo:hover .sll-lune-croissant,
.sll-logo:focus-within .sll-lune-croissant {
	fill: #E6C98A;
	stroke: #B8923F;
}
.sll-logo:hover .sll-etoile,
.sll-logo:focus-within .sll-etoile {
	opacity: 1;
	transform: scale(1);
	animation: sll-scintille 1.8s ease-in-out .5s infinite;
}
.sll-logo:hover .sll-etoile-2, .sll-logo:focus-within .sll-etoile-2 { animation-delay: .8s; }
.sll-logo:hover .sll-etoile-3, .sll-logo:focus-within .sll-etoile-3 { animation-delay: 1.1s; }
.sll-logo:hover .wp-block-site-title a,
.sll-logo:focus-within .wp-block-site-title a { color: var(--wp--preset--color--or); }

@keyframes sll-scintille {
	0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
	50% { opacity: .35; transform: scale(.55) rotate(45deg); }
}

@media (prefers-reduced-motion: reduce) {
	.sll-lune, .sll-lune-croissant, .sll-etoile { transition: none; }
	.sll-logo:hover .sll-lune, .sll-logo:focus-within .sll-lune { transform: none; }
	.sll-logo:hover .sll-etoile, .sll-logo:focus-within .sll-etoile { animation: none; }
}

/* Navigation : soulignement fin au survol */
.wp-block-navigation .wp-block-navigation-item__content { text-decoration: none; }
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
}

/* Bouton contour (2e bouton) */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1px solid currentColor;
}

/* ---- Cartes produits ---- */
.wp-block-woocommerce-product-template .wc-block-components-product-image img,
.wp-block-woocommerce-product-image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
	border-radius: 4px;
	background: var(--wp--preset--color--ivoire-fonce);
}
.wp-block-woocommerce-product-template .wp-block-post-title a { text-decoration: none; }
.wp-block-woocommerce-product-template .wp-block-post-title a:hover { text-decoration: underline; }
.wp-block-woocommerce-product-template .wp-block-button__link,
.wp-block-woocommerce-product-template .wc-block-components-product-button__button {
	background: transparent !important;
	color: var(--wp--preset--color--encre) !important;
	border: 1px solid var(--wp--preset--color--encre) !important;
	border-radius: 999px !important;
	min-height: 44px;
	padding: 0.6rem 1.2rem !important;
	font-size: 0.875rem !important;
}
.wp-block-woocommerce-product-template .wc-block-components-product-button {
	align-items: flex-start !important;
	justify-content: flex-start !important;
	text-align: left;
}
.wp-block-woocommerce-product-template .wc-block-components-product-button__button:hover {
	background: var(--wp--preset--color--nuit) !important;
	color: var(--wp--preset--color--ivoire) !important;
}

/* Tuiles de collections */
.sll-collection figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.sll-collection a { text-decoration: none; color: inherit; }

/* Filtres de la boutique (pastilles) */
.sll-pastilles .wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }

/* Image du héros : remplit la colonne */
.wp-block-columns.sll-hero, .wp-block-columns.sll-hero.has-background { overflow: hidden; border-radius: 6px; padding: 0 !important; }
.sll-hero .sll-hero-image,
.sll-hero .sll-hero-image figure { height: 100%; margin: 0; }
.sll-hero .sll-hero-image img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 0; display: block; }

/* Fiche produit */
.single-product .wp-block-woocommerce-product-price { font-size: 1.6rem; }
.single-product .wc-block-add-to-cart-form .single_add_to_cart_button,
.single-product form.cart .single_add_to_cart_button {
	background: var(--wp--preset--color--nuit);
	color: var(--wp--preset--color--ivoire);
	border-radius: 999px;
	min-height: 52px;
	padding: 0 2rem;
	border: 0;
	font-family: var(--wp--preset--font-family--jost);
	font-size: 1rem;
}
.single-product form.cart .quantity input.qty {
	min-height: 52px;
	border: 1px solid var(--wp--preset--color--trait-fonce);
	border-radius: 999px;
	text-align: center;
	background: transparent;
}

/* Pied de page */
.sll-pied a { color: var(--wp--preset--color--texte-nuit); text-decoration: none; }
.sll-pied a:hover { color: var(--wp--preset--color--or-clair); text-decoration: underline; }

/* Fil d'Ariane sur le bandeau sombre de la boutique */
.wp-block-cover .wc-block-breadcrumbs a,
.wp-block-cover .woocommerce-breadcrumb a { color: var(--wp--preset--color--ivoire-fonce); }

/* Bouton loupe de l'en-tête : discret */
header .wp-block-search__button {
	background: transparent !important;
	color: var(--wp--preset--color--encre) !important;
	border: 0 !important;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
header .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }

/* Formulaires (recherche, tri) */
select, input[type="search"], input[type="text"], input[type="email"] {
	font-family: var(--wp--preset--font-family--jost);
}
.wc-block-catalog-sorting select, .woocommerce-ordering select {
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--wp--preset--color--trait-fonce);
	border-radius: 999px;
	background: var(--wp--preset--color--ivoire);
	color: var(--wp--preset--color--encre);
}

/* =========================================================
   Animations de la page d'accueil
   ========================================================= */

/* --- Héros : arrivée en cascade du texte --- */
@keyframes sll-monte {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: none; }
}
.sll-hero > .wp-block-column:first-child > * {
	animation: sll-monte .9s cubic-bezier(.2, .8, .2, 1) both;
	position: relative;
	z-index: 1;
}
.sll-hero > .wp-block-column:first-child > *:nth-child(1) { animation-delay: .15s; }
.sll-hero > .wp-block-column:first-child > *:nth-child(2) { animation-delay: .3s; }
.sll-hero > .wp-block-column:first-child > *:nth-child(3) { animation-delay: .5s; }
.sll-hero > .wp-block-column:first-child > *:nth-child(4) { animation-delay: .7s; }

/* --- Héros : reflet doré qui traverse « qui vous ressemble » --- */
@keyframes sll-reflet {
	0%   { background-position: 120% 0; }
	100% { background-position: -20% 0; }
}
.sll-hero h1 em {
	background: linear-gradient(100deg, #D8B878 0%, #D8B878 40%, #FFF1CF 50%, #D8B878 60%, #D8B878 100%);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: sll-reflet 2.4s ease-in-out 1.2s both, sll-reflet 2.4s ease-in-out 9s infinite;
}

/* --- Héros : ciel étoilé qui scintille derrière le texte --- */
.sll-hero > .wp-block-column:first-child { position: relative; isolation: isolate; }
.sll-hero > .wp-block-column:first-child::before,
.sll-hero > .wp-block-column:first-child::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-repeat: repeat;
}
.sll-hero > .wp-block-column:first-child::before {
	background-image:
		radial-gradient(2px 2px at 12% 18%, rgba(255, 241, 207, .9), transparent 60%),
		radial-gradient(2px 2px at 78% 12%, rgba(255, 241, 207, .8), transparent 60%),
		radial-gradient(3px 3px at 64% 72%, rgba(216, 184, 120, .9), transparent 60%),
		radial-gradient(2px 2px at 30% 82%, rgba(255, 241, 207, .7), transparent 60%),
		radial-gradient(2px 2px at 90% 48%, rgba(255, 241, 207, .8), transparent 60%),
		radial-gradient(3px 3px at 44% 34%, rgba(216, 184, 120, .7), transparent 60%);
	background-size: 260px 260px;
	animation: sll-ciel 5s ease-in-out infinite alternate;
}
.sll-hero > .wp-block-column:first-child::after {
	background-image:
		radial-gradient(2px 2px at 22% 58%, rgba(255, 241, 207, .8), transparent 60%),
		radial-gradient(3px 3px at 84% 86%, rgba(216, 184, 120, .8), transparent 60%),
		radial-gradient(2px 2px at 52% 8%, rgba(255, 241, 207, .9), transparent 60%),
		radial-gradient(2px 2px at 6% 40%, rgba(255, 241, 207, .6), transparent 60%);
	background-size: 190px 190px;
	animation: sll-ciel 3.6s ease-in-out 1.5s infinite alternate-reverse;
}
@keyframes sll-ciel {
	from { opacity: .35; }
	to   { opacity: 1; }
}

/* --- Héros : une étoile filante de temps en temps --- */
.wp-block-columns.sll-hero { position: relative; }
.wp-block-columns.sll-hero::after {
	content: "";
	position: absolute;
	top: 14%;
	left: 4%;
	width: 140px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(255, 241, 207, 0), rgba(255, 241, 207, .95));
	box-shadow: 0 0 8px rgba(255, 241, 207, .8);
	opacity: 0;
	transform: rotate(18deg) translateX(0);
	pointer-events: none;
	z-index: 2;
	animation: sll-filante 9s ease-in 2.5s infinite;
}
@keyframes sll-filante {
	0%   { opacity: 0; transform: rotate(18deg) translateX(0); }
	3%   { opacity: 1; }
	12%  { opacity: 0; transform: rotate(18deg) translateX(420px); }
	100% { opacity: 0; transform: rotate(18deg) translateX(420px); }
}

/* --- Héros : photo qui s'installe doucement, puis zoom lent au survol --- */
@keyframes sll-installe {
	from { transform: scale(1.08); opacity: .4; }
	to   { transform: scale(1); opacity: 1; }
}
.sll-hero .sll-hero-image { overflow: hidden; }
.sll-hero .sll-hero-image img {
	animation: sll-installe 1.8s cubic-bezier(.2, .8, .2, 1) both;
	transition: transform 6s ease-out;
}
.sll-hero .sll-hero-image:hover img { transform: scale(1.05); }

/* --- Apparition au défilement (pilotée par assets/js/animations.js) --- */
.sll-anim .sll-a-reveler {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.sll-anim .sll-a-reveler.sll-visible {
	opacity: 1;
	transform: none;
}

/* --- Survol : photos qui zooment légèrement, cartes qui se soulèvent --- */
.wc-block-components-product-image,
.wp-block-woocommerce-product-image,
.sll-collection figure,
.sll-revele-enfants .wp-block-image {
	overflow: hidden;
	border-radius: 4px;
}
.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img,
.sll-collection figure img,
.sll-revele-enfants .wp-block-image img {
	transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .6s ease;
}
.wp-block-woocommerce-product-template li:hover .wc-block-components-product-image img,
.wp-block-woocommerce-product-template li:hover .wp-block-woocommerce-product-image img,
.sll-collection .wp-block-column:hover figure img,
.sll-revele-enfants .wp-block-image:hover img {
	transform: scale(1.06);
	filter: saturate(1.08);
}
.sll-collection h3 a {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size .5s ease;
}
.sll-collection .wp-block-column:hover h3 a { background-size: 100% 1px; }

/* Boutons : léger soulèvement */
.wp-block-button__link,
.wc-block-components-product-button__button {
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.wp-block-button__link:hover,
.wc-block-components-product-button__button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(22, 21, 42, .18);
}

/* Respect du réglage « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
	.sll-hero > .wp-block-column:first-child > *,
	.sll-hero h1 em,
	.sll-hero .sll-hero-image img,
	.sll-hero > .wp-block-column:first-child::before,
	.sll-hero > .wp-block-column:first-child::after,
	.wp-block-columns.sll-hero::after { animation: none !important; }
	.sll-hero h1 em { -webkit-text-fill-color: #D8B878; background: none; }
	.sll-anim .sll-a-reveler { opacity: 1; transform: none; transition: none; }
	.wp-block-button__link:hover,
	.wc-block-components-product-button__button:hover { transform: none; }
	.wc-block-components-product-image img,
	.sll-collection figure img,
	.sll-revele-enfants .wp-block-image img { transition: none; }
}

/* =========================================================
   Boutique : grille aérée, première création en vedette
   ========================================================= */
.sll-grille-boutique .wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 48px 28px !important;
	max-width: 1080px;
	margin-inline: auto !important;
}
.sll-grille-boutique .wc-block-product { width: auto !important; margin: 0 !important; }
.sll-grille-boutique .wp-block-post-title { font-size: 1.5rem !important; }
.sll-grille-boutique .wc-block-components-product-price { font-size: 1.125rem; }

/* Cartes régulières et compactes : photo carrée, bouton toujours visible sous la photo */
.sll-grille-boutique .wc-block-components-product-image img { aspect-ratio: 1 / 1 !important; }
.sll-grille-boutique .wc-block-product { display: flex; flex-direction: column; }
@media (max-width: 899px) {
	.sll-grille-boutique .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 40px 16px !important; }
	.sll-grille-boutique .wp-block-post-title { font-size: 1.2rem !important; }
}

/* =========================================================
   Cartes produits : survol plus vivant (partout)
   ========================================================= */
.wc-block-components-product-image { position: relative; }
.wc-block-components-product-image > a { display: block; position: relative; }
.wc-block-components-product-image > a::after {
	content: "Voir la création  →";
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translate(-50%, 12px);
	opacity: 0;
	white-space: nowrap;
	background: var(--wp--preset--color--ivoire);
	color: var(--wp--preset--color--encre);
	font-family: var(--wp--preset--font-family--jost);
	font-size: .875rem;
	padding: 10px 18px;
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(22, 21, 42, .22);
	transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
	pointer-events: none;
}
.wc-block-components-product-image > a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 4px;
	background: linear-gradient(180deg, rgba(22, 21, 42, 0) 55%, rgba(22, 21, 42, .35) 100%);
	opacity: 0;
	transition: opacity .45s ease;
	pointer-events: none;
}
.wc-block-product:hover .wc-block-components-product-image > a::after,
.wc-block-components-product-image > a:focus-visible::after { opacity: 1; transform: translate(-50%, 0); z-index: 2; }
.wc-block-product:hover .wc-block-components-product-image > a::before { opacity: 1; }
.wc-block-product .wp-block-post-title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size .5s ease;
	text-decoration: none !important;
}
.wc-block-product:hover .wp-block-post-title a { background-size: 100% 1px; }

/* =========================================================
   Fiche produit
   ========================================================= */
/* Arrivée en cascade des informations, photo qui s'installe */
.single-product .sll-infos > * { animation: sll-monte .8s cubic-bezier(.2, .8, .2, 1) both; }
.single-product .sll-infos > *:nth-child(1) { animation-delay: .1s; }
.single-product .sll-infos > *:nth-child(2) { animation-delay: .2s; }
.single-product .sll-infos > *:nth-child(3) { animation-delay: .3s; }
.single-product .sll-infos > *:nth-child(4) { animation-delay: .4s; }
.single-product .sll-infos > *:nth-child(5) { animation-delay: .5s; }
.single-product .sll-infos > *:nth-child(n+6) { animation-delay: .6s; }
.single-product .sll-galerie { animation: sll-installe-doux 1.2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sll-installe-doux {
	from { opacity: 0; transform: scale(.98); }
	to   { opacity: 1; transform: none; }
}

/* Les informations suivent pendant qu'on regarde les photos (ordinateur) */
@media (min-width: 782px) {
	.single-product .sll-infos { position: sticky; top: 40px; align-self: flex-start; }
	.admin-bar.single-product .sll-infos { top: 72px; }
}

/* Galerie : grande photo arrondie, vignettes nettes */
.single-product .woocommerce-product-gallery { position: relative; }
.single-product .woocommerce-product-gallery__image img { border-radius: 6px; }
.single-product .woocommerce-product-gallery .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 12px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs li { width: auto !important; margin: 0 !important; float: none !important; }
.single-product .woocommerce-product-gallery .flex-control-thumbs img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
	opacity: .55;
	cursor: pointer;
	transition: opacity .3s ease, transform .3s ease;
}
.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: .9; transform: translateY(-2px); }
.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--wp--preset--color--nuit); outline-offset: 2px; }
.single-product .woocommerce-product-gallery__trigger {
	background: var(--wp--preset--color--ivoire) !important;
	box-shadow: 0 4px 14px rgba(22, 21, 42, .2);
	z-index: 3;
}

/* Pastilles sous le prix */
.sll-pastilles-info { gap: 8px !important; }
.sll-pastilles-info p {
	margin: 0;
	font-size: .8125rem;
	padding: 6px 14px;
	border: 1px solid var(--wp--preset--color--trait-fonce);
	border-radius: 999px;
	color: var(--wp--preset--color--gris-doux);
}

/* Bouton d'ajout au panier : plus présent, petit reflet au survol */
.single-product .single_add_to_cart_button {
	position: relative;
	overflow: hidden;
	min-width: 240px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.single-product .single_add_to_cart_button::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, rgba(255, 241, 207, 0), rgba(255, 241, 207, .35), rgba(255, 241, 207, 0));
	transform: skewX(-20deg);
	transition: left .7s ease;
}
.single-product .single_add_to_cart_button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 21, 42, .25); }
.single-product .single_add_to_cart_button:hover::after { left: 120%; }

/* Barre d'achat qui apparaît quand le bouton principal sort de l'écran */
.sll-barre-achat {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	background: var(--wp--preset--color--nuit);
	color: var(--wp--preset--color--ivoire);
	box-shadow: 0 -10px 30px rgba(22, 21, 42, .25);
	transform: translateY(110%);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.sll-barre-achat.est-visible { transform: none; }
.sll-barre-achat__interieur {
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px clamp(1rem, 3vw, 1.5rem);
	display: flex;
	align-items: center;
	gap: 16px;
}
.sll-barre-achat img { width: 52px; height: 52px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.sll-barre-achat__texte { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.sll-barre-achat__nom {
	font-family: var(--wp--preset--font-family--cormorant);
	font-size: 1.25rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sll-barre-achat__prix { font-size: .9375rem; color: var(--wp--preset--color--texte-nuit); }
.sll-barre-achat button {
	flex: 0 0 auto;
	min-height: 46px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--or-clair);
	color: var(--wp--preset--color--nuit);
	font-family: var(--wp--preset--font-family--jost);
	font-size: .9375rem;
	font-weight: 500;
	cursor: pointer;
	transition: transform .25s ease;
}
.sll-barre-achat button:hover { transform: translateY(-2px); }
@media (max-width: 480px) {
	.sll-barre-achat img { display: none; }
	.sll-barre-achat button { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.single-product .sll-infos > *, .single-product .sll-galerie { animation: none !important; }
	.sll-barre-achat { transition: none; }
	.wc-block-components-product-image > a::after { transition: none; }
}

/* Fiche produit : la galerie occupe toute sa colonne */
.sll-galerie .woocommerce-product-gallery,
.sll-galerie .wp-block-woocommerce-product-image-gallery,
.sll-galerie .woocommerce-product-gallery .flex-viewport { width: 100% !important; max-width: none !important; float: none !important; }
.sll-galerie .woocommerce-product-gallery__image img { width: 100% !important; height: auto; }

/* Suggestions : 3 grandes cartes */
.sll-suggestions .wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 40px 28px !important;
}
.sll-suggestions .wc-block-product { width: auto !important; margin: 0 !important; }
.sll-suggestions .wp-block-post-title { font-size: 1.5rem !important; }
@media (max-width: 781px) {
	.sll-suggestions .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px 14px !important; }
	.sll-suggestions .wc-block-product:nth-child(3) { display: none; }
}

/* --- Héros : constellations discrètes (Cassiopée, Grande Ourse, Lyre) --- */
.wp-block-columns.sll-hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 50%;
	z-index: 0;
	pointer-events: none;
	background: url("assets/img/constellations.svg") center / cover no-repeat;
}
@media (max-width: 781px) {
	.wp-block-columns.sll-hero::before { width: 100%; bottom: auto; height: 62%; }
}

/* Fiche produit : photos à leurs vraies proportions (pas de bandes vides, pas de recadrage) */
.sll-galerie .woocommerce-product-gallery__image img,
.sll-galerie .woocommerce-product-gallery__image a img {
	aspect-ratio: auto;
	height: auto !important;
}

/* Suggestions : photos carrées, cartes compactes comme dans la boutique */
.sll-suggestions .wc-block-components-product-image img { aspect-ratio: 1 / 1 !important; }
.sll-suggestions .wc-block-product-template { max-width: 1080px; margin-inline: auto !important; }

/* =========================================================
   Boutons « stellaires » : halo doré + étincelles (JS)
   ========================================================= */
.sll-etincelle {
	position: fixed;
	z-index: 9999;
	pointer-events: none;
	color: #E6C98A;
	text-shadow: 0 0 6px rgba(230, 201, 138, .9), 0 0 12px rgba(216, 184, 120, .6);
	line-height: 1;
	will-change: transform, opacity;
}
.wp-block-button__link:hover,
.wc-block-components-product-button__button:hover,
.single-product .single_add_to_cart_button:hover {
	box-shadow: 0 0 0 1px rgba(216, 184, 120, .55), 0 8px 22px rgba(216, 184, 120, .28), 0 0 26px rgba(216, 184, 120, .22) !important;
}

/* Pas de loupe au survol (WooCommerce l'impose aux thèmes bloc) : on la masque */
.single-product .woocommerce-product-gallery .zoomImg { display: none !important; }

/* Suggestions (ordinateur) : prix à taille normale */
.sll-suggestions .wc-block-components-product-price,
.sll-suggestions .wp-block-woocommerce-product-price { font-size: 1.0625rem !important; }

/* Engagements : titre et texte rapprochés */
.sll-engagements .wp-block-column > * + * { margin-top: .35rem !important; }

/* =========================================================
   TÉLÉPHONE (moins de 782 px)
   ========================================================= */
@media (max-width: 781px) {

	/* --- Marges latérales réduites (on gagne de la place) --- */
	:root, body, .wp-site-blocks {
		--wp--style--root--padding-left: 12px !important;
		--wp--style--root--padding-right: 12px !important;
	}

	/* --- Bandeau d'annonce : une seule ligne --- */
	.sll-annonce { font-size: .6875rem !important; letter-spacing: .03em !important; padding-top: 8px !important; padding-bottom: 8px !important; }

	/* --- En-tête : logo à gauche, icônes puis menu ☰ à droite --- */
	header .wp-block-group.alignwide { flex-wrap: nowrap !important; gap: 4px !important; }
	header .sll-logo { order: 1; margin-right: auto; }
	header .wp-block-group.alignwide > .wp-block-group:last-child { order: 2; gap: 0 !important; }
	header .wp-block-navigation { order: 3; }
	header .wp-block-site-title { font-size: 1.5rem !important; }
	header .sll-lune { width: 28px; height: 28px; }
	header .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }

	/* --- Accueil : héros plus compact --- */
	body.home main.wp-block-group { padding-top: 0 !important; }
	/* Héros pleine largeur, collé aux bords de l'écran */
	.wp-block-columns.sll-hero,
	.wp-block-columns.sll-hero.has-background {
		border-radius: 0 !important;
		margin-left: -12px !important;
		margin-right: -12px !important;
		width: calc(100% + 24px) !important;
		max-width: none !important;
	}
	.sll-hero > .wp-block-column:first-child { padding: 36px 20px 32px !important; }
	.sll-hero h1 { font-size: 2.35rem !important; }
	.wp-block-columns.sll-hero { flex-direction: column-reverse !important; }
	.sll-hero .sll-hero-image { position: relative; }
	.sll-hero .sll-hero-image a { display: block; width: 100%; }
	.sll-hero .sll-hero-image img { min-height: 0; width: 100% !important; height: 230px !important; }
	.sll-hero .sll-hero-image::after {
		content: "";
		position: absolute;
		left: 0; right: 0; bottom: -1px;
		height: 60%;
		background: linear-gradient(180deg, rgba(22, 21, 42, 0) 0%, rgba(22, 21, 42, .65) 55%, #16152A 100%);
		pointer-events: none;
	}
	.sll-hero > .wp-block-column:first-child { padding-top: 8px !important; }
	.wp-block-columns.sll-hero::before { opacity: .45; top: auto !important; bottom: 0 !important; height: 62% !important; }

	/* --- Accueil : collections en mosaïque photo (1 grande + 2 côte à côte), titres sur les photos --- */
	.wp-block-columns.sll-collection {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px !important;
	}
	.wp-block-columns.sll-collection > .wp-block-column {
		position: relative;
		margin: 0 !important;
		border-radius: 6px;
		overflow: hidden;
	}
	.wp-block-columns.sll-collection > .wp-block-column:first-child { grid-column: 1 / -1; }
	.wp-block-columns.sll-collection > .wp-block-column > * { margin: 0 !important; }
	.sll-collection figure img { aspect-ratio: 1 / 1 !important; border-radius: 0 !important; display: block; }
	.sll-collection > .wp-block-column:first-child figure img { aspect-ratio: 16 / 10 !important; }
	.wp-block-columns.sll-collection > .wp-block-column::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(22, 21, 42, 0) 40%, rgba(22, 21, 42, .78) 100%);
		pointer-events: none;
	}
	.sll-collection h3 {
		position: absolute;
		left: 14px;
		right: 12px;
		bottom: 12px;
		z-index: 1;
		font-size: 1.2rem !important;
		line-height: 1.1 !important;
	}
	.sll-collection > .wp-block-column:first-child h3 { font-size: 1.7rem !important; left: 18px; bottom: 16px; }
	.sll-collection h3 a { color: var(--wp--preset--color--ivoire) !important; background-image: none !important; }
	.sll-collection h3 a::after {
		content: "Découvrir  →";
		display: block;
		margin-top: 6px;
		font-family: var(--wp--preset--font-family--jost);
		font-size: .6875rem;
		letter-spacing: .16em;
		text-transform: uppercase;
		color: var(--wp--preset--color--or-clair);
	}

	/* --- Accueil : sections moins espacées --- */
	body.home main > .wp-block-group.alignwide,
	body.home main > .wp-block-columns.alignwide:not(.sll-hero) { margin-top: 3.5rem !important; }
	body.home main > .sll-hero { margin-top: 0 !important; }
	body.home h2.wp-block-heading { font-size: 2rem !important; }

	/* --- Listes de produits : un seul produit par ligne, en grand --- */
	.wc-block-product-template,
	.sll-grille-boutique .wc-block-product-template,
	.sll-suggestions .wc-block-product-template {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 40px !important;
	}
	.wc-block-product { width: auto !important; margin: 0 !important; }
	.sll-suggestions .wc-block-product:nth-child(3) { display: block; }
	.wc-block-product .wc-block-components-product-image img { aspect-ratio: 1 / 1 !important; }
	.wc-block-product .wp-block-post-title { font-size: 1.5rem !important; }
	.wc-block-product .sll-surtitre { font-size: .75rem; letter-spacing: .14em; }
	.wc-block-product .wc-block-components-product-button { width: 100% !important; align-items: stretch !important; }
	.wc-block-product .wc-block-components-product-button__button { width: 100% !important; min-height: 48px; justify-content: center; }
	/* pas de « Voir la création » sur écran tactile */
	.wc-block-components-product-image > a::after,
	.wc-block-components-product-image > a::before { display: none; }

	/* --- Boutique : filtres qui passent à la ligne (pas de défilement latéral) --- */
	.sll-pastilles { gap: 8px !important; }
	.sll-pastilles .wp-block-button__link { min-height: 40px; padding: .45rem 1rem !important; font-size: .8125rem !important; }
	.wp-block-cover.alignfull { min-height: 170px !important; }
	.wp-site-blocks > main, .wp-site-blocks > .wp-block-cover + main { margin-top: 0 !important; }
	main.wp-block-group { padding-top: 20px !important; }

	/* --- Fiche produit : moins de vide avant le bouton panier --- */
	.single-product .sll-infos .wp-block-post-content > :last-child { margin-bottom: 0; }
	.single-product .sll-infos .wp-block-post-title { font-size: 2.4rem !important; }
	.single-product .wc-block-add-to-cart-form, .single-product form.cart { margin-top: .5rem !important; }
	.single-product .single_add_to_cart_button { min-width: 0; flex: 1 1 auto; }
	.single-product form.cart { display: flex; gap: 10px; }

	/* --- Pied de page : plus serré --- */
	.sll-pied { padding-top: 44px !important; }
	.sll-pied .wp-block-columns { gap: 28px !important; }
	.sll-pied .wp-block-column > p:first-child { margin-bottom: .25rem; }
}

/* Fiche produit : en-tête (catégorie, titre, prix) réservé au téléphone */
.sll-entete-mobile { display: none; }
@media (max-width: 781px) {
	.single-product main.wp-block-group { padding-top: 12px !important; }
	.single-product main .wc-block-breadcrumbs,
	.single-product main .woocommerce-breadcrumb { display: none !important; }
	.sll-entete-mobile { display: block; margin: 0 0 14px !important; }
	.sll-entete-mobile .wp-block-post-title { font-size: 2.1rem !important; line-height: 1.05; margin: .2rem 0 .3rem !important; }
	.sll-entete-mobile .wc-block-components-product-price,
	.sll-entete-mobile .wp-block-woocommerce-product-price { font-size: 1.35rem !important; }
	/* on ne répète pas catégorie, titre et prix dans la colonne d'infos */
	.single-product .sll-infos > .wp-block-post-terms,
	.single-product .sll-infos > .wp-block-post-title,
	.single-product .sll-infos > .wp-block-woocommerce-product-price { display: none !important; }
	.single-product .wp-block-columns { margin-top: 0 !important; gap: 18px !important; }
	/* photos à leurs vraies proportions : plus de bandes vides */
	.sll-galerie .woocommerce-product-gallery__image img,
	.sll-galerie .woocommerce-product-gallery__image a img { aspect-ratio: auto !important; background: none !important; }
	.single-product .woocommerce-product-gallery .flex-control-thumbs { gap: 8px; margin-top: 8px !important; }
	/* moins de vide sous les vignettes */
	.single-product .woocommerce-product-gallery { margin-bottom: 0 !important; }
	.single-product .wp-block-columns { gap: 14px !important; }
	.single-product .sll-infos { padding-top: 0 !important; }
	.single-product .sll-infos > .sll-pastilles-info { margin-top: 0 !important; }
}

/* Pastilles de la fiche produit : icônes au trait + bordure « couture » */
.sll-pastilles-info p {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px 7px 11px;
	border: 1px dashed var(--wp--preset--color--trait-fonce);
	background: rgba(255, 255, 255, .35);
}
.sll-pastilles-info p::before {
	content: "";
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	background-color: var(--wp--preset--color--or);
	-webkit-mask: var(--sll-icone) center / contain no-repeat;
	mask: var(--sll-icone) center / contain no-repeat;
}
.sll-pastilles-info p:nth-child(1) { --sll-icone: url("assets/img/icone-aiguille.svg"); }
.sll-pastilles-info p:nth-child(2) { --sll-icone: url("assets/img/icone-ciseaux.svg"); }

/* =========================================================
   Bandeau « ciel étoilé » réutilisable (boutique, collections)
   ========================================================= */
.sll-ciel {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
/* étoiles qui scintillent */
.sll-ciel::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		radial-gradient(2px 2px at 12% 18%, rgba(255, 241, 207, .9), transparent 60%),
		radial-gradient(2px 2px at 78% 12%, rgba(255, 241, 207, .8), transparent 60%),
		radial-gradient(3px 3px at 64% 72%, rgba(216, 184, 120, .9), transparent 60%),
		radial-gradient(2px 2px at 30% 82%, rgba(255, 241, 207, .7), transparent 60%),
		radial-gradient(2px 2px at 90% 48%, rgba(255, 241, 207, .8), transparent 60%),
		radial-gradient(3px 3px at 44% 34%, rgba(216, 184, 120, .7), transparent 60%),
		radial-gradient(2px 2px at 22% 58%, rgba(255, 241, 207, .8), transparent 60%),
		radial-gradient(2px 2px at 52% 8%, rgba(255, 241, 207, .9), transparent 60%);
	background-size: 260px 260px;
	animation: sll-ciel 5s ease-in-out infinite alternate;
}
/* constellations, côté droit */
.sll-ciel::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(620px, 60%);
	z-index: 0;
	pointer-events: none;
	background: url("assets/img/constellations.svg") center / cover no-repeat;
	opacity: .9;
}
.sll-ciel > * { position: relative; z-index: 1; }
/* étoile filante */
.sll-ciel > .sll-ciel__contenu::before {
	content: "";
	position: absolute;
	top: 10%;
	left: 35%;
	width: 140px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(255, 241, 207, 0), rgba(255, 241, 207, .95));
	box-shadow: 0 0 8px rgba(255, 241, 207, .8);
	opacity: 0;
	pointer-events: none;
	animation: sll-filante 10s ease-in 1.5s infinite;
}
.sll-ciel__contenu > * { animation: sll-monte .9s cubic-bezier(.2, .8, .2, 1) both; }
.sll-ciel__contenu > *:nth-child(2) { animation-delay: .12s; }
.sll-ciel__contenu > *:nth-child(3) { animation-delay: .24s; }
.sll-ciel__contenu > *:nth-child(4) { animation-delay: .36s; }
.sll-ciel .wc-block-breadcrumbs a, .sll-ciel .woocommerce-breadcrumb a { color: var(--wp--preset--color--ivoire-fonce); }
.sll-ciel .wp-block-term-description p { margin: 0; }
@media (prefers-reduced-motion: reduce) {
	.sll-ciel::before, .sll-ciel > .sll-ciel__contenu::before, .sll-ciel__contenu > * { animation: none !important; }
}
@media (max-width: 781px) {
	.sll-ciel::after { width: 100%; opacity: .5; }
	.sll-ciel .wp-block-query-title { font-size: 2.6rem !important; }
}

/* Section « Explorer les autres collections » : tuiles plus basses */
.sll-autres-collections .sll-collection figure img { aspect-ratio: 4 / 3 !important; }

/* =========================================================
   Fonds animés : constellations qui dérivent doucement
   ========================================================= */
@keyframes sll-derive {
	0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
	50%  { transform: translate(-18px, 10px) rotate(1.2deg) scale(1.03); }
	100% { transform: translate(12px, -8px) rotate(-1deg) scale(1.01); }
}
.wp-block-columns.sll-hero::before,
.sll-ciel::after {
	animation: sll-derive 38s ease-in-out infinite alternate;
	transform-origin: 60% 40%;
}

/* =========================================================
   Une ambiance par collection (en-tête)
   ========================================================= */
/* Plumes d'écriture : nuit + plumes qui tombent en se balançant */
body.term-plumes-decriture .sll-ciel.has-nuit-background-color { background-color: #15162B !important; }
body.term-plumes-decriture .sll-ciel::before { display: none; }

/* Sceaux de cire : bordeaux + sceaux dorés qui flottent */
body.term-sceau-de-cire .sll-ciel.has-nuit-background-color { background-color: #3A1421 !important; }
body.term-sceau-de-cire .sll-ciel::before { display: none; }

/* Pochettes & boutonnières : vert jardin + pétales et feuilles qui tombent */
body.term-pochettes-et-boutonnieres .sll-ciel.has-nuit-background-color { background-color: #1B2A22 !important; }
body.term-pochettes-et-boutonnieres .sll-ciel::before { display: none; }

/* Le décor animé de la collection occupe toute la largeur du bandeau */
body.term-plumes-decriture .sll-ciel::after,
body.term-sceau-de-cire .sll-ciel::after,
body.term-pochettes-et-boutonnieres .sll-ciel::after {
	width: 100%;
	opacity: 1;
	animation: none;
	background-position: center;
	background-size: cover;
}
body.term-plumes-decriture .sll-ciel::after { background-image: url("assets/img/theme-plumes.svg?v=2"); }
body.term-sceau-de-cire .sll-ciel::after { background-image: url("assets/img/theme-sceaux.svg?v=2"); }
body.term-pochettes-et-boutonnieres .sll-ciel::after { background-image: url("assets/img/theme-petales.svg?v=2"); }

/* Pas d'étoile filante dans ces trois univers */
body.term-plumes-decriture .sll-ciel__contenu::before,
body.term-sceau-de-cire .sll-ciel__contenu::before,
body.term-pochettes-et-boutonnieres .sll-ciel__contenu::before { display: none; }

/* Léger voile côté texte pour garder une bonne lisibilité */
body.term-plumes-decriture .sll-ciel__contenu,
body.term-sceau-de-cire .sll-ciel__contenu,
body.term-pochettes-et-boutonnieres .sll-ciel__contenu {
	text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-columns.sll-hero::before, .sll-ciel::after { animation: none !important; }
}
@media (max-width: 781px) {
	body.term-plumes-decriture .sll-ciel::after,
	body.term-sceau-de-cire .sll-ciel::after,
	body.term-pochettes-et-boutonnieres .sll-ciel::after { background-size: 820px auto; background-position: center top; }
}
/* Sceaux de cire : la bougie est à droite, on la garde visible sur téléphone */
@media (max-width: 781px) {
	body.term-sceau-de-cire .sll-ciel::after { background-size: auto 100%; background-position: 92% center; opacity: .8; }
}

/* =========================================================
   Accueil : le ciel tourne autour de l'étoile Polaire
   (sens réel, environ 4 minutes par tour au lieu de 24 h)
   ========================================================= */
@keyframes sll-rotation-ciel {
	from { transform: rotate(0deg); }
	to   { transform: rotate(-360deg); }
}
.wp-block-columns.sll-hero::before {
	width: 1400px !important;
	height: 1400px !important;
	left: calc(43% - 700px) !important;
	top: calc(22% - 700px) !important;
	bottom: auto !important;
	background: url("assets/img/ciel-tournant.svg?v=2") center / contain no-repeat !important;
	opacity: .3;
	transform-origin: 50% 50% !important;
	animation: sll-rotation-ciel 240s linear infinite !important;
}
@media (max-width: 781px) {
	.wp-block-columns.sll-hero::before {
		width: 1100px !important;
		height: 1100px !important;
		left: calc(78% - 550px) !important;
		top: calc(52% - 550px) !important;
		opacity: .22;
	}
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-columns.sll-hero::before { animation: none !important; }
}

/* Étoiles filantes aléatoires (créées par animations.js) */
.sll-filante {
	position: absolute;
	z-index: 2;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(255, 241, 207, 0), rgba(255, 241, 207, .95));
	box-shadow: 0 0 8px rgba(255, 241, 207, .8);
	transform-origin: 0 50%;
	pointer-events: none;
	opacity: 0;
}
/* quand le script gère les étoiles filantes, on coupe les anciennes (toujours identiques) */
.sll-filantes-js .wp-block-columns.sll-hero::after,
.sll-filantes-js .sll-ciel > .sll-ciel__contenu::before { display: none !important; }

/* =========================================================
   Sceaux de cire : vraie photo de bougie + flamme animée
   ========================================================= */
body.term-sceau-de-cire .sll-ciel.has-nuit-background-color { background-color: #300C15 !important; }
body.term-sceau-de-cire .sll-ciel::after { display: none !important; }
.sll-bougie {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	aspect-ratio: 2 / 1;
	z-index: 0 !important;
	pointer-events: none;
	background: url("assets/img/bougie-sceaux.jpg?v=1") center / 100% 100% no-repeat;
}
/* fondu vers la gauche pour se mêler au bandeau */
.sll-bougie::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, #300C15 0%, rgba(48, 12, 21, .85) 22%, rgba(48, 12, 21, 0) 48%);
}
/* halo chaud qui respire autour de la flamme */
.sll-bougie__halo {
	position: absolute;
	left: 61%;
	top: -6%;
	width: 26%;
	height: 60%;
	background: radial-gradient(closest-side, rgba(255, 200, 120, .32), rgba(255, 170, 90, .1) 55%, rgba(255, 170, 90, 0));
	mix-blend-mode: screen;
	animation: sll-halo-bougie 2.6s ease-in-out infinite alternate;
}
/* fragment de la photo centré sur la flamme, qui ondule */
.sll-bougie__flamme {
	position: absolute;
	left: 71%;
	top: 8%;
	width: 5%;
	height: 28%;
	background: url("assets/img/bougie-sceaux.jpg?v=1") 74.7% 11.1% / 2000% 357% no-repeat;
	transform-origin: 50% 92%;
	-webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
	mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
	animation: sll-flamme-photo 1.9s ease-in-out infinite;
}
@keyframes sll-flamme-photo {
	0%   { transform: scale(1, 1) skewX(0deg); filter: brightness(1); }
	20%  { transform: scale(.97, 1.05) skewX(2.5deg); filter: brightness(1.08); }
	45%  { transform: scale(1.02, .97) skewX(-2deg); filter: brightness(.96); }
	70%  { transform: scale(.98, 1.04) skewX(1.5deg); filter: brightness(1.05); }
	100% { transform: scale(1, 1) skewX(0deg); filter: brightness(1); }
}
@keyframes sll-halo-bougie {
	0%   { opacity: .75; transform: scale(.97); }
	35%  { opacity: 1; transform: scale(1.03); }
	60%  { opacity: .85; transform: scale(.99); }
	100% { opacity: .95; transform: scale(1.02); }
}
@media (max-width: 781px) {
	.sll-bougie::before { background: linear-gradient(90deg, rgba(48, 12, 21, .9) 0%, rgba(48, 12, 21, .65) 55%, rgba(48, 12, 21, .15) 80%); }
}
@media (prefers-reduced-motion: reduce) {
	.sll-bougie__halo, .sll-bougie__flamme { animation: none; }
}
/* lueur ambiante qui vacille (la flamme éclaire la bougie et la pièce) */
.sll-bougie::after {
	content: "";
	position: absolute;
	left: 20%;
	top: -40%;
	width: 110%;
	height: 160%;
	background: radial-gradient(closest-side at 50% 30%, rgba(255, 190, 110, .2), rgba(255, 160, 90, .07) 50%, rgba(255, 160, 90, 0) 80%);
	mix-blend-mode: screen;
	animation: sll-lueur 3.7s steps(1, end) infinite, sll-lueur-douce 5.3s ease-in-out infinite alternate;
}
@keyframes sll-lueur {
	0%   { opacity: .85; }
	12%  { opacity: 1; }
	19%  { opacity: .8; }
	33%  { opacity: .95; }
	41%  { opacity: .78; }
	58%  { opacity: 1; }
	66%  { opacity: .88; }
	81%  { opacity: .97; }
	90%  { opacity: .82; }
}
@keyframes sll-lueur-douce {
	from { transform: translateX(-1.5%) scale(.98); }
	to   { transform: translateX(1.5%) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { .sll-bougie::after { animation: none; } }
@media (max-width: 781px) {
	.sll-bougie { right: -38%; }
}
@media (min-width: 782px) {
	/* bougie alignée sur le bord droit du contenu, pas collée au bord de l'écran */
	.sll-bougie { right: calc(max(0px, (100% - 1240px) / 2) + 3%); }
	.sll-bougie::before { background: linear-gradient(90deg, #300C15 0%, rgba(48, 12, 21, .85) 22%, rgba(48, 12, 21, 0) 48%, rgba(48, 12, 21, 0) 88%, #300C15 100%); }
}
/* bords de la photo fondus dans le bandeau (plus de contour rectangulaire) */
.sll-bougie {
	-webkit-mask: radial-gradient(ellipse 58% 78% at 66% 52%, #000 52%, transparent 100%);
	mask: radial-gradient(ellipse 58% 78% at 66% 52%, #000 52%, transparent 100%);
}

/* Sceaux de cire : la lumière de la bougie éclaire le texte à gauche */
body.term-sceau-de-cire .sll-ciel::before {
	display: block !important;
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(ellipse 75% 120% at 72% 30%, rgba(255, 185, 105, .16) 0%, rgba(255, 160, 90, .07) 45%, rgba(255, 160, 90, 0) 75%) !important;
	background-size: 100% 100% !important;
	mix-blend-mode: screen;
	animation: sll-lueur 3.7s steps(1, end) infinite, sll-nappe 6.1s ease-in-out infinite alternate !important;
}
@keyframes sll-nappe {
	0%   { transform: translateX(0) scale(1); }
	50%  { transform: translateX(-2%) scale(1.04); }
	100% { transform: translateX(1%) scale(.98); }
}
body.term-sceau-de-cire .sll-ciel__contenu .wp-block-query-title,
body.term-sceau-de-cire .sll-ciel__contenu .wp-block-term-description,
body.term-sceau-de-cire .sll-ciel__contenu .sll-surtitre {
	animation: sll-texte-eclaire 3.7s steps(1, end) infinite, sll-monte .9s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes sll-texte-eclaire {
	0%   { filter: brightness(1); text-shadow: 0 0 14px rgba(255, 190, 110, .18), 0 1px 12px rgba(0, 0, 0, .35); }
	12%  { filter: brightness(1.08); text-shadow: 0 0 18px rgba(255, 190, 110, .3), 0 1px 12px rgba(0, 0, 0, .35); }
	19%  { filter: brightness(.96); text-shadow: 0 0 12px rgba(255, 190, 110, .14), 0 1px 12px rgba(0, 0, 0, .35); }
	33%  { filter: brightness(1.05); text-shadow: 0 0 16px rgba(255, 190, 110, .26), 0 1px 12px rgba(0, 0, 0, .35); }
	41%  { filter: brightness(.95); text-shadow: 0 0 11px rgba(255, 190, 110, .12), 0 1px 12px rgba(0, 0, 0, .35); }
	58%  { filter: brightness(1.09); text-shadow: 0 0 19px rgba(255, 190, 110, .32), 0 1px 12px rgba(0, 0, 0, .35); }
	66%  { filter: brightness(1); text-shadow: 0 0 14px rgba(255, 190, 110, .2), 0 1px 12px rgba(0, 0, 0, .35); }
	81%  { filter: brightness(1.06); text-shadow: 0 0 17px rgba(255, 190, 110, .27), 0 1px 12px rgba(0, 0, 0, .35); }
	90%  { filter: brightness(.97); text-shadow: 0 0 12px rgba(255, 190, 110, .15), 0 1px 12px rgba(0, 0, 0, .35); }
}
body.term-sceau-de-cire .sll-ciel__contenu .wp-block-query-title { color: #FFF3DF !important; }
@media (prefers-reduced-motion: reduce) {
	body.term-sceau-de-cire .sll-ciel::before,
	body.term-sceau-de-cire .sll-ciel__contenu > * { animation: none !important; }
}
@media (min-width: 782px) {
	/* bougie un peu plus à droite (entre le bord du contenu et le bord de l'écran) */
	.sll-bougie { right: calc(max(0px, (100% - 1240px) / 2) - 2.5%); }
}
/* fondu recentré sur la bougie : s'estompe avant les bords gauche ET droit de la photo */
.sll-bougie {
	-webkit-mask: radial-gradient(ellipse 27% 74% at 72% 50%, #000 58%, transparent 100%);
	mask: radial-gradient(ellipse 27% 74% at 72% 50%, #000 58%, transparent 100%);
}

/* =========================================================
   Plumes d'écriture : plume magique qui écrit une arabesque dorée
   ========================================================= */
body.term-plumes-decriture .sll-ciel::after { display: none !important; }
.sll-plume-scene {
	position: absolute;
	inset: 0;
	z-index: 0 !important;
	pointer-events: none;
	overflow: hidden;
}
.sll-plume-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sll-plume-trait {
	fill: none;
	stroke: #E6C98A;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	filter: drop-shadow(0 0 3px rgba(230, 201, 138, .9)) drop-shadow(0 0 10px rgba(216, 184, 120, .45));
}
.sll-plume-trait--brille { animation: sll-trait-brille 1.8s ease-in-out; }
@keyframes sll-trait-brille {
	0%, 100% { filter: drop-shadow(0 0 3px rgba(230, 201, 138, .9)) drop-shadow(0 0 10px rgba(216, 184, 120, .45)); }
	50% { filter: drop-shadow(0 0 6px rgba(255, 236, 190, 1)) drop-shadow(0 0 22px rgba(230, 201, 138, .75)); }
}
.sll-plume-magique {
	position: absolute;
	left: 0;
	top: 0;
	width: 250px;
	aspect-ratio: 520 / 432;
	opacity: 0;
	background: url("assets/img/plume-magique.jpg?v=1") center / 100% 100% no-repeat;
	mix-blend-mode: screen;
	-webkit-mask: radial-gradient(ellipse 55% 55% at 55% 45%, #000 55%, transparent 100%);
	mask: radial-gradient(ellipse 55% 55% at 55% 45%, #000 55%, transparent 100%);
	transform-origin: 7.3% 92%;
	will-change: transform;
}
.sll-encre {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #FFE9B8;
	box-shadow: 0 0 6px 1px rgba(230, 201, 138, .9);
	pointer-events: none;
}
@media (max-width: 781px) {
	.sll-plume-magique { width: 160px; }
	.sll-plume-trait { stroke-width: 1.4; }
}
@media (max-width: 781px) {
	/* place pour la plume qui écrit, sous le texte */
	body.term-plumes-decriture .sll-ciel { padding-bottom: 120px !important; }
}
/* trait doré et étincelles au-dessus de la plume ; le tout sous le texte */
.sll-plume-scene svg { z-index: 2; }
.sll-plume-magique { z-index: 1; }
.sll-encre { z-index: 3; }
/* correction : la plume passe AU-DESSUS du trait doré */
.sll-plume-scene svg { z-index: 1; }
.sll-plume-magique { z-index: 2; }
.sll-encre { z-index: 3; }
/* plume détourée : opaque, sans fondu (le trait passe vraiment dessous) */
.sll-plume-magique {
	background: url("assets/img/plume-magique.png?v=2") center / 100% 100% no-repeat !important;
	aspect-ratio: 360 / 302 !important;
	mix-blend-mode: normal !important;
	-webkit-mask: none !important;
	mask: none !important;
	transform-origin: 1.7% 97.7% !important;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}
/* plume un peu plus petite pour rester dans le bandeau */
.sll-plume-magique { width: 205px !important; }
@media (max-width: 781px) { .sll-plume-magique { width: 140px !important; } }

/* Féerie sur la lune une fois dessinée */
.sll-plume-trait { fill: #E6C98A; fill-opacity: 0; transition: fill-opacity 1.2s ease; }
.sll-plume-trait--feerique {
	fill-opacity: .13;
	animation: sll-lune-pulse 1.6s ease-in-out infinite alternate;
}
@keyframes sll-lune-pulse {
	from { filter: drop-shadow(0 0 3px rgba(230, 201, 138, .9)) drop-shadow(0 0 10px rgba(216, 184, 120, .4)); }
	to   { filter: drop-shadow(0 0 7px rgba(255, 236, 190, 1)) drop-shadow(0 0 26px rgba(230, 201, 138, .7)); }
}
.sll-feerie {
	position: absolute;
	z-index: 3;
	color: #FFE9B8;
	text-shadow: 0 0 6px rgba(255, 233, 184, .95), 0 0 14px rgba(230, 201, 138, .6);
	line-height: 1;
	pointer-events: none;
}
/* plume d'oie d'écriture (pointe métallique dorée) */
.sll-plume-magique {
	background-image: url("assets/img/plume-oie.png?v=1") !important;
	aspect-ratio: 340 / 283 !important;
	transform-origin: 1.8% 94.7% !important;
	width: 230px !important;
}
@media (max-width: 781px) { .sll-plume-magique { width: 150px !important; } }
/* éclat qui repasse sur le contour de la lune */
.sll-plume-reflet {
	fill: none;
	stroke: #FFF6DC;
	stroke-width: 3;
	stroke-linecap: round;
	filter: drop-shadow(0 0 4px rgba(255, 246, 220, 1)) drop-shadow(0 0 12px rgba(230, 201, 138, .9));
}
/* Plumes d'écriture : la plume peut passer au-dessus de l'interface (vers le haut),
   mais reste coupée sur les côtés (pas de défilement horizontal) */
body.term-plumes-decriture .sll-ciel { overflow-x: clip !important; overflow-y: visible !important; z-index: 5; }
body.term-plumes-decriture .sll-plume-scene { overflow: visible !important; }

/* Écriture « Sur la Lune » à la plume */
@font-face {
	font-family: "Great Vibes";
	src: url("assets/fonts/great-vibes-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
.sll-plume-texte {
	font-family: "Great Vibes", cursive;
	fill: #F3DDA8;
	stroke: #E6C98A;
	stroke-width: .4;
	filter: drop-shadow(0 0 3px rgba(230, 201, 138, .9)) drop-shadow(0 0 10px rgba(216, 184, 120, .5));
	opacity: 0;
}
@media (max-width: 781px) {
	body.term-plumes-decriture .sll-ciel { padding-bottom: 150px !important; }
}
@media (max-width: 781px) {
	/* téléphone : la plume écrit doucement dans le coin, pas en dessous */
	body.term-plumes-decriture .sll-ciel { padding-bottom: clamp(2.5rem, 6vw, 4.5rem) !important; }
	.sll-plume-magique { width: 92px !important; }
	.sll-plume-trait { stroke-width: 1.2; }
	body.term-plumes-decriture .sll-ciel__contenu { padding-right: 0; }
	body.term-plumes-decriture .sll-ciel__contenu .wc-block-breadcrumbs, body.term-plumes-decriture .sll-ciel__contenu .sll-surtitre { max-width: 55%; }
}

/* Accueil : icônes des engagements (médaillon « couture ») */
.sll-engagements .wp-block-column::before {
	content: "";
	display: block;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
	border-radius: 50%;
	border: 1px dashed var(--wp--preset--color--trait-fonce);
	background: rgba(255, 255, 255, .45) center / 26px 26px no-repeat;
}
.sll-engagements .wp-block-column:nth-child(1)::before { background-image: url("assets/img/icone-aiguille-or.svg"); }
.sll-engagements .wp-block-column:nth-child(2)::before { background-image: url("assets/img/icone-metre-or.svg"); }
.sll-engagements .wp-block-column:nth-child(3)::before { background-image: url("assets/img/icone-alliances-or.svg"); }
@media (max-width: 781px) {
	/* téléphone : médaillon à gauche du texte */
	.sll-engagements .wp-block-column {
		display: grid !important;
		grid-template-columns: 46px 1fr;
		column-gap: 14px;
		align-items: start;
	}
	.sll-engagements .wp-block-column::before { grid-row: 1 / span 2; width: 46px; height: 46px; margin: 0; background-size: 23px 23px; }
	.sll-engagements .wp-block-column > p { grid-column: 2; }
	.sll-engagements .wp-block-column > p + p { margin-top: .15rem !important; }
}

/* =========================================================
   Pochettes & boutonnières : rose réelle qui ondule + abeille
   ========================================================= */
body.term-pochettes-et-boutonnieres .sll-ciel.has-nuit-background-color { background-color: #142116 !important; }
body.term-pochettes-et-boutonnieres .sll-ciel::after { display: none !important; }
.sll-rose {
	position: absolute;
	top: 0;
	right: calc(max(0px, (100% - 1240px) / 2) - 2.5%);
	height: 100%;
	aspect-ratio: 2 / 1;
	z-index: 0 !important;
	pointer-events: none;
	background: url("assets/img/rose-boutonnieres.jpg?v=1") center / 100% 100% no-repeat;
	-webkit-mask: radial-gradient(ellipse 30% 78% at 70% 52%, #000 58%, transparent 100%);
	mask: radial-gradient(ellipse 30% 78% at 70% 52%, #000 58%, transparent 100%);
	transform-origin: 74% 100%;
	animation: sll-rose-brise 7s ease-in-out infinite alternate;
}
@keyframes sll-rose-brise {
	0%   { transform: rotate(-1deg); }
	50%  { transform: rotate(.6deg) translateY(-1px); }
	100% { transform: rotate(1.2deg); }
}
/* légère lumière chaude qui respire sur la rose */
.sll-rose::after {
	content: "";
	position: absolute;
	left: 52%;
	top: 8%;
	width: 34%;
	height: 60%;
	background: radial-gradient(closest-side, rgba(255, 214, 220, .16), rgba(255, 214, 220, 0));
	mix-blend-mode: screen;
	animation: sll-halo-bougie 4.5s ease-in-out infinite alternate;
}
@media (max-width: 781px) {
	.sll-rose { right: -42%; opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
	.sll-rose, .sll-rose::after { animation: none; }
}
/* L'abeille */
.sll-abeille {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2 !important;
	width: 46px;
	aspect-ratio: 240 / 198;
	pointer-events: none;
	will-change: transform;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
}
.sll-abeille__corps, .sll-abeille__ailes {
	position: absolute;
	inset: 0;
	background: center / 100% 100% no-repeat;
}
.sll-abeille__corps { background-image: url("assets/img/abeille-corps.png?v=2"); }
.sll-abeille__ailes {
	background-image: url("assets/img/abeille-ailes.png?v=2");
	transform-origin: 50% 40%;
	animation: sll-ailes 70ms linear infinite alternate;
}
.sll-abeille--posee .sll-abeille__ailes { animation-duration: 900ms; }
@keyframes sll-ailes {
	from { transform: scaleX(1) scaleY(1); opacity: .95; }
	to   { transform: scaleX(.72) scaleY(.9); opacity: .6; }
}
@media (max-width: 781px) { .sll-abeille { width: 34px; } }
@media (prefers-reduced-motion: reduce) { .sll-abeille__ailes { animation: none; } }
/* abeille : ombre qui dépend de la hauteur de vol, taille un peu plus grande */
.sll-abeille {
	width: 52px;
	filter: drop-shadow(0 var(--ombre-y, 6px) var(--ombre-flou, 4px) rgba(0, 0, 0, var(--ombre-op, .4)));
}
@media (max-width: 781px) { .sll-abeille { width: 38px; } }

/* Pochettes & boutonnières : l'abeille est retirée, place aux paillettes et aux halos */
.sll-abeille { display: none !important; }
.sll-paillette {
	position: absolute;
	z-index: 1;
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
}
.sll-paillette--or { background: #FFE6B0; box-shadow: 0 0 6px 1px rgba(255, 220, 150, .85); }
.sll-paillette--rose { background: #FFD3DC; box-shadow: 0 0 6px 1px rgba(255, 190, 205, .8); }
/* halo plus présent qui respire derrière la fleur */
.sll-rose::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 38%;
	height: 78%;
	background: radial-gradient(closest-side, rgba(255, 200, 210, .2), rgba(240, 190, 150, .08) 55%, rgba(240, 190, 150, 0));
	mix-blend-mode: screen;
	animation: sll-halo-rose 6s ease-in-out infinite alternate;
}
@keyframes sll-halo-rose {
	0%   { opacity: .55; transform: scale(.94); }
	50%  { opacity: 1; transform: scale(1.06); }
	100% { opacity: .7; transform: scale(.98); }
}
/* reflet de lumière qui passe de temps en temps sur les pétales */
.sll-rose::after {
	left: 55% !important;
	top: 10% !important;
	width: 28% !important;
	height: 48% !important;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0) 35%, rgba(255, 240, 230, .28) 50%, rgba(255, 255, 255, 0) 65%) !important;
	background-size: 250% 100% !important;
	-webkit-mask: radial-gradient(closest-side, #000 60%, transparent);
	mask: radial-gradient(closest-side, #000 60%, transparent);
	animation: sll-reflet-rose 9s ease-in-out infinite !important;
}
@keyframes sll-reflet-rose {
	0%, 60% { background-position: 120% 0; }
	85%, 100% { background-position: -20% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.sll-rose::before, .sll-rose::after { animation: none !important; }
}

/* =========================================================
   Plumes d'écriture : scène photo (plume d'oie qui se balance)
   ========================================================= */
body.term-plumes-decriture .sll-ciel.has-nuit-background-color { background-color: #070B1C !important; }
body.term-plumes-decriture .sll-ciel { overflow: hidden !important; padding-bottom: clamp(2.5rem, 6vw, 4.5rem) !important; }
.sll-plume-scene { display: none !important; }
.sll-plume-photo {
	position: absolute;
	top: 0;
	right: calc(max(0px, (100% - 1240px) / 2) - 2.5%);
	height: 100%;
	aspect-ratio: 2 / 1;
	z-index: 0 !important;
	pointer-events: none;
	-webkit-mask: radial-gradient(ellipse 37% 82% at 63% 50%, #000 68%, transparent 100%);
	mask: radial-gradient(ellipse 37% 82% at 63% 50%, #000 68%, transparent 100%);
}
.sll-plume-photo__image {
	position: absolute;
	inset: 0;
	background: url("assets/img/plume-oie-scene.jpg?v=1") center / 100% 100% no-repeat;
	transform-origin: 36.7% 94.6%;
	animation: sll-plume-balance 8s ease-in-out infinite alternate;
}
@keyframes sll-plume-balance {
	0%   { transform: rotate(-1.4deg) translateY(0); }
	50%  { transform: rotate(.6deg) translateY(-3px); }
	100% { transform: rotate(1.5deg) translateY(1px); }
}
/* reflet de lumière qui glisse le long de la plume (limité à la silhouette de la plume) */
.sll-plume-photo__reflet {
	position: absolute;
	left: 35.6%;
	top: 6%;
	width: 56.5%;
	height: 94%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0) 40%, rgba(255, 244, 220, .45) 50%, rgba(255, 255, 255, 0) 60%);
	background-size: 300% 300%;
	-webkit-mask: url("assets/img/plume-oie.png?v=1") center / 100% 100% no-repeat;
	mask: url("assets/img/plume-oie.png?v=1") center / 100% 100% no-repeat;
	mix-blend-mode: screen;
	animation: sll-plume-reflet 10s ease-in-out infinite;
}
@keyframes sll-plume-reflet {
	0%, 55% { background-position: 100% 100%; }
	85%, 100% { background-position: 0% 0%; }
}
/* halo doré qui respire autour de la pointe */
.sll-plume-photo__halo {
	position: absolute;
	left: 29%;
	top: 78%;
	width: 15%;
	height: 32%;
	background: radial-gradient(closest-side, rgba(255, 214, 140, .45), rgba(255, 190, 110, .14) 55%, rgba(255, 190, 110, 0));
	mix-blend-mode: screen;
	animation: sll-halo-bougie 3.2s ease-in-out infinite alternate;
}
@media (max-width: 781px) {
	.sll-plume-photo { right: -40%; opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
	.sll-plume-photo__image, .sll-plume-photo__reflet, .sll-plume-photo__halo { animation: none; }
}
@media (max-width: 781px) {
	/* téléphone : plume plus à droite et plus discrète derrière le texte */
	.sll-plume-photo { right: -78%; opacity: .6; }
}
/* jets lumineux qui jaillissent de la pointe de la plume */
.sll-jet {
	position: absolute;
	z-index: 1;
	height: 2px;
	border-radius: 2px;
	transform-origin: 0 50%;
	background: linear-gradient(90deg, rgba(255, 236, 190, 0), rgba(255, 236, 190, .95));
	box-shadow: 0 0 8px 1px rgba(255, 214, 140, .8);
	pointer-events: none;
	opacity: 0;
}
.sll-plume-photo__halo { width: 18% !important; height: 38% !important; left: 27.5% !important; top: 75% !important; }
@media (max-width: 781px) {
	/* téléphone : plume bien visible, texte protégé par une ombre plus marquée */
	.sll-plume-photo { right: -42% !important; opacity: .95 !important; }
	body.term-plumes-decriture .sll-ciel__contenu { text-shadow: 0 1px 3px rgba(4, 7, 24, .9), 0 0 18px rgba(4, 7, 24, .85); }
}
.sll-jet { height: 1.5px; box-shadow: 0 0 6px 1px rgba(255, 214, 140, .6); }
/* repère invisible placé sur la pointe de la plume */
.sll-plume-photo__pointe { position: absolute; left: 36.7%; top: 94.6%; width: 1px; height: 1px; }
.sll-jet { height: 1.2px; box-shadow: 0 0 5px 1px rgba(255, 214, 140, .45); }
@media (max-width: 781px) {
	/* téléphone : plume redressée presque à la verticale, contre le bord droit, estompée */
	.sll-plume-photo {
		right: auto !important;
		left: calc(100% - 120px);
		top: 8%;
		height: 60% !important;
		opacity: .5 !important;
		transform-origin: 36.7% 94.6%;
		transform: translateX(-36.7%) rotate(-44deg);
	}
	body.term-plumes-decriture .sll-ciel__contenu { text-shadow: 0 1px 3px rgba(4, 7, 24, .8); }
}
@media (max-width: 781px) {
	.sll-plume-photo { left: calc(100% - 58px) !important; top: 4% !important; }
}
@media (max-width: 781px) {
	/* pointe de la plume dans le coin inférieur droit */
	.sll-plume-photo { left: calc(100% - 34px) !important; top: 33% !important; }
}

/* Plumes d'écriture : la pointe éclaire le bandeau vers la gauche (comme la bougie) */
body.term-plumes-decriture .sll-ciel::before {
	display: block !important;
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(ellipse 70% 115% at 62% 92%, rgba(255, 214, 150, .17) 0%, rgba(240, 200, 140, .07) 42%, rgba(240, 200, 140, 0) 72%) !important;
	background-size: 100% 100% !important;
	mix-blend-mode: screen;
	animation: sll-nappe-plume 5.5s ease-in-out infinite alternate !important;
}
@keyframes sll-nappe-plume {
	0%   { opacity: .65; transform: translateX(0) scale(1); }
	50%  { opacity: 1; transform: translateX(-1.5%) scale(1.04); }
	100% { opacity: .8; transform: translateX(1%) scale(.98); }
}
body.term-plumes-decriture .sll-ciel__contenu .wp-block-query-title,
body.term-plumes-decriture .sll-ciel__contenu .wp-block-term-description,
body.term-plumes-decriture .sll-ciel__contenu .sll-surtitre {
	animation: sll-texte-plume 5.5s ease-in-out infinite alternate, sll-monte .9s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes sll-texte-plume {
	from { text-shadow: 0 0 12px rgba(255, 214, 150, .12), 0 1px 3px rgba(4, 7, 24, .8); }
	to   { text-shadow: 0 0 18px rgba(255, 214, 150, .3), 0 1px 3px rgba(4, 7, 24, .8); }
}
@media (max-width: 781px) {
	/* téléphone : la lumière part du coin inférieur droit, où se trouve la pointe */
	body.term-plumes-decriture .sll-ciel::before {
		background: radial-gradient(ellipse 95% 85% at 92% 90%, rgba(255, 214, 150, .2) 0%, rgba(240, 200, 140, .08) 45%, rgba(240, 200, 140, 0) 78%) !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	body.term-plumes-decriture .sll-ciel::before,
	body.term-plumes-decriture .sll-ciel__contenu > * { animation: none !important; }
}
/* lumière de la plume : plus forte et qui va plus loin vers la gauche */
body.term-plumes-decriture .sll-ciel::before {
	background:
		radial-gradient(ellipse 120% 130% at 58% 95%, rgba(255, 214, 150, .26) 0%, rgba(240, 200, 140, .13) 38%, rgba(240, 200, 140, .04) 66%, rgba(240, 200, 140, 0) 85%),
		radial-gradient(ellipse 60% 70% at 25% 55%, rgba(255, 220, 165, .07), rgba(255, 220, 165, 0) 80%) !important;
}
@media (max-width: 781px) {
	body.term-plumes-decriture .sll-ciel::before {
		background:
			radial-gradient(ellipse 160% 120% at 92% 92%, rgba(255, 214, 150, .28) 0%, rgba(240, 200, 140, .13) 40%, rgba(240, 200, 140, .04) 68%, rgba(240, 200, 140, 0) 88%) !important;
	}
}

/* Pochettes & boutonnières : la rose est remplacée par une pivoine rouge foncé */
body.term-pochettes-et-boutonnieres .sll-ciel.has-nuit-background-color { background-color: #101C17 !important; }
.sll-rose {
	background-image: url("assets/img/pivoine-boutonnieres.jpg?v=1") !important;
	-webkit-mask: radial-gradient(ellipse 34% 82% at 73% 50%, #000 60%, transparent 100%) !important;
	mask: radial-gradient(ellipse 34% 82% at 73% 50%, #000 60%, transparent 100%) !important;
	transform-origin: 85% 100% !important;
}
/* halo rouge profond et doré qui respire derrière la pivoine */
.sll-rose::before {
	left: 54% !important;
	top: 2% !important;
	width: 40% !important;
	height: 82% !important;
	background: radial-gradient(closest-side, rgba(220, 60, 80, .2), rgba(230, 170, 110, .08) 55%, rgba(230, 170, 110, 0)) !important;
}
.sll-rose::after { left: 58% !important; top: 10% !important; width: 32% !important; height: 58% !important; }
body.term-pochettes-et-boutonnieres .sll-paillette--rose { background: #FFB8C2; box-shadow: 0 0 6px 1px rgba(230, 80, 100, .75); }

/* Plumes d'écriture : lumière plus douce, posée AU-DESSUS de la photo (plus de zone sombre autour de la plume) */
body.term-plumes-decriture .sll-ciel::before {
	z-index: 1 !important;
	background:
		radial-gradient(ellipse 75% 95% at 60% 95%, rgba(255, 214, 150, .13) 0%, rgba(240, 200, 140, .06) 40%, rgba(240, 200, 140, .015) 70%, rgba(240, 200, 140, 0) 88%) !important;
}
body.term-plumes-decriture .sll-ciel__contenu { position: relative; z-index: 2; }
.sll-plume-photo {
	-webkit-mask: radial-gradient(ellipse 40% 86% at 63% 50%, #000 45%, transparent 100%) !important;
	mask: radial-gradient(ellipse 40% 86% at 63% 50%, #000 45%, transparent 100%) !important;
}
@keyframes sll-texte-plume {
	from { text-shadow: 0 0 10px rgba(255, 214, 150, .06), 0 1px 3px rgba(4, 7, 24, .8); }
	to   { text-shadow: 0 0 14px rgba(255, 214, 150, .14), 0 1px 3px rgba(4, 7, 24, .8); }
}
@media (max-width: 781px) {
	body.term-plumes-decriture .sll-ciel::before {
		background:
			radial-gradient(ellipse 120% 95% at 92% 92%, rgba(255, 214, 150, .15) 0%, rgba(240, 200, 140, .06) 42%, rgba(240, 200, 140, 0) 80%) !important;
	}
}

/* lueur de la pointe qui remonte sur la plume et respire avec la lumière du bandeau */
.sll-plume-photo::after {
	content: "";
	position: absolute;
	left: 35.6%;
	top: 6%;
	width: 56.5%;
	height: 94%;
	z-index: 2;
	background: radial-gradient(ellipse 75% 85% at 2% 98%, rgba(255, 205, 130, .75) 0%, rgba(255, 200, 125, .32) 35%, rgba(255, 200, 125, .08) 65%, rgba(255, 200, 125, 0) 85%);
	-webkit-mask: url("assets/img/plume-oie.png?v=1") center / 100% 100% no-repeat;
	mask: url("assets/img/plume-oie.png?v=1") center / 100% 100% no-repeat;
	mix-blend-mode: screen;
	animation: sll-lueur-plume 5.5s ease-in-out infinite alternate;
	pointer-events: none;
}
@keyframes sll-lueur-plume {
	0%   { opacity: .2; }
	50%  { opacity: .95; }
	100% { opacity: .45; }
}
.sll-plume-photo__halo { animation-duration: 5.5s !important; }
@media (prefers-reduced-motion: reduce) {
	.sll-plume-photo::after { animation: none; opacity: .5; }
}
