/*
Theme Name: Résinellia
Theme URI: https://resinellia.local
Author: Résinellia
Description: Thème classique sur mesure pour la boutique Résinellia. Le thème gère la structure, le style et les gabarits boutique (WooCommerce) ; Elementor (version gratuite) sert à construire le contenu des pages.
Version: 0.1.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: resinellia
*/

/* Variables
   Valeurs par défaut (charte graphique) : le Personnalisateur les remplace.
-------------------------------------------------- */
:root {
	/* Couleurs de marque */
	--resinellia-couleur-principale: #25483E;
	--resinellia-couleur-secondaire: #F1C0B1;
	--resinellia-couleur-accent: #A98160;

	/* Texte et fond */
	--resinellia-couleur-texte: #292C28;
	--resinellia-couleur-titres: #25483E;
	--resinellia-couleur-lien: #25483E;
	--resinellia-couleur-lien-survol: #292C28;
	--resinellia-couleur-fond: #F3EDE2;

	/* En-tête */
	--resinellia-couleur-annonce-fond: #1A1A1A;
	--resinellia-couleur-annonce-texte: #FFFFFF;
	--resinellia-couleur-entete-fond: #F3EDE2;
	--resinellia-couleur-menu: #292C28;
	--resinellia-couleur-menu-survol: #25483E;

	/* Boutons */
	--resinellia-couleur-bouton-fond: #25483E;
	--resinellia-couleur-bouton-texte: #F3EDE2;
	--resinellia-couleur-bouton-fond-survol: #F1C0B1;
	--resinellia-couleur-bouton-texte-survol: #25483E;

	/* Pied de page */
	--resinellia-couleur-pied-fond: #25483E;
	--resinellia-couleur-pied-texte: #F3EDE2;

	/* Bandeau de page */
	--resinellia-couleur-bandeau-voile: #000000;
	--resinellia-couleur-bandeau-texte: #FFFFFF;

	/* Décor végétal */
	--resinellia-couleur-fleurs: #F08FA6;

	/* Couleurs d'appoint */
	--resinellia-couleur-appoint-1: #777B55;
	--resinellia-couleur-appoint-2: #BED2C7;
	--resinellia-couleur-appoint-3: #D5C7B2;

	/* Bordures : dérivées de la couleur du texte */
	--resinellia-couleur-bordure: color-mix(in srgb, var(--resinellia-couleur-texte) 15%, transparent);

	/* Typographie : les variables (--resinellia-police-*, --resinellia-texte-*,
	   --resinellia-h1-* à h6, --resinellia-menu-*, --resinellia-bouton-*) sont
	   produites par le Personnalisateur, voir inc/typographie.php. */

	/* Mise en page */
	--resinellia-largeur-contenu: 1200px;
	--resinellia-gouttiere: 20px;

	/* En-tête */
	--resinellia-logo-largeur: 150px;
	--resinellia-logo-largeur-mobile: 110px;
}

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

body {
	margin: 0;
	font-family: var(--resinellia-police-texte);
	font-size: var(--resinellia-texte-taille);
	font-weight: var(--resinellia-texte-graisse);
	line-height: var(--resinellia-texte-interligne);
	color: var(--resinellia-couleur-texte);
	background: var(--resinellia-couleur-fond);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--resinellia-police-titres);
	color: var(--resinellia-couleur-titres);
}

h1 {
	font-size: var(--resinellia-h1-taille);
	font-weight: var(--resinellia-h1-graisse);
	line-height: var(--resinellia-h1-interligne);
	text-transform: var(--resinellia-h1-majuscules);
}

h2 {
	font-size: var(--resinellia-h2-taille);
	font-weight: var(--resinellia-h2-graisse);
	line-height: var(--resinellia-h2-interligne);
	text-transform: var(--resinellia-h2-majuscules);
}

h3 {
	font-size: var(--resinellia-h3-taille);
	font-weight: var(--resinellia-h3-graisse);
	line-height: var(--resinellia-h3-interligne);
	text-transform: var(--resinellia-h3-majuscules);
}

h4 {
	font-size: var(--resinellia-h4-taille);
	font-weight: var(--resinellia-h4-graisse);
	line-height: var(--resinellia-h4-interligne);
	text-transform: var(--resinellia-h4-majuscules);
}

h5 {
	font-size: var(--resinellia-h5-taille);
	font-weight: var(--resinellia-h5-graisse);
	line-height: var(--resinellia-h5-interligne);
	text-transform: var(--resinellia-h5-majuscules);
}

h6 {
	font-size: var(--resinellia-h6-taille);
	font-weight: var(--resinellia-h6-graisse);
	line-height: var(--resinellia-h6-interligne);
	text-transform: var(--resinellia-h6-majuscules);
}

@media (max-width: 767px) {
	h1 {
		font-size: var(--resinellia-h1-taille-mobile);
	}

	h2 {
		font-size: var(--resinellia-h2-taille-mobile);
	}

	h3 {
		font-size: var(--resinellia-h3-taille-mobile);
	}

	h4 {
		font-size: var(--resinellia-h4-taille-mobile);
	}

	h5 {
		font-size: var(--resinellia-h5-taille-mobile);
	}

	h6 {
		font-size: var(--resinellia-h6-taille-mobile);
	}
}

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

a {
	color: var(--resinellia-couleur-lien);
}

a:hover,
a:focus {
	color: var(--resinellia-couleur-lien-survol);
}

/* Boutons (thème et WooCommerce)
-------------------------------------------------- */
input[type="submit"],
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
	display: inline-block;
	padding: 0.75em 1.5em;
	border: 0;
	border-radius: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: var(--resinellia-bouton-graisse);
	line-height: 1.2;
	text-transform: var(--resinellia-bouton-majuscules);
	text-decoration: none;
	cursor: pointer;
	color: var(--resinellia-couleur-bouton-texte);
	background-color: var(--resinellia-couleur-bouton-fond);
	transition: color 0.35s ease, background-color 0.2s;
}

/* Survol « éventail » : un aplat de la couleur de survol monte depuis le bas,
   avec un bord en biais qui se redresse. Le calque (::before) passe sous le texte
   grâce à « isolation ». Un bloc peut changer les couleurs avec --bouton-remplissage
   et --bouton-texte-survol. (Les champs <input> n'ont pas de calque : ils changent
   simplement de couleur.) */
