/*
Theme Name: Roosty Classroom
Theme URI: https://roostyclassroom.fr/
Description: Thème enfant de Twenty Twenty-Five pour le site de Roosty Classroom. Charte de l'app, polices hébergées sur le site, aucun service tiers chargé.
Author: Idéalternative
Author URI: https://idealternative.fr/
Template: twentytwentyfive
Version: 4.3.12
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roosty-classroom
*/

/* Couleurs, polices et tailles : theme.json. Ici, ce que theme.json ne sait pas dire. */

/* ---------------------------------------------------------------- lisibilité
   Aucun mot coupé, aucune ponctuation seule en début de ligne
   (les espaces insécables sont dans le texte), des lignes équilibrées. */
body {
	hyphens: manual;
	-webkit-hyphens: manual;
	overflow-wrap: normal;
	word-break: normal;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .roosty-chiffre {
	text-wrap: balance;
	hyphens: none;
}
p, li, figcaption, summary, td {
	text-wrap: pretty;
	hyphens: none;
}
/* Les adresses e-mail longues passent à la ligne entières, jamais coupées au milieu. */
a[href^="mailto:"] {
	white-space: nowrap;
}

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-2);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------------------------------------------------------------- sections */
.roosty-section {
	padding-top: clamp(4.5rem, 3rem + 5vw, 7.5rem) !important;
	padding-bottom: clamp(4.5rem, 3rem + 5vw, 7.5rem) !important;
}
.roosty-section--serree {
	padding-top: clamp(3rem, 2rem + 3vw, 4.5rem) !important;
	padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem) !important;
}

/* Surtitre en petites capitales espacées, au-dessus des titres de section. */
.roosty-surtitre {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 0.25rem !important;
}
/* Trait d'accent sous les titres de section. */
.roosty-titre-section::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 1.1rem;
	border-radius: 4px;
	background: var(--wp--preset--color--accent-2);
}
.roosty-titre-section.has-text-align-center::after {
	margin-left: auto;
	margin-right: auto;
}
.roosty-chapo {
	color: var(--wp--preset--color--accent-4);
	font-size: 1.125rem;
}
.has-blanc-color .roosty-chapo {
	color: rgb(255 255 255 / 0.82);
}

/* ---------------------------------------------------------------- en-tête */
/* Aucune marge entre l'en-tête, le contenu et le pied de page :
   on annule l'écart que WordPress met entre les blocs de premier niveau. */
.wp-site-blocks > * + *,
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}
.wp-site-blocks > main > .wp-block-post-content,
.wp-block-post-content > .alignfull,
main > .alignfull {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}

/* En-tête collant, en relief : il flotte au-dessus du contenu. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}
.roosty-entete {
	position: relative;
	z-index: 50;
	background-image: linear-gradient(180deg, #4A2A1E 0%, #3A2017 100%) !important;
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.08),
		inset 0 -1px 0 rgb(0 0 0 / 0.25),
		0 6px 14px rgb(36 19 13 / 0.22),
		0 16px 36px rgb(36 19 13 / 0.18);
}
.roosty-logo img {
	width: 44px;
	height: 44px;
	border-radius: 11px;
}
.roosty-entete .roosty-marque a {
	text-decoration: none;
}
.roosty-entete .wp-block-navigation {
	font-weight: 600;
	font-size: 0.9375rem;
}
.roosty-entete .wp-block-navigation a:hover {
	color: var(--wp--preset--color--accent-2);
}
.roosty-entete .wp-block-navigation-item__content,
.roosty-entete .wp-block-button__link {
	white-space: nowrap;
}
.roosty-entete .wp-block-button__link {
	padding: 0.6em 1.1em;
	font-size: 0.9375rem;
}
@media (max-width: 781px) {
	.roosty-entete .wp-block-buttons {
		display: none;
	}
}

/* ---------------------------------------------------------------- boutons */
.wp-element-button {
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.wp-block-button:not(.is-style-outline) .wp-element-button {
	box-shadow: 0 2px 0 rgb(0 0 0 / 0.18), 0 10px 22px rgb(181 42 89 / 0.28);
}
.wp-element-button:hover {
	transform: translateY(-2px);
}
.is-style-outline .wp-element-button {
	border-width: 2px;
}
.has-blanc-color .is-style-outline .wp-element-button {
	color: var(--wp--preset--color--blanc);
	border-color: rgb(255 255 255 / 0.55);
}

/* ---------------------------------------------------------------- ouverture (hero) */
.roosty-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--wp--preset--color--brun);
	background-image:
		repeating-linear-gradient(to bottom, transparent 0 31px, rgb(255 255 255 / 0.045) 31px 32px),
		linear-gradient(125deg, #24130D 0%, #3A2017 55%, #5B1F3A 100%);
}
/* Marge rouge du cahier Seyès, discrète. */
.roosty-hero::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 6%;
	width: 2px;
	background: rgb(181 42 89 / 0.35);
}
.roosty-hero > * {
	position: relative;
}
.roosty-hero h1 {
	color: var(--wp--preset--color--blanc);
}
.roosty-hero .roosty-surtitre {
	color: var(--wp--preset--color--accent-2);
}
.roosty-hero p {
	color: rgb(255 255 255 / 0.88);
}

.roosty-hero-visuel {
	position: relative;
	padding: 1.5rem 0;
}
.roosty-hero-visuel .roosty-capture img {
	transform: rotate(-1.5deg);
}
.roosty-flotte {
	position: absolute;
	margin: 0 !important;
	z-index: 2;
}
.roosty-flotte img {
	width: 76px;
	height: 76px;
	filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.35));
}
.roosty-flotte-1 { top: -8px; left: -22px; transform: rotate(-10deg); }
.roosty-flotte-2 { top: -18px; right: 14%; transform: rotate(8deg); }
.roosty-flotte-3 { bottom: -6px; left: 12%; transform: rotate(6deg); }
.roosty-flotte-4 { bottom: 4%; right: -18px; transform: rotate(-7deg); }
@media (prefers-reduced-motion: no-preference) {
	.roosty-flotte img {
		animation: roosty-flotte 6s ease-in-out infinite;
	}
	.roosty-flotte-2 img { animation-delay: -1.5s; }
	.roosty-flotte-3 img { animation-delay: -3s; }
	.roosty-flotte-4 img { animation-delay: -4.5s; }
}
@keyframes roosty-flotte {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -8px; }
}

/* Pastille « autocollant ». */
.roosty-sticker {
	position: absolute;
	z-index: 3;
	top: 10%;
	left: -34px;
	width: 112px;
	height: 112px;
	margin: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--brun) !important;
	font-weight: 800;
	font-size: 0.875rem;
	line-height: 1.15;
	transform: rotate(-12deg);
	box-shadow: 0 10px 24px rgb(0 0 0 / 0.3);
}
@media (max-width: 781px) {
	.roosty-flotte img { width: 52px; height: 52px; }
	.roosty-flotte-1 { left: 0; }
	.roosty-flotte-4 { right: 0; }
	.roosty-sticker { left: auto; right: 4px; top: -10px; width: 92px; height: 92px; font-size: 0.75rem; }
}