.button,
.wp-element-button,
.wp-block-button__link,
.wc-block-components-button.contained,
.woocommerce a.button,
.woocommerce button.button {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.button::before,
.wp-element-button::before,
.wp-block-button__link::before,
.wc-block-components-button.contained::before,
.woocommerce a.button::before,
.woocommerce button.button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--bouton-remplissage, var(--resinellia-couleur-bouton-fond-survol));
	transform: translateY(101%) skewY(7deg);
	transform-origin: 0 0;
	transition: transform 0.45s ease;
}

.button:not(:disabled, .disabled):hover::before,
.button:focus-visible::before,
.wp-element-button:not(:disabled, .disabled):hover::before,
.wp-element-button:focus-visible::before,
.wp-block-button__link:hover::before,
.wp-block-button__link:focus-visible::before,
.wc-block-components-button.contained:not(:disabled):hover::before,
.woocommerce a.button:not(.disabled):hover::before,
.woocommerce button.button:not(:disabled, .disabled):hover::before {
	transform: none;
}

.button:not(:disabled, .disabled):hover,
.button:focus-visible,
.wp-element-button:not(:disabled, .disabled):hover,
.wp-element-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.wc-block-components-button.contained:not(:disabled):hover,
.woocommerce a.button:not(.disabled):hover,
.woocommerce button.button:not(:disabled, .disabled):hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	color: var(--bouton-texte-survol, var(--resinellia-couleur-bouton-texte-survol));
	background-color: var(--resinellia-couleur-bouton-fond);
}

input[type="submit"]:hover,
input[type="submit"]:focus,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
	color: var(--resinellia-couleur-bouton-texte-survol);
	background-color: var(--resinellia-couleur-bouton-fond-survol);
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

/* Structure
-------------------------------------------------- */
.site-container {
	width: 100%;
	max-width: var(--resinellia-largeur-contenu);
	margin-inline: auto;
	padding-inline: var(--resinellia-gouttiere);
}

.site-main {
	padding-block: 40px;
}

/* En-tête
-------------------------------------------------- */
/* Barre d'annonce au-dessus de l'en-tête. */
.resinellia-annonce {
	overflow: hidden;
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--resinellia-couleur-annonce-texte);
	background: var(--resinellia-couleur-annonce-fond);
}

.resinellia-annonce a {
	color: inherit;
}

.resinellia-annonce__texte {
	margin: 0;
	padding: 12px 20px;
	text-align: center;
}

/* Texte défilant de droite à gauche : la bande contient deux moitiés identiques
   et glisse d'une moitié, ce qui donne un défilement sans raccord visible. */
.resinellia-annonce--defile .resinellia-annonce__bande {
	display: flex;
	width: max-content;
	animation: resinellia-defilement 60s linear infinite;
}

.resinellia-annonce--defile .resinellia-annonce__texte {
	flex: none;
	padding-inline: 48px;
	white-space: nowrap;
}

.resinellia-annonce--defile:hover .resinellia-annonce__bande,
.resinellia-annonce--defile:focus-within .resinellia-annonce__bande {
	animation-play-state: paused;
}

@keyframes resinellia-defilement {
	to {
		transform: translateX(-50%);
	}
}

/* Animations réduites : un seul texte, fixe et centré. */
@media (prefers-reduced-motion: reduce) {
	.resinellia-annonce--defile .resinellia-annonce__bande {
		display: block;
		width: auto;
		animation: none;
	}

	.resinellia-annonce--defile .resinellia-annonce__texte {
		display: block;
		white-space: normal;
	}

	.resinellia-annonce--defile .resinellia-annonce__texte[aria-hidden] {
		display: none;
	}
}

.site-header {
	position: relative;
	background: var(--resinellia-couleur-entete-fond);
	border-bottom: 1px solid var(--resinellia-couleur-bordure);
}

/* Logo à gauche, menu à sa suite, icônes à droite. */
.site-header__contenu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 40px;
	padding-block: 16px;
}

.site-branding {
	flex: none;
}