/* En-tête des pages intérieures. */
.roosty-entete-page h1 {
	font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
}

/* ---------------------------------------------------------------- captures */
.roosty-capture img {
	aspect-ratio: 16 / 10;
	width: 100%;
	height: auto;
	border-radius: 14px;
	/* relief : un liseré clair, une ombre de contact et une ombre portée large */
	outline: 1px solid rgb(58 32 23 / 0.10);
	outline-offset: -1px;
	box-shadow:
		0 1px 2px rgb(58 32 23 / 0.10),
		0 8px 16px rgb(58 32 23 / 0.10),
		0 28px 56px -12px rgb(58 32 23 / 0.32);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.roosty-capture:not(.roosty-hero .roosty-capture) img:hover {
		transform: translateY(-4px);
		box-shadow:
			0 2px 4px rgb(58 32 23 / 0.10),
			0 14px 24px rgb(58 32 23 / 0.12),
			0 40px 70px -14px rgb(58 32 23 / 0.38);
	}
}
.roosty-hero .roosty-capture img {
	box-shadow: 0 24px 60px rgb(0 0 0 / 0.45);
}
.roosty-capture figcaption {
	margin-top: 0.9rem;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--accent-4);
	text-align: left;
}
.roosty-iphone img {
	aspect-ratio: 1320 / 2868;
	width: 100%;
	height: auto;
	border-radius: 30px;
	border: 6px solid var(--wp--preset--color--brun);
	box-shadow: 0 18px 40px rgb(58 32 23 / 0.25);
}
.roosty-iphone--penche img {
	transform: rotate(4deg);
}
@media (max-width: 781px) {
	.roosty-iphone img {
		border-radius: 20px;
		border-width: 4px;
	}
	.roosty-iphone--penche img {
		transform: rotate(2deg) scale(0.96);
	}
	/* Grille d'outils : deux par ligne sur téléphone. */
	.wp-block-columns.roosty-grille-outils {
		flex-wrap: wrap !important;
		gap: 1.5rem 1rem !important;
	}
	.wp-block-columns.roosty-grille-outils > .wp-block-column {
		flex-basis: calc(50% - 0.5rem) !important;
		flex-grow: 0 !important;
	}
}

/* ---------------------------------------------------------------- cartes */
.roosty-carte {
	height: 100%;
	border-radius: 18px;
	border: 1px solid rgb(58 32 23 / 0.08);
	box-shadow: 0 1px 2px rgb(58 32 23 / 0.05), 0 10px 26px rgb(58 32 23 / 0.07);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.roosty-carte:hover {
	transform: translateY(-4px);
	box-shadow: 0 2px 4px rgb(58 32 23 / 0.06), 0 18px 36px rgb(58 32 23 / 0.12);
}
.roosty-carte--accent {
	border-left: 5px solid var(--wp--preset--color--accent-1);
}
.roosty-carte--forte {
	outline: 3px solid var(--wp--preset--color--accent-2);
	outline-offset: -3px;
}
.roosty-carte p:last-child {
	margin-bottom: 0;
}

/* Illustrations d'outils. */
.roosty-outil img {
	width: 72px;
	height: 72px;
	aspect-ratio: 1;
}
.roosty-outil--grand {
	text-align: center;
}
.roosty-outil--grand img {
	width: 96px;
	height: 96px;
	transition: transform 0.2s ease;
}
.roosty-outil--grand:hover img {
	transform: rotate(-6deg) scale(1.06);
}

/* Chiffres clés. */
.roosty-chiffre {
	font-family: var(--wp--preset--font-family--life-savers);
	font-weight: 700;
	font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	line-height: 1;
	margin-bottom: 0.4rem !important;
}

/* Étapes numérotées. */
.roosty-etape-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--blanc);
	font-family: var(--wp--preset--font-family--life-savers);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1;
	transform: rotate(-6deg);
}

/* Une journée avec Roosty : frise. */
.roosty-cahier {
	background-color: #FBF8F4;
	background-image:
		repeating-linear-gradient(to bottom, transparent 0 27px, rgb(123 45 79 / 0.07) 27px 28px);
}
.roosty-moment {
	position: relative;
	padding: 1.25rem 0 1.25rem 0;
	border-bottom: 2px dashed rgb(58 32 23 / 0.12);
}
.roosty-moment:last-child {
	border-bottom: 0;
}
.roosty-heure {
	flex: 0 0 5.5rem;
	font-family: var(--wp--preset--font-family--life-savers);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.2;
	color: var(--wp--preset--color--accent-1);
	margin: 0 !important;
}
.roosty-moment .roosty-outil img {
	width: 56px;
	height: 56px;
}
.roosty-moment > .roosty-outil {
	flex: 0 0 56px;
	margin: 0;
}
.roosty-moment > .wp-block-group {
	flex: 1 1 auto;
	min-width: 0;
}
@media (max-width: 600px) {
	.roosty-heure {
		flex-basis: 4.25rem;
		font-size: 1.25rem;
	}
	.roosty-moment .roosty-outil img {
		width: 44px;
		height: 44px;
	}
	.roosty-moment > .roosty-outil {
		flex-basis: 44px;
	}
}
.roosty-moment h3 {
	margin: 0 0 0.25rem;
}
.roosty-moment p {
	margin: 0;
}

/* ---------------------------------------------------------------- listes */
/* Puces « coche » dans la charte. */
.roosty-coches {
	list-style: none;
	padding-left: 0;
}
.roosty-coches li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.7rem;
}
.roosty-coches li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.has-brun-background-color .roosty-coches li::before {
	background-color: var(--wp--preset--color--accent-2);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%233A2017' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.roosty-sans-puces {
	list-style: none;
	padding-left: 0;
}
.roosty-sans-puces li {
	margin-bottom: 0.5em;
}

/* ---------------------------------------------------------------- FAQ */
.wp-block-details.roosty-faq {
	background: var(--wp--preset--color--blanc);
	border: 1px solid rgb(58 32 23 / 0.08);
	border-radius: 14px;
	padding: 1.1rem 1.4rem;
	margin-bottom: 0.75rem;
}
.wp-block-details.roosty-faq summary {
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
	color: var(--wp--preset--color--accent-3);
}
.wp-block-details.roosty-faq summary::-webkit-details-marker {
	display: none;
}
.wp-block-details.roosty-faq summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: -0.1em;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp--preset--color--accent-1);
	transition: transform 0.2s ease;
}
.wp-block-details.roosty-faq[open] summary::after {
	transform: rotate(45deg);
}
.wp-block-details.roosty-faq[open] summary {
	margin-bottom: 0.6rem;
}

/* ---------------------------------------------------------------- citation */
.roosty-citation {
	font-family: var(--wp--preset--font-family--life-savers);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	line-height: 1.3;
	color: var(--wp--preset--color--accent-3);
}

/* ---------------------------------------------------------------- pied de page */
.roosty-pied a {
	text-decoration: none;
}
.roosty-pied a:hover {
	text-decoration: underline;
}

/* Tableaux de la politique de confidentialité. */
.wp-block-table.roosty-tableau td,
.wp-block-table.roosty-tableau th {
	border-color: var(--wp--preset--color--accent-5);
	vertical-align: top;
}

/* ---------------------------------------------------------------- appel final */
.roosty-appel:not(.roosty-appel--clair) .wp-block-button__link {
	background-color: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--accent-1);
	box-shadow: 0 10px 24px rgb(0 0 0 / 0.18);
}
.roosty-appel:not(.roosty-appel--clair) .wp-block-button__link:hover,
.roosty-appel:not(.roosty-appel--clair) .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--brun);
}

/* ---------------------------------------------------------------- ressources */
/* Fil d'Ariane. */
.roosty-fil-ariane ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}
.roosty-fil-ariane li:not(:last-child)::after {
	content: "›";
	margin-left: 0.5rem;
	opacity: 0.6;
}
.roosty-fil-ariane a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}
.roosty-fil-ariane [aria-current] {
	opacity: 0.75;
}

/* Étiquette de catégorie. */
.roosty-etiquette a,
.roosty-filtres a {
	display: inline-block;
	padding: 0.3em 0.9em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-5);
	color: var(--wp--preset--color--accent-3);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
}
.roosty-etiquette a:hover,
.roosty-filtres a:hover {
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--brun);
}
.roosty-filtres {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin: 0 auto 3rem;
	padding: 0;
	list-style: none;
}

/* Cartes d'articles. */
.roosty-carte-article {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.roosty-carte-article .wp-block-post-featured-image {
	margin: -1.5rem -1.5rem 0.5rem;
}
.roosty-carte-article .wp-block-post-featured-image img {
	border-radius: 16px 16px 0 0;
}
.roosty-carte-titre {
	font-family: var(--wp--preset--font-family--systeme);
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 0;
}
.roosty-carte-titre a {
	text-decoration: none;
	color: var(--wp--preset--color--accent-3);
}
.roosty-carte-titre a:hover {
	text-decoration: underline;
}
.roosty-date {
	margin-top: auto;
	font-size: 0.875rem;
	color: var(--wp--preset--color--accent-4);
}
.roosty-liste-articles .wp-block-query-pagination {
	margin-top: 3rem;
	font-weight: 700;
}

/* Article. */
.roosty-article-tete {
	padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
	padding-bottom: 1rem;
}
.roosty-article-titre {
	font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
	margin: 0.75rem 0 1rem;
}
.roosty-meta {
	gap: 0.25rem 1.25rem;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--accent-4);
}
.roosty-meta p {
	margin: 0;
}
.roosty-article-image img {
	border-radius: 16px;
}
.roosty-article-texte h2 {
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
	margin-top: 3rem;
}
.roosty-article-texte h3 {
	margin-top: 2rem;
}
.roosty-article-texte li {
	margin-bottom: 0.5rem;
}
.roosty-en-bref {
	padding: 1.25rem 1.5rem;
	border-left: 5px solid var(--wp--preset--color--accent-2);
	border-radius: 0 12px 12px 0;
	background: var(--wp--preset--color--accent-5);
}
.roosty-en-bref p {
	margin: 0;
}
.roosty-sources {
	margin-top: 2.5rem;
	color: var(--wp--preset--color--accent-4);
}
.roosty-article-pied {
	padding-top: 3rem;
	padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
.roosty-article-pied > * {
	max-width: var(--wp--style--global--wide-size, 1160px);
}
.roosty-article-nav {
	margin-bottom: 3rem;
	font-weight: 700;
}
.roosty-encart-inscription .roosty-titre-section {
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
}
.roosty-liste-articles .roosty-encart-inscription {
	margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}

/* ---------------------------------------------------------------- bandeau d'ouverture : variantes claires
   Ajoutez l'une de ces classes au groupe « roosty-hero » (Avancé > Classe CSS additionnelle).
   Elles remplacent le fond brun par un fond clair, sans image : tout est en CSS. */
.roosty-hero.roosty-hero--organique,
.roosty-hero.roosty-hero--carreaux,
.roosty-hero.roosty-hero--ecran {
	color: var(--wp--preset--color--contrast) !important;
}
.roosty-hero--organique::before,
.roosty-hero--carreaux::before,
.roosty-hero--ecran::before {
	display: none;
}
:is(.roosty-hero--organique, .roosty-hero--carreaux, .roosty-hero--ecran) h1 {
	color: var(--wp--preset--color--accent-3);
}
:is(.roosty-hero--organique, .roosty-hero--carreaux, .roosty-hero--ecran) p {
	color: var(--wp--preset--color--contrast);
}
:is(.roosty-hero--organique, .roosty-hero--carreaux, .roosty-hero--ecran) .roosty-surtitre {
	color: var(--wp--preset--color--cannelle);
}
:is(.roosty-hero--organique, .roosty-hero--carreaux, .roosty-hero--ecran) .is-style-outline .wp-element-button {
	color: var(--wp--preset--color--accent-3) !important;
	border-color: currentColor;
}
:is(.roosty-hero--organique, .roosty-hero--carreaux, .roosty-hero--ecran) .roosty-capture img {
	box-shadow: 0 24px 50px rgb(58 32 23 / 0.18);
}

:is(.roosty-hero--organique, .roosty-hero--carreaux, .roosty-hero--ecran) .roosty-hero-visuel {
	isolation: isolate;
}

/* A. Fond papier et formes organiques douces. */
.roosty-hero.roosty-hero--organique {
	background-color: var(--wp--preset--color--base) !important;
	background-image:
		radial-gradient(38% 46% at 92% 8%, rgb(223 165 54 / 0.30), transparent 70%),
		radial-gradient(34% 40% at 72% 92%, rgb(181 42 89 / 0.14), transparent 70%),
		radial-gradient(30% 38% at 4% 96%, rgb(229 218 212 / 0.9), transparent 70%) !important;
}
.roosty-hero--organique .roosty-hero-visuel::before {
	content: "";
	position: absolute;
	inset: -4% -2% -8% 4%;
	z-index: -1;
	background:
		radial-gradient(60% 60% at 30% 70%, rgb(181 42 89 / 0.16), transparent 70%),
		rgb(223 165 54 / 0.24);
	border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%;
}

/* B. Petits carreaux très discrets, seulement derrière la capture. */
.roosty-hero.roosty-hero--carreaux {
	background-color: var(--wp--preset--color--base) !important;
	background-image: none !important;
}
.roosty-hero--carreaux .roosty-hero-visuel::before {
	content: "";
	position: absolute;
	inset: -12% -10% -12% -6%;
	z-index: -1;
	background-image:
		linear-gradient(to right, rgb(46 36 36 / 0.06) 1px, transparent 1px),
		linear-gradient(to bottom, rgb(46 36 36 / 0.06) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
	mask-image: radial-gradient(closest-side, #000 55%, transparent);
}

/* C. L'écran de la classe : la capture dans un écran stylisé, et des gommettes. */
.roosty-hero.roosty-hero--ecran {
	background-color: var(--wp--preset--color--base) !important;
	background-image: linear-gradient(160deg, var(--wp--preset--color--base) 0%, var(--wp--preset--color--base) 45%, var(--wp--preset--color--accent-5) 100%) !important;
}
.roosty-hero--ecran .roosty-hero-visuel .roosty-capture img {
	transform: none;
	border: 12px solid var(--wp--preset--color--contrast);
	border-radius: 18px;
}
.roosty-hero--ecran .roosty-hero-visuel .roosty-capture::after {
	/* le pied de l'écran */
	content: "";
	display: block;
	width: 22%;
	height: 14px;
	margin: 0 auto;
	background: var(--wp--preset--color--contrast);
	border-radius: 0 0 10px 10px;
	opacity: 0.85;
}
.roosty-hero--ecran .roosty-hero-visuel::before {
	/* gommettes */
	content: "";
	position: absolute;
	inset: -8% -6% -4% -8%;
	z-index: -1;
	background-image:
		radial-gradient(circle at 6% 14%, var(--wp--preset--color--accent-2) 0 14px, transparent 15px),
		radial-gradient(circle at 96% 8%, var(--wp--preset--color--accent-1) 0 10px, transparent 11px),
		radial-gradient(circle at 99% 70%, var(--wp--preset--color--cannelle) 0 16px, transparent 17px),
		radial-gradient(circle at 2% 82%, var(--wp--preset--color--accent-1) 0 8px, transparent 9px),
		radial-gradient(circle at 48% 100%, var(--wp--preset--color--accent-2) 0 9px, transparent 10px);
}

/* ---------------------------------------------------------------- sections foncées
   Brun profond #3A2017 et prune #7B2D4F. Contrastes vérifiés (WCAG AA) :
   blanc 15:1 sur brun, 9:1 sur prune ; safran 6,8:1 sur brun ; sable 6,6:1 sur prune. */
.roosty-fonce .wp-block-heading:not(.roosty-carte *),
.roosty-fonce .roosty-moment h3 {
	color: var(--wp--preset--color--blanc);
}
.roosty-fonce .roosty-chapo,
.roosty-fonce > p,
.roosty-fonce .wp-block-column > p,
.roosty-fonce .roosty-coches li {
	color: rgb(255 255 255 / 0.9);
}
.roosty-fonce--accent-3 .roosty-surtitre {
	color: var(--wp--preset--color--accent-5) !important;
}
.roosty-fonce .roosty-capture figcaption {
	color: rgb(255 255 255 / 0.85);
}
.roosty-fonce .roosty-capture img {
	outline-color: rgb(255 255 255 / 0.14);
	box-shadow:
		0 1px 2px rgb(0 0 0 / 0.2),
		0 10px 20px rgb(0 0 0 / 0.2),
		0 30px 60px -12px rgb(0 0 0 / 0.5);
}
.roosty-fonce .roosty-carte {
	box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.45);
}
.roosty-fonce .roosty-carte p {
	color: var(--wp--preset--color--contrast);
}
.roosty-fonce .is-style-outline .wp-element-button {
	color: var(--wp--preset--color--blanc) !important;
	border-color: rgb(255 255 255 / 0.7);
}
.roosty-fonce .is-style-outline .wp-element-button:hover {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--brun) !important;
}
.roosty-fonce .roosty-outil--grand img {
	filter: drop-shadow(0 8px 16px rgb(0 0 0 / 0.35));
}
/* Le titre de section garde son trait safran, visible sur les deux fonds. */
.roosty-fonce .roosty-chiffre {
	color: var(--wp--preset--color--accent-2) !important;
}
.roosty-fonce .roosty-citation {
	color: var(--wp--preset--color--blanc);
}
.roosty-fonce .roosty-iphone img {
	border-color: #1E100B;
	box-shadow: 0 24px 50px rgb(0 0 0 / 0.5);
}
.roosty-appel--clair .wp-block-button__link {
	background-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--blanc);
}
/* Les cartes blanches posées sur un fond foncé retrouvent le texte et les liens du fond clair. */
.roosty-fonce .roosty-carte {
	color: var(--wp--preset--color--contrast);
}
.roosty-fonce .roosty-carte a:not(.wp-element-button) {
	color: var(--wp--preset--color--accent-3) !important;
}