/* Icônes : recherche, compte, panier, menu mobile. */
.resinellia-entete-icones {
	display: flex;
	flex: none;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

.resinellia-entete-icone {
	display: inline-flex;
	align-items: center;
	padding: 8px;
	border: 0;
	color: var(--resinellia-couleur-menu);
	text-decoration: none;
	background: none;
	cursor: pointer;
	transition: color 0.2s;
}

.resinellia-entete-icone:hover,
.resinellia-entete-icone:focus {
	color: var(--resinellia-couleur-menu-survol);
}

/* Survol des icônes (recherche, compte, panier) : un léger zoom. */
.resinellia-entete-icone svg {
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.resinellia-entete-icone:hover svg,
.resinellia-entete-icone:focus-visible svg {
	transform: scale(1.18);
}

/* Petit cadeau rose devant un lien du menu (classe « resinellia-menu-cadeau »
   sur l'élément de menu) : il se secoue doucement de temps en temps pour attirer l'œil. */
.resinellia-menu-cadeau__picto {
	display: inline-block;
	width: 1.25em;
	height: 1.25em;
	margin: -0.2em 0.4em 0 0;
	vertical-align: middle;
	color: var(--resinellia-couleur-fleurs, #f08fa6);
	transform-origin: 50% 90%;
	animation: resinellia-cadeau 6s ease-in-out 2s infinite;
}

@keyframes resinellia-cadeau {
	0%,
	88%,
	100% {
		transform: rotate(0);
	}

	90% {
		transform: rotate(-12deg) scale(1.08);
	}

	92% {
		transform: rotate(10deg) scale(1.08);
	}

	94% {
		transform: rotate(-7deg);
	}

	96% {
		transform: rotate(4deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.resinellia-menu-cadeau__picto {
		animation: none;
	}

	.resinellia-entete-icone:hover svg {
		transform: none;
	}
}

.resinellia-menu-bascule {
	display: none;
}

/* Panneau de recherche, déplié sous l'en-tête. */
.resinellia-recherche {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 800;
	background: var(--resinellia-couleur-entete-fond);
	border-bottom: 1px solid var(--resinellia-couleur-bordure);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.resinellia-recherche[hidden] {
	display: none;
}

.resinellia-recherche__formulaire {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-block: 14px;
}

.resinellia-recherche__champ {
	flex: 1;
	min-width: 0;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid var(--resinellia-couleur-texte);
	border-radius: 0;
	font: inherit;
	color: inherit;
	background: transparent;
}

.resinellia-recherche__champ:focus {
	outline: none;
	border-bottom-width: 2px;
}

.custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.custom-logo {
	width: var(--resinellia-logo-largeur);
	max-width: 100%;
	height: auto;
}

/* Logo : il grandit très légèrement au survol, et s'enfonce un peu au clic. */
.custom-logo-link .custom-logo,
.site-title a {
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}

.site-title a {
	display: inline-block;
}

.custom-logo-link:hover .custom-logo,
.custom-logo-link:focus-visible .custom-logo,
.site-title a:hover,
.site-title a:focus-visible {
	transform: scale(1.06);
}

.custom-logo-link:active .custom-logo,
.site-title a:active {
	opacity: 0.85;
	transform: scale(0.97);
	transition-duration: 0.12s;
}

@media (max-width: 767px) {
	.custom-logo {
		width: var(--resinellia-logo-largeur-mobile);
	}
}

.site-title {
	margin: 0;
	font-family: var(--resinellia-police-titres);
	font-size: 1.5rem;
}

.site-title a {
	color: var(--resinellia-couleur-menu);
	text-decoration: none;
}

.main-navigation ul,
.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a,
.footer-navigation a {
	text-decoration: none;
}

.main-navigation a {
	font-family: var(--resinellia-menu-police);
	font-size: var(--resinellia-menu-taille);
	font-weight: var(--resinellia-menu-graisse);
	letter-spacing: 0.14em;
	text-transform: var(--resinellia-menu-majuscules);
	color: var(--resinellia-couleur-menu);
	transition: color 0.2s;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
	color: var(--resinellia-couleur-menu-survol);
}

/* Sous-menus : dépliés au survol ou au clavier. */
.main-navigation li {
	position: relative;
}

.main-navigation ul ul {
	position: absolute;
	top: 100%;
	left: -16px;
	z-index: 810;
	display: none;
	flex-direction: column;
	gap: 0;
	min-width: 220px;
	padding: 12px 16px;
	background: var(--resinellia-couleur-entete-fond);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
	display: flex;
}

.main-navigation ul ul a {
	display: block;
	padding-block: 6px;
}

/* Survol du menu : une petite branche se dessine sous l'entrée, de gauche à droite.
   Le dessin sert de masque : sa couleur est la couleur d'appoint 1 (vert olive).
   Elle reste affichée sous l'entrée de la page en cours. */
@media (min-width: 768px) {
	.main-navigation > ul > li > a {
		--menu-encre: var(--resinellia-couleur-menu);
		position: relative;
		text-shadow: 0 0 0 transparent;
		transition: color 0.35s ease, text-shadow 0.35s ease;
	}

	.main-navigation > ul > .current-menu-item > a,
	.main-navigation > ul > .current-menu-ancestor > a {
		--menu-encre: var(--resinellia-couleur-menu-survol);
	}

	/* Survol : le mot devient flou, sans changer de couleur. Le texte est rendu
	   transparent et remplacé par son ombre diffuse ; un filtre « blur » aurait
	   aussi flouté la petite branche dessinée dessous. */
	.main-navigation > ul > li > a:hover {
		color: transparent;
		text-shadow: 0 0 3px var(--menu-encre);
	}

	.main-navigation > ul > li > a::after {
		content: "";
		position: absolute;
		top: 100%;
		left: 50%;
		width: 66px;
		height: 14px;
		margin-top: 3px;
		background: var(--resinellia-couleur-appoint-1);
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 14'%3E%3Cpath d='M2 9.500C14 5.500 26 11 38 8.500S56 5 64 6.500' fill='none' stroke='black' stroke-width='1.100' stroke-linecap='round'/%3E%3Cpath d='M16 8c1.200-4 5.200-5.800 8.800-5.200C23.800 6.500 20 8.800 16 8z'/%3E%3Cpath d='M30 10c2.600 3 6.800 3.200 9.400 1.400C37 8.600 32.800 8.200 30 10z'/%3E%3Cpath d='M46 7.200c1-3.600 4.600-5.200 7.800-4.600C53 6 49.600 8 46 7.200z'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 14'%3E%3Cpath d='M2 9.500C14 5.500 26 11 38 8.500S56 5 64 6.500' fill='none' stroke='black' stroke-width='1.100' stroke-linecap='round'/%3E%3Cpath d='M16 8c1.200-4 5.200-5.800 8.800-5.200C23.800 6.500 20 8.800 16 8z'/%3E%3Cpath d='M30 10c2.600 3 6.800 3.200 9.400 1.400C37 8.600 32.800 8.200 30 10z'/%3E%3Cpath d='M46 7.200c1-3.600 4.600-5.200 7.800-4.600C53 6 49.600 8 46 7.200z'/%3E%3C/svg%3E") center / contain no-repeat;
		transform: translateX(-50%);
		clip-path: inset(0 100% 0 0);
		transition: clip-path 0.5s ease;
		pointer-events: none;
	}

	.main-navigation > ul > li > a:hover::after,
	.main-navigation > ul > li > a:focus-visible::after,
	.main-navigation > ul > .current-menu-item > a::after,
	.main-navigation > ul > .current-menu-ancestor > a::after {
		clip-path: inset(0);
	}
}

/* Ordinateur : le menu est un peu plus serré (espace entre les entrées et entre
   les lettres, puis taille du texte sur les petits portables) pour tenir sur une
   seule ligne avec six entrées. */
@media (min-width: 768px) {
	.main-navigation > ul > li > a {
		white-space: nowrap;
	}

	.site-header__contenu {
		column-gap: 24px;
	}

	.main-navigation ul {
		column-gap: clamp(12px, 1.6vw, 26px);
	}

	.main-navigation > ul > li > a {
		letter-spacing: 0.06em;
	}
}

@media (min-width: 768px) and (max-width: 1180px) {
	.main-navigation > ul > li > a {
		font-size: calc(var(--resinellia-menu-taille) * 0.88);
		letter-spacing: 0.04em;
	}
}

/* Option « menu centré » : le menu occupe l'espace entre le logo et les icônes,
   et ses entrées sont centrées dans cet espace. */
@media (min-width: 768px) {
	.site-header--menu-centre .main-navigation {
		flex: 1;
	}

	.site-header--menu-centre .main-navigation > ul {
		justify-content: center;
	}
}

/* Mobile : le menu se replie derrière le bouton « burger ». */
@media (max-width: 767px) {
	.site-header__contenu {
		gap: 12px;
	}

	.resinellia-entete-icones {
		gap: 4px;
	}

	.resinellia-menu-bascule {
		display: inline-flex;
		order: 3;
	}

	.site-header__contenu:not(:has(.resinellia-entete-icones)) .resinellia-menu-bascule {
		margin-left: auto;
	}

	.resinellia-entete-icones {
		order: 2;
	}

	.main-navigation {
		display: none;
		flex-basis: 100%;
		order: 4;
		padding-top: 8px;
		border-top: 1px solid var(--resinellia-couleur-bordure);
	}

	.main-navigation.est-ouvert {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0;
	}

	/* Entrées du menu mobile : au survol ou à l'appui, le mot glisse vers la droite,
	   un trait vert se déploie à gauche et le fond se teinte légèrement.
	   La page en cours garde le trait, en gras et dans la couleur principale. */
	.main-navigation a {
		position: relative;
		display: block;
		padding: 12px 10px 12px 14px;
		transition: color 0.2s, padding-left 0.25s ease, background-color 0.2s;
	}

	.main-navigation a::before {
		content: "";
		position: absolute;
		top: 9px;
		bottom: 9px;
		left: 0;
		width: 2px;
		background: var(--resinellia-couleur-appoint-1);
		transform: scaleY(0);
		transition: transform 0.25s ease;
	}

	.main-navigation a:hover,
	.main-navigation a:focus-visible,
	.main-navigation a:active {
		padding-left: 24px;
		background-color: color-mix(in srgb, var(--resinellia-couleur-principale) 7%, transparent);
	}

	.main-navigation a:hover::before,
	.main-navigation a:focus-visible::before,
	.main-navigation a:active::before,
	.main-navigation .current-menu-item > a::before,
	.main-navigation .current-menu-ancestor > a::before {
		transform: none;
	}

	.main-navigation .current-menu-item > a,
	.main-navigation .current-menu-ancestor > a {
		padding-left: 24px;
		font-weight: 600;
		color: var(--resinellia-couleur-principale);
	}

	.main-navigation ul ul {
		position: static;
		display: flex;
		min-width: 0;
		padding: 0 0 0 16px;
		box-shadow: none;
	}
}

/* Bandeau de page : image, voile de couleur, titre centré
-------------------------------------------------- */
.resinellia-bandeau {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--resinellia-bandeau-hauteur, 350px);
	overflow: hidden;
	background: var(--resinellia-couleur-bandeau-voile);
}

.resinellia-bandeau--reduit,
.resinellia-bandeau--sans-image {
	height: var(--resinellia-bandeau-hauteur-reduite, 180px);
}

/* Le sélecteur est doublé pour passer devant la règle de WooCommerce
   « .woocommerce-page img { height: auto } », qui empêchait l'image de remplir le bandeau. */
.resinellia-bandeau .resinellia-bandeau__image {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
}

.resinellia-bandeau__voile {
	position: absolute;
	inset: 0;
	background: var(--resinellia-couleur-bandeau-voile);
	opacity: var(--resinellia-bandeau-opacite, 35%);
}

.resinellia-bandeau__titre {
	position: relative;
	margin: 0;
	padding-inline: var(--resinellia-gouttiere);
	letter-spacing: 0.14em;
	text-align: center;
	text-transform: uppercase;
	color: var(--resinellia-couleur-bandeau-texte);
}

.resinellia-bandeau__texte {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

/* Habillage « botanique » des bandeaux sans image : fond olive texturé,
   deux branches au trait qui se dessinent, étoiles dorées, pictogramme de la page.
-------------------------------------------------- */
.resinellia-bandeau--botanique {
	height: max(230px, var(--resinellia-bandeau-hauteur-reduite, 180px));
	isolation: isolate;
	color: #ede6d6;
	background:
		radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--resinellia-bandeau-decor, #5d5934) 80%, #fff) 0%, transparent 60%),
		linear-gradient(100deg, color-mix(in srgb, var(--resinellia-bandeau-decor, #5d5934) 76%, #000) 0%, var(--resinellia-bandeau-decor, #5d5934) 50%, color-mix(in srgb, var(--resinellia-bandeau-decor, #5d5934) 80%, #000) 100%);
}

.resinellia-bandeau--botanique .resinellia-bandeau__titre {
	color: #f3ede2;
}

/* Branches : ancrées en bas, de chaque côté ; celle de gauche est retournée. */
.resinellia-bandeau__branche {
	position: absolute;
	bottom: -6%;
	z-index: -1;
	height: 112%;
	width: auto;
	color: #ede6d6;
	pointer-events: none;
}

.resinellia-bandeau__branche--droite {
	right: clamp(-40px, -2vw, 0px);
}

.resinellia-bandeau__branche--gauche {
	left: clamp(-40px, -2vw, 0px);
	transform: scaleX(-1);
}

.resinellia-bandeau__branche path {
	opacity: 0.4;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: resinellia-bandeau-trace 1.1s ease-out forwards;
	animation-delay: calc(0.2s + var(--ordre, 0) * 55ms);
}

@keyframes resinellia-bandeau-trace {
	to {
		stroke-dashoffset: 0;
	}
}

/* Étoiles dorées qui scintillent (même dessin que sur la page d'accueil). */
.resinellia-bandeau__eclats {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.resinellia-bandeau__eclats span {
	position: absolute;
	width: var(--taille, 10px);
	height: var(--taille, 10px);
	background: #e3c46a;
	clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
	filter: drop-shadow(0 0 5px #e3c46a);
	opacity: 0;
	animation: resinellia-bandeau-eclat 4.4s ease-in-out infinite;
	animation-delay: var(--retard, 0s);
}

@keyframes resinellia-bandeau-eclat {
	0%,
	100% {
		opacity: 0;
		transform: scale(0.2);
	}

	45% {
		opacity: 1;
		transform: scale(1) rotate(45deg);
	}
}

/* Pictogramme : il se dessine, puis flotte doucement. */
.resinellia-bandeau__picto {
	width: 46px;
	height: 46px;
	overflow: visible;
	color: #f1c0b1;
	animation: resinellia-bandeau-flotte 4s ease-in-out 1.6s infinite alternate;
}

.resinellia-bandeau__picto path {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: resinellia-bandeau-trace 0.9s ease-out forwards;
	animation-delay: calc(0.3s + var(--ordre, 0) * 0.22s);
}

/* Colis : ses traits de vitesse filent vers l'arrière, en boucle, comme s'il s'envolait. */
.resinellia-bandeau__vitesse path {
	stroke-dasharray: 0.6 1;
	stroke-dashoffset: 0;
	opacity: 0;
	animation: resinellia-bandeau-vitesse 1.4s ease-in 1.4s infinite;
}

.resinellia-bandeau__vitesse path:nth-child(2) {
	animation-delay: 1.6s;
}

.resinellia-bandeau__vitesse path:nth-child(3) {
	animation-delay: 1.8s;
}

@keyframes resinellia-bandeau-vitesse {
	0% {
		opacity: 0;
		transform: translateX(4px);
	}

	30% {
		opacity: 0.9;
	}

	100% {
		opacity: 0;
		transform: translateX(-6px);
	}
}

/* Cœur (Mon compte) : au lieu de flotter, il bat doucement. */
.resinellia-bandeau__picto--coeur {
	animation: resinellia-bandeau-battement 2.8s ease-in-out 1.4s infinite;
}

@keyframes resinellia-bandeau-battement {
	0%,
	60%,
	100% {
		transform: scale(1);
	}

	70% {
		transform: scale(1.12);
	}

	80% {
		transform: scale(0.97);
	}

	90% {
		transform: scale(1.06);
	}
}

/* Vidéo (tutoriels) : l'écran flotte, et son bouton lecture se remplit et pulse doucement. */
.resinellia-bandeau__lecture {
	transform-box: fill-box;
	transform-origin: center;
	animation: resinellia-bandeau-lecture 2.4s ease-in-out 1.6s infinite;
}

.resinellia-bandeau__lecture path {
	fill: currentColor;
	fill-opacity: 0;
	transition: fill-opacity 0.6s;
	animation: resinellia-bandeau-trace 0.9s ease-out forwards, resinellia-bandeau-remplit 0.6s ease-out 1.4s forwards;
	animation-delay: calc(0.3s + var(--ordre, 0) * 0.22s), 1.4s;
}

@keyframes resinellia-bandeau-lecture {
	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.18);
	}
}

@keyframes resinellia-bandeau-remplit {
	to {
		fill-opacity: 0.85;
	}
}

@keyframes resinellia-bandeau-flotte {
	from {
		transform: translateY(2px) rotate(-2deg);
	}

	to {
		transform: translateY(-5px) rotate(2deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.resinellia-bandeau__branche path,
	.resinellia-bandeau__picto path {
		stroke-dashoffset: 0;
		animation: none;
	}

	.resinellia-bandeau__picto,
	.resinellia-bandeau__vitesse path,
	.resinellia-bandeau__lecture,
	.resinellia-bandeau__eclats span {
		animation: none;
	}

	.resinellia-bandeau__lecture path {
		fill-opacity: 0.85;
	}

	.resinellia-bandeau__eclats span {
		opacity: 0.7;
	}
}

@media (max-width: 767px) {
	.resinellia-bandeau {
		height: var(--resinellia-bandeau-hauteur-mobile, 220px);
	}

	.resinellia-bandeau__branche {
		height: 80%;
		opacity: 0.7;
	}

	.resinellia-bandeau__picto {
		width: 38px;
		height: 38px;
	}

	.resinellia-bandeau--reduit,
	.resinellia-bandeau--sans-image {
		height: min(var(--resinellia-bandeau-hauteur-mobile, 220px), var(--resinellia-bandeau-hauteur-reduite, 180px));
	}
}

/* Bandeau de saison, au-dessus du pied de page : un ruban qui traverse
   toute la largeur et un motif (nœud dessiné ou image) posé dessus.
-------------------------------------------------- */
.resinellia-saison {
	position: relative;
	height: var(--saison-hauteur, 130px);
	overflow: hidden;
	background: var(--saison-fond);
}

.resinellia-saison__ruban {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: 18%;
	min-height: 14px;
	background: var(--saison-ruban);
	transform: translateY(-50%);
}

.resinellia-saison__noeud {
	position: absolute;
	top: 50%;
	left: var(--saison-position, 50%);
	height: 84%;
	transform: translate(-50%, -50%);
}

.resinellia-saison__noeud svg,
.resinellia-saison .resinellia-saison__noeud img {
	display: block;
	width: auto;
	max-width: none;
	height: 100%;
}

/* Teintes du nœud dessiné, dérivées de sa couleur. */
.resinellia-saison__clair {
	stop-color: color-mix(in srgb, var(--saison-noeud) 62%, #fff);
}

.resinellia-saison__moyen {
	stop-color: var(--saison-noeud);
}

.resinellia-saison__fonce {
	stop-color: color-mix(in srgb, var(--saison-noeud) 72%, #000);
}

.resinellia-saison__ombre {
	fill: color-mix(in srgb, var(--saison-noeud) 62%, #000);
}

/* Plis des boucles : de simples traits, jamais remplis. */
.resinellia-saison__dessin .resinellia-saison__pli {
	fill: none;
	stroke: color-mix(in srgb, var(--saison-noeud) 62%, #000);
	stroke-width: 1.5;
	stroke-linecap: round;
}

/* Tracé « au trait » : le ruban devient deux filets, le nœud un simple contour.
   Les formes du nœud sont remplies de la couleur du fond, pour masquer les filets
   du ruban qui passent derrière. */
.resinellia-saison--trait .resinellia-saison__ruban {
	height: 13%;
	min-height: 10px;
	border-block: 1.5px solid var(--saison-ruban);
	background: none;
}

.resinellia-saison--trait .resinellia-saison__dessin path,
.resinellia-saison--trait .resinellia-saison__dessin rect {
	fill: var(--saison-fond);
	stroke: var(--saison-noeud);
	stroke-width: 1.7;
	stroke-linejoin: round;
}

.resinellia-saison--trait .resinellia-saison__dessin .resinellia-saison__pli {
	fill: none;
	stroke: var(--saison-noeud);
	stroke-width: 1.4;
}

@media (max-width: 767px) {
	.resinellia-saison {
		height: calc(var(--saison-hauteur, 130px) * 0.7);
	}
}

/* Pied de page
-------------------------------------------------- */
.site-footer {
	font-size: 0.875rem;
	color: var(--resinellia-couleur-pied-texte);
	background: var(--resinellia-couleur-pied-fond);
}

.site-footer a,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widget-title {
	color: inherit;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Jusqu'à quatre blocs côte à côte ; seuls les blocs remplis occupent une colonne. */
.site-footer__blocs {
	display: grid;
	gap: 40px clamp(32px, 6vw, 96px);
	padding-block: 56px;
}

.site-footer__blocs--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer__blocs--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Quatre blocs : le premier (présentation) un peu plus large. */
.site-footer__blocs--4 {
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) and (max-width: 1023px) {
	.site-footer__blocs--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Sur grand écran, les colonnes s'arrêtent avant la grande branche du côté droit. */
@media (min-width: 1024px) {
	.resinellia-decor-frise .site-footer__blocs--3,
	.resinellia-decor-frise .site-footer__blocs--4 {
		padding-right: clamp(160px, 20vw, 280px);
	}
}

/* Liens vers le site vitrine resinellia.com : petite flèche discrète. */
.site-footer__bloc a[href*="//www.resinellia.com"]::after,
.site-footer__bloc a[href*="//resinellia.com"]::after {
	content: "↗";
	display: inline-block;
	margin-left: 0.3em;
	font-size: 0.8em;
	opacity: 0.6;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-footer__bloc a[href*="//www.resinellia.com"]:hover::after,
.site-footer__bloc a[href*="//resinellia.com"]:hover::after {
	opacity: 1;
	transform: translate(2px, -2px);
}

.site-footer__presentation {
	max-width: 22em;
	line-height: 1.7;
	opacity: 0.85;
}

.site-footer__bloc > .widget + .widget {
	margin-top: 28px;
}

.site-footer__bloc > .widget > :first-child {
	margin-top: 0;
}

.site-footer__bloc > .widget > :last-child {
	margin-bottom: 0;
}

/* Titres des blocs : petites majuscules espacées. */
.site-footer .widget-title,
.site-footer__bloc h2,
.site-footer__bloc h3 {
	margin: 0 0 16px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Listes et menus : sans puces, une entrée par ligne. */
.site-footer__bloc ul,
.site-footer__bloc ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__bloc li {
	padding-block: 5px;
}

/* Les icônes de réseaux sociaux (bloc WordPress) restent sur une ligne. */
.site-footer__bloc .wp-block-social-links {
	display: flex;
	gap: 10px;
}

.site-footer__bloc .wp-block-social-links li {
	padding: 0;
}

/* Bas de page : texte à gauche, menu à droite. */
.site-footer__bas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 20px;
	font-size: 0.8125rem;
}

.site-footer__blocs + .site-footer__bas {
	border-top: 1px solid color-mix(in srgb, var(--resinellia-couleur-pied-texte) 20%, transparent);
}

.site-info {
	margin: 0;
}

/* Pictos au centre : trois colonnes (texte, pictos, menu), les pictos au milieu exact. */
@media (min-width: 768px) {
	.site-footer__bas--reseaux-centre {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
	}

	.site-footer__bas--reseaux-centre .resinellia-reseaux {
		grid-column: 2;
	}

	.site-footer__bas--reseaux-centre .footer-navigation {
		grid-column: 3;
		justify-self: end;
	}
}

/* Pictos des réseaux sociaux, au trait fin comme ceux de l'en-tête. */
.resinellia-reseaux {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .resinellia-reseaux__lien {
	display: inline-flex;
	padding: 8px;
	text-decoration: none;
	opacity: 0.85;
	transition: opacity 0.2s, transform 0.3s ease;
}

.site-footer .resinellia-reseaux__lien:hover,
.site-footer .resinellia-reseaux__lien:focus-visible {
	text-decoration: none;
	opacity: 1;
	transform: translateY(-2px);
}

.footer-navigation a {
	letter-spacing: 0.06em;
	white-space: nowrap;
}

/* Liens légaux du bas de page : resserrés pour tenir sur une ligne. */
.site-footer__bas .footer-navigation ul {
	gap: 6px 22px;
}

@media (max-width: 767px) {
	.site-footer__blocs,
	.site-footer__blocs--2,
	.site-footer__blocs--3 {
		grid-template-columns: minmax(0, 1fr);
		padding-block: 40px;
	}

	/* Quatre blocs sur mobile : la présentation sur toute la largeur, les menus deux par deux. */
	.site-footer__blocs--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 24px;
		padding-block: 40px;
	}

	.site-footer__blocs--4 > .site-footer__bloc:first-child {
		grid-column: 1 / -1;
	}

	/* Sur mobile : d'abord les réseaux sociaux, puis le menu (suivi de commande,
	   compte), et en dernier, sous un filet, le texte de bas de page. */
	.site-footer__bas {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-footer__bas .resinellia-reseaux {
		order: 1;
		margin-left: -8px;
	}

	.site-footer__bas .footer-navigation {
		order: 2;
	}

	.site-footer__bas .site-info {
		order: 3;
		align-self: stretch;
		/* Le filet s'arrête avant la fleur « retour en haut », en bas à droite. */
		margin-right: 72px;
		margin-top: 6px;
		padding-top: 16px;
		border-top: 1px solid color-mix(in srgb, var(--resinellia-couleur-pied-texte) 20%, transparent);
	}
}

/* Mention de réalisation, en petit sous le texte de bas de page. */
.site-info__credit {
	display: block;
	margin-top: 4px;
	font-size: 0.75rem;
	opacity: 0.7;
}

/* Décor végétal (activable dans Personnaliser → Décor végétal)
   Les dessins servent de masques : ils prennent la couleur d'appoint 1.
-------------------------------------------------- */
:root {
	/* Motif de frise, répété à l'horizontale : tige ondulée, quatre feuilles, une fleur. */
	--resinellia-motif-frise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 28'%3E%3Cpath d='M0 14C20 6 60 6 80 14S140 22 160 14' fill='none' stroke='black' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M22 9c1-4.500 5.500-6.500 9.500-5.800C30.500 7.500 26.500 10 22 9z'/%3E%3Cpath d='M50 7.600c2.500-3.800 7-4.600 10.500-3C58.500 8 54 9.400 50 7.600z'/%3E%3Cpath d='M100 19.200c2 4 6.500 5.400 10.300 4.200C109 19.800 104.600 17.800 100 19.200z'/%3E%3Cpath d='M128 20.800c2.800 3.400 7.400 3.800 10.600 1.800C136.200 19 131.800 18.400 128 20.800z'/%3E%3Cg fill='none' stroke='black' stroke-width='0.900'%3E%3Ccircle cx='80' cy='9.800' r='2.300'/%3E%3Ccircle cx='84' cy='12.700' r='2.300'/%3E%3Ccircle cx='82.500' cy='17.400' r='2.300'/%3E%3Ccircle cx='77.500' cy='17.400' r='2.300'/%3E%3Ccircle cx='76' cy='12.700' r='2.300'/%3E%3C/g%3E%3Ccircle cx='80' cy='14' r='1.200'/%3E%3C/svg%3E");

	/* Petite branche à trois feuilles (la même que sous le menu). */
	--resinellia-motif-branche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 14'%3E%3Cpath d='M2 9.500C14 5.500 26 11 38 8.500S56 5 64 6.500' fill='none' stroke='black' stroke-width='1.100' stroke-linecap='round'/%3E%3Cpath d='M16 8c1.200-4 5.200-5.800 8.800-5.200C23.800 6.500 20 8.800 16 8z'/%3E%3Cpath d='M30 10c2.600 3 6.800 3.200 9.400 1.400C37 8.600 32.800 8.200 30 10z'/%3E%3Cpath d='M46 7.200c1-3.600 4.600-5.200 7.800-4.600C53 6 49.600 8 46 7.200z'/%3E%3C/svg%3E");
}

:root {
	/* Séparateur : une fleur à cinq pétales entre deux rameaux à deux feuilles. */
	--resinellia-motif-separateur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 30'%3E%3Cdefs%3E%3Cpath id='p' d='M70 12.300c-3-2.900-3-7.300 0-10.300 3 3 3 7.400 0 10.300z'/%3E%3Cg id='r'%3E%3Cpath d='M4 17.500C18 13.500 34 19.500 57 16' fill='none' stroke='black' stroke-width='1.100' stroke-linecap='round'/%3E%3Cpath d='M15 15.300c1.500-5 6.500-7.500 11-6.500C25 13.300 20 16.300 15 15.300z'/%3E%3Cpath d='M33 17.600c3 3.800 8.200 4 11.400 1.800C41.500 15.900 36.500 15.400 33 17.600z'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23r'/%3E%3Cuse href='%23r' transform='translate(140 0) scale(-1 1)'/%3E%3Cuse href='%23p'/%3E%3Cuse href='%23p' transform='rotate(72 70 15)'/%3E%3Cuse href='%23p' transform='rotate(144 70 15)'/%3E%3Cuse href='%23p' transform='rotate(216 70 15)'/%3E%3Cuse href='%23p' transform='rotate(288 70 15)'/%3E%3Ccircle cx='70' cy='15' r='1.500'/%3E%3C/svg%3E");
}

/* Grande branche au trait, sur le côté droit du pied de page.
   Elle occupe presque toute la hauteur, derrière le contenu, dans la couleur
   du texte du pied de page. Chaque trait se trace l'un après l'autre, une seule fois. */
.resinellia-decor-frise .site-footer {
	position: relative;
	overflow: hidden;
}

/* Retour en haut : une fleur au trait, au pied de la branche, avec une flèche
   qui monte doucement pour indiquer le sens. */
.site-footer {
	position: relative;
}

.site-footer .resinellia-retour-haut {
	position: absolute;
	right: 128px;
	bottom: 6px;
	z-index: 2;
	display: block;
	width: 64px;
	height: 64px;
	color: var(--resinellia-couleur-fleurs, #f1c0b1);
	text-decoration: none;
}

/* Les liens du pied de page prennent la couleur du texte au survol et au focus :
   la fleur, elle, reste rose dans tous les états (survol, clic, déjà cliquée). */
.site-footer a.resinellia-retour-haut:hover,
.site-footer a.resinellia-retour-haut:focus,
.site-footer a.resinellia-retour-haut:active,
.site-footer a.resinellia-retour-haut:visited {
	color: var(--resinellia-couleur-fleurs, #f1c0b1);
	text-decoration: none;
}

.resinellia-retour-haut svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.resinellia-retour-haut__fleur {
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), fill 0.4s ease;
	fill: transparent;
}

.resinellia-retour-haut__fleche {
	animation: resinellia-retour-haut 2.2s ease-in-out infinite;
}

/* Survol : la fleur tourne d'un pétale et se teinte, la flèche accélère. */
.resinellia-retour-haut:hover .resinellia-retour-haut__fleur,
.resinellia-retour-haut:focus-visible .resinellia-retour-haut__fleur {
	transform: rotate(72deg) scale(1.08);
	fill: color-mix(in srgb, currentColor 16%, transparent);
}

.resinellia-retour-haut:hover .resinellia-retour-haut__fleche,
.resinellia-retour-haut:focus-visible .resinellia-retour-haut__fleche {
	animation-duration: 0.9s;
}

.resinellia-retour-haut:focus-visible {
	outline: 1px dashed currentColor;
	outline-offset: 4px;
	border-radius: 50%;
}

/* Le menu du bas de page s'arrête avant la fleur, pour ne pas passer dessous. */
@media (min-width: 768px) {
	.site-footer .footer-navigation {
		margin-right: 190px;
	}
}

/* La flèche monte, s'efface en haut, puis repart du bas. */
@keyframes resinellia-retour-haut {
	0% {
		opacity: 0;
		transform: translateY(5px);
	}

	30%,
	60% {
		opacity: 1;
		transform: translateY(0);
	}

	100% {
		opacity: 0;
		transform: translateY(-6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.resinellia-retour-haut__fleche {
		animation: none;
	}
}

@media (max-width: 767px) {
	.site-footer .resinellia-retour-haut {
		right: 16px;
		bottom: 18px;
		width: 52px;
		height: 52px;
	}
}

.resinellia-decor-frise .site-footer > .site-container {
	position: relative;
	z-index: 1;
}

.resinellia-branche-pied {
	position: absolute;
	right: 0;
	bottom: 0;
	width: auto;
	height: 94%;
	max-height: 420px;
	color: var(--resinellia-couleur-pied-texte);
	overflow: visible;
	pointer-events: none;
}

.resinellia-branche-pied path {
	opacity: 0.38;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 1.1s ease-out;
	transition-delay: calc(var(--ordre, 0) * 90ms);
}

.resinellia-branche-pied.est-visible path {
	stroke-dashoffset: 0;
}

/* Fleurs roses : elles grossissent, deviennent plus floues et plus lumineuses,
   puis reviennent, chacune à son rythme et sans jamais s'arrêter.
   Elles apparaissent une fois la branche dessinée.
   Deux formes au choix : petites fleurs à cinq pétales ou halos ronds. */
.resinellia-branche-pied--fleur {
	--fleur-flou-min: 0.3px;
	--fleur-flou-max: 1.5px;
	--fleur-rotation: 28deg;
}

.resinellia-branche-pied--halo {
	--fleur-flou-min: 1.5px;
	--fleur-flou-max: 3.5px;
	--fleur-rotation: 0deg;
}

.resinellia-branche-pied__fleur {
	fill: var(--resinellia-couleur-fleurs, #f08fa6);
	stroke: none;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	filter: blur(var(--fleur-flou-min));
}

.resinellia-branche-pied.est-visible .resinellia-branche-pied__fleur {
	animation:
		resinellia-fleur-apparition 1.4s ease-out both,
		resinellia-fleur-halo calc(3.6s + var(--rang, 0) * 0.35s) ease-in-out infinite alternate;
	animation-delay:
		calc(2.6s + var(--rang, 0) * 0.3s),
		calc(4s + var(--rang, 0) * 0.3s);
}

@keyframes resinellia-fleur-apparition {
	from {
		opacity: 0;
		transform: scale(0.3);
	}

	to {
		opacity: 0.55;
		transform: scale(0.8);
	}
}

@keyframes resinellia-fleur-halo {
	from {
		opacity: 0.55;
		filter: blur(var(--fleur-flou-min));
		transform: scale(0.8);
	}

	to {
		opacity: 1;
		filter: blur(var(--fleur-flou-max));
		transform: scale(1.6) rotate(var(--fleur-rotation));
	}
}

/* Animations réduites : la branche et les halos sont affichés, immobiles. */
@media (prefers-reduced-motion: reduce) {
	.resinellia-branche-pied.est-visible .resinellia-branche-pied__fleur {
		opacity: 0.6;
		animation: none;
	}
}

@media (max-width: 767px) {
	.resinellia-branche-pied {
		height: 60%;
		opacity: 0.55;
	}
}

/* Séparateur floral : un filet de chaque côté d'une petite branche centrée. */
.resinellia-decor-separateur.woocommerce .related.products,
.resinellia-decor-separateur.woocommerce .up-sells.products {
	padding-top: 0;
	border-top: 0;
}

.resinellia-decor-separateur.woocommerce .related.products::before,
.resinellia-decor-separateur.woocommerce .up-sells.products::before {
	content: "";
	display: block;
	height: 42px;
	margin-bottom: 36px;
	background: var(--resinellia-couleur-appoint-1);
	-webkit-mask:
		var(--resinellia-motif-separateur) center / 196px 42px no-repeat,
		linear-gradient(#000, #000) left center / calc(50% - 118px) 1px no-repeat,
		linear-gradient(#000, #000) right center / calc(50% - 118px) 1px no-repeat;
	mask:
		var(--resinellia-motif-separateur) center / 196px 42px no-repeat,
		linear-gradient(#000, #000) left center / calc(50% - 118px) 1px no-repeat,
		linear-gradient(#000, #000) right center / calc(50% - 118px) 1px no-repeat;
}

/* Accessibilité
-------------------------------------------------- */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	clip: auto;
	background: var(--resinellia-couleur-fond);
	color: var(--resinellia-couleur-texte);
}

/* Messages des formulaires Brevo (extension officielle) : tons doux du thème.
   L'extension cible son formulaire par un identifiant (#sib_signup_form_1…),
   d'où les !important, indispensables pour reprendre la main. */
form.sib_signup_form p.sib-alert-message {
	margin: 0 0 12px !important;
	padding: 10px 14px !important;
	font-size: 0.875rem;
	line-height: 1.5;
	text-align: left;
	border: 0 !important;
	border-left: 3px solid currentColor !important;
	border-radius: 0 !important;
}

form.sib_signup_form p.sib-alert-message-success {
	color: var(--resinellia-couleur-principale, #25483e) !important;
	background: color-mix(in srgb, var(--resinellia-couleur-principale, #25483e) 8%, #fff) !important;
}

form.sib_signup_form p.sib-alert-message-error,
form.sib_signup_form p.sib-alert-message-warning {
	color: #8a3b3b !important;
	background: color-mix(in srgb, var(--resinellia-couleur-secondaire, #f1c0b1) 30%, #fff) !important;
}

form.sib_signup_form .sib_loader img {
	display: inline-block;
}