/* ---------------------------------------------------------------- v4 : catalogue, grilles, pages Quizz, Poésie, Télécommande */
/* Les ancres ne passent pas sous l'en-tête collant. */
[id] {
	scroll-margin-top: 110px;
}

/* Grilles de cartes : 3 colonnes, 2 sur tablette, 1 sur téléphone. */
.roosty-grille,
.roosty-catalogue {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	max-width: 1160px;
	margin-inline: auto !important;
}
.roosty-grille--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.roosty-grille > *,
.roosty-catalogue > * {
	margin: 0 !important;
	max-width: none !important;
}
@media (max-width: 1000px) {
	.roosty-grille,
	.roosty-grille--4,
	.roosty-catalogue {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.roosty-grille,
	.roosty-grille--4,
	.roosty-catalogue {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Sommaire des rayons. */
.roosty-sommaire {
	margin-bottom: 0;
}
.roosty-sommaire a span {
	display: inline-block;
	margin-left: 0.35em;
	padding: 0 0.45em;
	border-radius: 999px;
	background: var(--wp--preset--color--blanc);
	font-size: 0.75rem;
}

/* Rayons du catalogue. */
.roosty-rayon {
	max-width: 1160px;
	margin: 0 auto 3.5rem !important;
}
.roosty-rayon:last-child {
	margin-bottom: 0 !important;
}
.roosty-rayon-titre {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3em 0.75em;
	margin-bottom: 0.25rem;
	font-family: var(--wp--preset--font-family--life-savers);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.roosty-compte {
	font-family: var(--wp--preset--font-family--systeme, sans-serif);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 0.15em 0.7em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--brun);
}
.roosty-rayon-desc {
	margin-bottom: 1.25rem;
	color: var(--wp--preset--color--accent-4);
}

/* Carte d'un outil : icône, nom, une phrase. */
.roosty-outil-carte {
	gap: 1rem !important;
	padding: 1.1rem 1.2rem;
	border-radius: 16px;
	background: var(--wp--preset--color--blanc);
	box-shadow: 0 1px 2px rgb(58 32 23 / 0.06), 0 8px 20px -10px rgb(58 32 23 / 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.roosty-outil-carte:hover {
	transform: translateY(-2px);
	box-shadow: 0 1px 2px rgb(58 32 23 / 0.06), 0 14px 28px -12px rgb(58 32 23 / 0.35);
}
.roosty-outil-carte .roosty-outil {
	flex: 0 0 56px;
	margin: 0;
}
.roosty-outil-carte .roosty-outil img {
	width: 56px;
	height: 56px;
}
.roosty-outil-carte > .wp-block-group {
	min-width: 0;
}
.roosty-outil-nom {
	margin: 0 0 0.2rem !important;
	line-height: 1.3;
	color: var(--wp--preset--color--contrast);
}
.roosty-outil-nom a {
	color: var(--wp--preset--color--accent-3);
}
.roosty-outil-desc {
	margin: 0 !important;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--wp--preset--color--accent-4);
}

/* Catalogue compact, dans le bouton à déplier de l'accueil. */
.roosty-depli {
	max-width: 1160px !important;
	margin: 2rem auto 0 !important;
}
.roosty-depli > summary {
	display: table;
	margin: 0 auto;
	padding: 0.8em 1.6em;
	border: 2px solid rgb(255 255 255 / 0.7);
	border-radius: 12px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	list-style: none;
	transition: background 0.2s ease, color 0.2s ease;
}
.roosty-depli > summary::-webkit-details-marker {
	display: none;
}
.roosty-depli > summary::after {
	content: "↓";
	display: inline-block;
	margin-left: 0.6em;
	transition: transform 0.2s ease;
}
.roosty-depli[open] > summary::after {
	transform: rotate(180deg);
}
.roosty-depli > summary:hover,
.roosty-depli > summary:focus-visible {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--brun);
}
.roosty-depli[open] > summary {
	margin-bottom: 2.5rem;
}
.roosty-depli .roosty-rayon-titre {
	margin-top: 2rem;
	color: var(--wp--preset--color--blanc);
}
.roosty-catalogue--compact {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.6rem;
}
@media (max-width: 1000px) {
	.roosty-catalogue--compact {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.roosty-catalogue--compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.roosty-outil-puce {
	gap: 0.6rem !important;
	padding: 0.45rem 0.7rem 0.45rem 0.45rem;
	border-radius: 12px;
	background: rgb(255 255 255 / 0.08);
}
.roosty-outil-puce .roosty-outil {
	flex: 0 0 40px;
	margin: 0;
}
.roosty-outil-puce .roosty-outil img {
	width: 40px;
	height: 40px;
}
.roosty-outil-puce .roosty-outil-nom {
	margin: 0 !important;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--blanc);
	min-width: 0;
	overflow-wrap: break-word;
}

/* Écrans de l'iPhone en rangées, et la montre. */
.roosty-iphones .roosty-iphone {
	max-width: 280px;
	margin-inline: auto;
}
.roosty-iphones .roosty-iphone figcaption {
	text-align: center;
}
.roosty-fonce .roosty-iphone figcaption {
	color: rgb(255 255 255 / 0.85);
}
.roosty-montre img {
	max-width: 320px;
	margin-inline: auto;
	border-radius: 28px;
}
.roosty-fonce .roosty-montre figcaption {
	color: rgb(255 255 255 / 0.85);
	text-align: center;
}

/* Sous-menu de l'en-tête sur fond brun. */
.roosty-entete .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--brun) !important;
	border: 0 !important;
	border-radius: 12px;
	padding: 0.5rem 0 !important;
	box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.5);
}
.roosty-entete .wp-block-navigation__submenu-container a {
	padding: 0.45rem 1.1rem !important;
}

/* Les grands blocs de l'accueil. */
.roosty-bloc-icones {
	gap: 0.4rem !important;
	margin-bottom: 1rem !important;
}
.roosty-bloc-icones .roosty-outil {
	flex: 0 0 48px;
	margin: 0;
}
.roosty-bloc-icones .roosty-outil img {
	width: 48px;
	height: 48px;
}
.roosty-bloc-titre {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3em 0.6em;
}
.roosty-bloc-titre a {
	text-decoration: none;
}
.roosty-bloc-titre a:hover {
	text-decoration: underline;
}
@media (max-width: 400px) {
	.roosty-bloc-icones .roosty-outil {
		flex-basis: 40px;
	}
	.roosty-bloc-icones .roosty-outil img {
		width: 40px;
		height: 40px;
	}
}

/* ---------------------------------------------------------------- v4.2 : jamais de bloc trop étroit
   Au-dessus de 782 px, WordPress garde toutes les colonnes sur une ligne : à 3 ou 4 colonnes, sur tablette,
   les cartes deviennent trop étroites. Les rangées dont aucune colonne n'a de largeur imposée passent donc
   à la ligne dès qu'une colonne descendrait sous 300 px. */
@media (min-width: 782px) {
	body .wp-block-columns:not(.is-not-stacked-on-mobile):not(:has(> .wp-block-column[style*="flex-basis"])) {
		flex-wrap: wrap !important;
		justify-content: center;
	}
	body .wp-block-columns:not(.is-not-stacked-on-mobile):not(:has(> .wp-block-column[style*="flex-basis"])) > .wp-block-column {
		flex: 1 1 0 !important;
		min-width: 220px;
	}
}
/* Sur tablette : deux blocs par rangée, le dernier seul reste à la même largeur, centré. */
@media (min-width: 782px) and (max-width: 1100px) {
	body .wp-block-columns:not(.is-not-stacked-on-mobile):not(:has(> .wp-block-column[style*="flex-basis"])) > .wp-block-column {
		flex: 0 1 calc(50% - 1.25rem) !important;
	}
}
/* Deux colonnes à largeur imposée (texte + capture) : empilées tant que l'écran n'est pas assez large. */
@media (min-width: 782px) and (max-width: 1023px) {
	body .wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column[style*="flex-basis"]) {
		flex-wrap: wrap !important;
	}
	body .wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column[style*="flex-basis"]) > .wp-block-column {
		flex-basis: 100% !important;
	}
}
/* Pied de page : trois colonnes seulement sur grand écran. */
@media (min-width: 782px) and (max-width: 1023px) {
	.roosty-pied .wp-block-columns > .wp-block-column:first-child {
		flex-basis: 100% !important;
	}
	.roosty-pied .wp-block-columns > .wp-block-column:not(:first-child) {
		flex-basis: calc(50% - 1.5rem) !important;
	}
}
.roosty-grille--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1279px) {
	.roosty-grille--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 1100px) {
	.roosty-grille,
	.roosty-catalogue {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.roosty-grille,
	.roosty-grille--4,
	.roosty-catalogue {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* Catalogue compact : 4, puis 3, 2 et 1 par ligne. */
@media (max-width: 1100px) {
	.roosty-catalogue--compact {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 820px) {
	.roosty-catalogue--compact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 520px) {
	.roosty-catalogue--compact {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* Aucun mot coupé : ni césure, ni coupure forcée. */
body,
body * {
	hyphens: manual;
	-webkit-hyphens: manual;
	overflow-wrap: normal;
	word-break: normal;
}
/* La frise de la journée : des étapes, plus des horaires. */
.roosty-heure {
	flex-basis: 6.5rem;
	font-size: 1.2rem;
	white-space: nowrap;
}
@media (max-width: 600px) {
	.roosty-heure {
		flex-basis: 4.75rem;
		font-size: 1rem;
	}
}

/* ===== v4.2.1 : accessibilité ===== */
/* Titre lu par les lecteurs d’écran seulement (hiérarchie des titres sans changer la mise en page). */
.roosty-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px !important;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}
/* Sur fond sable, cannelle (4,07:1) et framboise (4,45:1) passent sous 4,5:1 : on fonce. */
.has-accent-5-background-color .roosty-surtitre,
.has-accent-5-background-color .is-style-outline .wp-element-button {
	color: var(--wp--preset--color--accent-3) !important;
}
.has-accent-5-background-color .is-style-outline .wp-element-button {
	border-color: var(--wp--preset--color--accent-3) !important;
}

/* ===== v4.3 : fondateurs, lettre d’information, formulaires MailPoet ===== */

/* Bandeau d’annonce, au-dessus de l’en-tête (masqué par le thème à partir du 8 mars 2027). */
.roosty-annonce {
	padding: 0.45rem 1rem !important;
	margin: 0 !important;
	font-size: 0.9375rem;
	line-height: 1.4;
}
.roosty-annonce p {
	margin: 0 auto !important;
	max-width: none !important;
}
.roosty-annonce a {
	color: var(--wp--preset--color--contrast) !important;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	white-space: nowrap;
}
.roosty-annonce a:focus-visible {
	outline-color: var(--wp--preset--color--contrast);
}
.roosty-annonce-court { display: none; }
@media (max-width: 700px) {
	.roosty-annonce-long { display: none; }
	.roosty-annonce-court { display: inline; }
}

/* Cadre fondateurs : un ticket bordé de safran, posé sur le sable. */
.roosty-cadre-fondateurs {
	background: var(--wp--preset--color--base);
	border: 3px solid var(--wp--preset--color--accent-2);
	border-radius: 24px;
	padding: clamp(1.5rem, 4vw, 3rem) !important;
	box-shadow: 0 2px 4px rgb(58 32 23 / 0.06), 0 18px 40px rgb(58 32 23 / 0.10);
}
.roosty-cadre-fondateurs > .wp-block-columns {
	margin: 0 !important;
}
.roosty-formulaire-titre {
	font-family: var(--wp--preset--font-family--life-savers);
	font-size: 1.625rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--accent-3);
	margin-bottom: 1rem !important;
}

/* Les quatre étapes, en version courte : pastilles numérotées. */
.roosty-etapes-mini {
	list-style: none;
	padding: 0 !important;
	margin: 0 0 1.25rem !important;
	counter-reset: roosty-etape;
}
.roosty-etapes-mini li {
	position: relative;
	padding-left: 2.75rem;
	margin-bottom: 0.85rem;
	counter-increment: roosty-etape;
}
.roosty-etapes-mini li::before {
	content: counter(roosty-etape);
	position: absolute;
	left: 0;
	top: 0.05rem;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--blanc);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
}

/* --- Formulaires MailPoet, aux couleurs de Roosty ---------------------------------
   MailPoet écrit des styles dans ses balises : les « !important » ci-dessous sont là pour les couvrir.
   Dans l’éditeur de formulaire MailPoet, garder : police du thème, aucun fond, aucune bordure. */
.roosty-formulaire .mailpoet_form,
.mailpoet_form.mailpoet_form_shortcode {
	font-family: inherit !important;
	font-size: 1rem !important;
	color: var(--wp--preset--color--contrast) !important;
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: none !important;
}
.mailpoet_form form,
.mailpoet_form .mailpoet_form_columns,
.mailpoet_form .mailpoet_form_column {
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
}
.mailpoet_form .mailpoet_paragraph {
	margin: 0 0 1.1rem !important;
	line-height: 1.5 !important;
}
.mailpoet_form h2, .mailpoet_form h3, .mailpoet_form .mailpoet-heading {
	font-family: var(--wp--preset--font-family--life-savers) !important;
	color: var(--wp--preset--color--accent-3) !important;
	margin: 0 0 0.75rem !important;
}
/* Intitulé de chaque champ, toujours au-dessus du champ. */
.mailpoet_form .mailpoet_text_label,
.mailpoet_form .mailpoet_textarea_label,
.mailpoet_form .mailpoet_select_label,
.mailpoet_form .mailpoet_date_label,
.mailpoet_form .mailpoet_paragraph > label:first-child:not(:has(input)),
.mailpoet_form legend {
	display: block !important;
	margin: 0 0 0.35rem !important;
	padding: 0 !important;
	font-weight: 700 !important;
	font-size: 0.9375rem !important;
	color: var(--wp--preset--color--contrast) !important;
}
.mailpoet_form fieldset {
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0;
}
/* Champs de saisie et listes. */
.mailpoet_form input[type="text"],
.mailpoet_form input[type="email"],
.mailpoet_form input[type="tel"],
.mailpoet_form input[type="url"],
.mailpoet_form input[type="number"],
.mailpoet_form input[type="date"],
.mailpoet_form select,
.mailpoet_form textarea {
	box-sizing: border-box !important;
	width: 100% !important;
	min-height: 3rem;
	margin: 0 !important;
	padding: 0.7rem 0.95rem !important;
	font-family: inherit !important;
	font-size: 1rem !important;        /* 16 px : l’iPhone ne zoome pas sur le champ */
	line-height: 1.4 !important;
	color: var(--wp--preset--color--contrast) !important;
	background: var(--wp--preset--color--blanc) !important;
	border: 2px solid var(--wp--preset--color--accent-4) !important;   /* gris sur blanc : 6,6:1 */
	border-radius: 12px !important;
	box-shadow: inset 0 1px 2px rgb(58 32 23 / 0.06);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mailpoet_form select {
	appearance: none;
	padding-right: 2.75rem !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%237B2D4F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 1rem center !important;
}
.mailpoet_form input::placeholder,
.mailpoet_form textarea::placeholder {
	color: var(--wp--preset--color--accent-4);
	opacity: 1;
}
.mailpoet_form input:hover,
.mailpoet_form select:hover,
.mailpoet_form textarea:hover {
	border-color: var(--wp--preset--color--accent-3) !important;
}
.mailpoet_form input:focus-visible,
.mailpoet_form select:focus-visible,
.mailpoet_form textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-3) !important;
	outline-offset: 2px !important;
	border-color: var(--wp--preset--color--accent-3) !important;
}
/* Cases à cocher et boutons radio : grands, à la couleur de l’action. */
.mailpoet_form label.mailpoet_checkbox_label,
.mailpoet_form label.mailpoet_radio_label,
.mailpoet_form label:has(> input[type="checkbox"]),
.mailpoet_form label:has(> input[type="radio"]) {
	display: block !important;
	position: relative;
	padding-left: 2.1rem !important;
	margin: 0 0 0.55rem !important;
	font-weight: 400 !important;
	font-size: 0.9375rem !important;
	line-height: 1.5 !important;
	color: var(--wp--preset--color--contrast) !important;
	cursor: pointer;
}
.mailpoet_form input[type="checkbox"],
.mailpoet_form input[type="radio"] {
	position: absolute;
	left: 0;
	top: 0.05rem;
	width: 1.3rem !important;
	height: 1.3rem !important;
	margin: 0 !important;
	accent-color: var(--wp--preset--color--accent-1);
	cursor: pointer;
}
/* Intitulé d’un groupe de choix (Mac ou Windows). */
.mailpoet_form fieldset > legend,
.mailpoet_form fieldset > legend.mailpoet_radio_label,
.mailpoet_form fieldset > legend.mailpoet_checkbox_label {
	display: block !important;
	padding: 0 !important;
	margin: 0 0 0.45rem !important;
	font-weight: 700 !important;
	font-size: 0.9375rem !important;
	color: var(--wp--preset--color--contrast) !important;
}
.mailpoet_form input[type="checkbox"]:focus-visible,
.mailpoet_form input[type="radio"]:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-3) !important;
	outline-offset: 2px !important;
}
.mailpoet_form .mailpoet_required {
	color: var(--wp--preset--color--accent-1) !important;
	font-weight: 700;
	text-decoration: none;
	border: 0;
}
/* Bouton d’envoi : le même que les boutons du site. */
.mailpoet_form .mailpoet_submit,
.mailpoet_form input[type="submit"],
.mailpoet_form button[type="submit"] {
	display: inline-block !important;
	width: auto !important;
	min-height: 3.1rem;
	margin: 0.4rem 0 0 !important;
	padding: 0.85rem 1.6rem !important;
	font-family: inherit !important;
	font-size: 1.0625rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	white-space: normal !important;
	color: var(--wp--preset--color--blanc) !important;
	background: var(--wp--preset--color--accent-1) !important;
	border: 0 !important;
	border-radius: 12px !important;
	box-shadow: 0 2px 0 rgb(0 0 0 / 0.18), 0 10px 22px rgb(181 42 89 / 0.28) !important;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.mailpoet_form .mailpoet_submit:hover,
.mailpoet_form .mailpoet_submit:focus-visible {
	background: var(--wp--preset--color--accent-3) !important;
	transform: translateY(-2px);
}
.mailpoet_form .mailpoet_submit:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-2) !important;
	outline-offset: 3px !important;
}
@media (max-width: 600px) {
	.mailpoet_form .mailpoet_submit,
	.mailpoet_form input[type="submit"] {
		width: 100% !important;
	}
}
/* Erreurs de saisie et messages après l’envoi. */
.mailpoet_form .parsley-error,
.mailpoet_form input.parsley-error,
.mailpoet_form select.parsley-error {
	border-color: var(--wp--preset--color--accent-1) !important;
	background-color: #FFF7F9 !important;
}
.mailpoet_form .parsley-errors-list {
	list-style: none !important;
	margin: 0.4rem 0 0 !important;
	padding: 0 !important;
}
.mailpoet_form .parsley-errors-list li,
.mailpoet_form .parsley-required {
	color: var(--wp--preset--color--accent-1) !important;   /* framboise sur blanc : 6,0:1 */
	font-size: 0.875rem !important;
	font-weight: 600;
	line-height: 1.4;
}
.mailpoet_form .mailpoet_message {
	margin: 0 !important;
}
.mailpoet_form .mailpoet_validate_success,
.mailpoet_form .mailpoet_validate_error {
	margin: 0.75rem 0 0 !important;
	padding: 0.85rem 1rem !important;
	border-radius: 12px;
	font-size: 0.9375rem !important;
	font-weight: 600;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast) !important;
	background: var(--wp--preset--color--base);
	border-left: 5px solid var(--wp--preset--color--accent-2);
}
.mailpoet_form .mailpoet_validate_error {
	border-left-color: var(--wp--preset--color--accent-1);
}
.mailpoet_form .mailpoet_form_loading {
	width: auto !important;
	margin-left: 0.75rem;
	vertical-align: middle;
}
.mailpoet_form .mailpoet_form_loading > span {
	background-color: var(--wp--preset--color--accent-1) !important;
}
/* Une pastille d’avertissement pour l’administrateur seulement (formulaire introuvable). */
.roosty-formulaire-absent {
	padding: 1rem;
	border: 2px dashed var(--wp--preset--color--accent-1);
	border-radius: 12px;
	font-size: 0.9375rem;
}

/* ===== v4.3 : animations ===== */
/* Toutes s’arrêtent pour les personnes qui ont demandé à réduire les animations. */
@media (prefers-reduced-motion: no-preference) {

	/* 1. Les icônes d’outils sautillent au survol de leur carte. */
	:is(.roosty-carte, .roosty-outil-carte, .roosty-outil-puce, .roosty-grille-outils .wp-block-column):hover .roosty-outil img {
		animation: roosty-saut 0.6s cubic-bezier(.3, 1.6, .5, 1);
	}

	/* 5. Le minuteur du bandeau fait tic-tac. */
	.roosty-flotte-2 {
		animation: roosty-tictac 4s ease-in-out infinite;
	}

	/* 6. Le feu tricolore s’allume, rouge, orange puis vert, au survol de sa carte. */
	:is(.roosty-carte, .roosty-outil-carte, .roosty-outil-puce, .roosty-grille-outils .wp-block-column, .wp-block-column):hover img[src*="/outils/traffic."] {
		animation: roosty-feu 1.8s steps(1, end) infinite;
	}
}
@keyframes roosty-saut {
	0% { translate: 0 0; rotate: 0deg; }
	35% { translate: 0 -10px; rotate: -6deg; }
	65% { translate: 0 0; rotate: 4deg; }
	100% { translate: 0 0; rotate: 0deg; }
}
@keyframes roosty-tictac {
	0%, 80%, 100% { rotate: 0deg; }
	84% { rotate: -9deg; }
	88% { rotate: 7deg; }
	92% { rotate: -4deg; }
	96% { rotate: 2deg; }
}
@keyframes roosty-feu {
	0% { filter: drop-shadow(0 0 10px rgb(229 72 96 / 0.95)); }
	33% { filter: drop-shadow(0 0 10px rgb(223 165 54 / 0.95)); }
	66% { filter: drop-shadow(0 0 10px rgb(63 174 90 / 0.95)); }
}

/* 3 et 4. Au défilement : les cartes montent doucement, le trait safran se dessine sous les titres.
   Seuls les navigateurs qui savent lier une animation au défilement la jouent ; les autres affichent tout, tout de suite. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		main :is(.roosty-carte, .roosty-outil-carte, .roosty-capture, .roosty-iphone, .roosty-etape-num) {
			animation: roosty-monte linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 70%;
		}
		main .roosty-titre-section::after {
			transform-origin: left center;
			animation: roosty-trait linear both;
			animation-timeline: view();
			animation-range: entry 40% cover 35%;
		}
		main .roosty-titre-section.has-text-align-center::after {
			transform-origin: center;
		}
	}
}
@keyframes roosty-monte {
	from { opacity: 0; translate: 0 28px; }
	to { opacity: 1; translate: 0 0; }
}
@keyframes roosty-trait {
	from { scale: 0 1; }
	to { scale: 1 1; }
}

/* 7. Confettis de la page Bienvenue (dessinés par assets/js/roosty.js). */
.roosty-confettis-toile {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 100;
}

/* ===== v4.3.3 : menu de l’en-tête en boutons en relief ===== */
/* Au survol, chaque entrée devient un bouton safran en relief ; au clic, il s’enfonce et passe en framboise ;
   la page en cours garde un contour safran. Le bouton est porté par l’entrée entière :
   « Fonctionnalités » et son chevron ne forment qu’un seul bouton, sans décalage.
   Sur téléphone, le menu ouvert garde sa présentation. */
@media (min-width: 600px) {
	.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
		gap: 0.25rem !important;
	}
	.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item {
		display: flex;
		align-items: center;
		border-radius: 12px;
		box-shadow: inset 0 0 0 2px transparent;
		transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	}
	.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		padding: 0.5em 0.85em !important;
		text-decoration: none;
		color: inherit;
	}
	.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation-item__content {
		padding-right: 0.2em !important;
	}
	.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-icon {
		margin: 0 !important;
		padding: 0 0.75em 0 0.1em;
		height: auto;
		align-self: stretch;
		display: flex;
		align-items: center;
		background: none;
		color: inherit;
	}
	/* Survol, et focus au clavier : un bouton safran en relief. */
	.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:is(:hover, :focus-within) {
		color: var(--wp--preset--color--brun);   /* brun sur safran : 6,8:1 */
		background: linear-gradient(180deg, #EBBE5E 0%, #DFA536 55%, #CC9026 100%);
		box-shadow:
			inset 0 1px 0 rgb(255 255 255 / 0.55),
			inset 0 -2px 0 rgb(0 0 0 / 0.14),
			0 3px 0 #94621A,
			0 8px 16px rgb(0 0 0 / 0.32);
	}
	.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:is(:hover, :focus-within) > :is(.wp-block-navigation-item__content, .wp-block-navigation__submenu-icon) {
		color: var(--wp--preset--color--brun) !important;
	}
	@media (prefers-reduced-motion: no-preference) {
		.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:hover {
			transform: translateY(-2px);
		}
	}
	/* Au clic : le bouton s’enfonce et passe en framboise. */
	.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:has(> .wp-block-navigation-item__content:active) {
		color: var(--wp--preset--color--blanc);
		background: linear-gradient(180deg, #C93D6C 0%, #B52A59 55%, #9C2149 100%);
		box-shadow:
			inset 0 2px 4px rgb(0 0 0 / 0.30),
			0 1px 0 #6E1534;
		transform: translateY(1px);
	}
	.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:has(> .wp-block-navigation-item__content:active) > :is(.wp-block-navigation-item__content, .wp-block-navigation__submenu-icon) {
		color: var(--wp--preset--color--blanc) !important;
	}
	/* La page en cours : contour safran. */
	.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item:is(.current-menu-item, :has(> .wp-block-navigation-item__content[aria-current="page"])):not(:hover) {
		box-shadow: inset 0 0 0 2px var(--wp--preset--color--accent-2);
	}
}
/* Sous-menu : même logique, en plus discret. */
.roosty-entete .wp-block-navigation__submenu-container a {
	border-radius: 8px;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.roosty-entete .wp-block-navigation__submenu-container a:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--accent-2) !important;
	color: var(--wp--preset--color--brun) !important;
}
.roosty-entete .wp-block-navigation__submenu-container a:active {
	background-color: var(--wp--preset--color--accent-1) !important;
	color: var(--wp--preset--color--blanc) !important;
}
@media (min-width: 600px) {
	/* Le chevron garde sa taille dans le bouton. */
	.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-icon {
		width: auto !important;
	}
	.roosty-entete .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-icon svg {
		flex: none;
		width: 0.75em;
		height: 0.75em;
		margin-top: 0.1em;
	}
}

/* ===== v4.3.4 : tous les boutons en relief, couleurs inchangées ===== */
/* Le relief ne vient que de la lumière : un reflet en haut, une tranche sombre en bas, une ombre portée.
   Les couleurs de chaque bouton restent les siennes. Au survol il monte, au clic il s’enfonce. */
:is(.wp-element-button, .wp-block-button__link, .mailpoet_form .mailpoet_submit, .roosty-depli > summary) {
	position: relative;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
/* Boutons pleins : un léger dégradé de lumière posé sur leur couleur. */
.wp-block-button:not(.is-style-outline) :is(.wp-element-button, .wp-block-button__link),
.mailpoet_form .mailpoet_submit {
	background-image: linear-gradient(180deg, rgb(255 255 255 / 0.16) 0%, rgb(255 255 255 / 0) 50%, rgb(0 0 0 / 0.10) 100%) !important;
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.35),
		inset 0 -2px 0 rgb(0 0 0 / 0.18),
		0 3px 0 rgb(0 0 0 / 0.28),
		0 8px 18px rgb(0 0 0 / 0.22) !important;
}
/* Boutons à contour : la même tranche et la même ombre, sans fond ajouté. */
.is-style-outline :is(.wp-element-button, .wp-block-button__link),
.roosty-depli > summary {
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.25),
		0 3px 0 rgb(0 0 0 / 0.22),
		0 8px 16px rgb(0 0 0 / 0.14) !important;
}
@media (prefers-reduced-motion: no-preference) {
	:is(.wp-element-button, .wp-block-button__link, .mailpoet_form .mailpoet_submit, .roosty-depli > summary):is(:hover, :focus-visible) {
		transform: translateY(-2px);
	}
}
:is(.wp-element-button, .wp-block-button__link, .mailpoet_form .mailpoet_submit):is(:hover, :focus-visible),
.roosty-depli > summary:is(:hover, :focus-visible) {
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.35),
		inset 0 -2px 0 rgb(0 0 0 / 0.18),
		0 5px 0 rgb(0 0 0 / 0.26),
		0 14px 26px rgb(0 0 0 / 0.26) !important;
}
/* Au clic : le bouton s’enfonce, la tranche disparaît. */
:is(.wp-element-button, .wp-block-button__link, .mailpoet_form .mailpoet_submit, .roosty-depli > summary):active {
	transform: translateY(2px) !important;
	box-shadow:
		inset 0 2px 5px rgb(0 0 0 / 0.28),
		0 1px 0 rgb(0 0 0 / 0.22) !important;
}

/* ===== 4.3.5 : pas de cadre au clic dans le menu =====
   WordPress trace un contour de la couleur du texte (blanc) sur tout élément qui reçoit
   le focus, y compris au clic de la souris. Au clic, seul le changement de couleur reste ;
   au clavier, le contour safran de :focus-visible est conservé. */
.roosty-entete .wp-block-navigation :is(a, button):focus:not(:focus-visible) {
	outline: none;
}
